netbox-openbao 0.1.0__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (201) hide show
  1. netbox_openbao-0.1.0/LICENSE +73 -0
  2. netbox_openbao-0.1.0/PKG-INFO +370 -0
  3. netbox_openbao-0.1.0/README.md +326 -0
  4. netbox_openbao-0.1.0/netbox_openbao/__init__.py +126 -0
  5. netbox_openbao-0.1.0/netbox_openbao/administration/__init__.py +33 -0
  6. netbox_openbao-0.1.0/netbox_openbao/administration/access.py +560 -0
  7. netbox_openbao-0.1.0/netbox_openbao/administration/audit.py +84 -0
  8. netbox_openbao-0.1.0/netbox_openbao/administration/authentication.py +1025 -0
  9. netbox_openbao-0.1.0/netbox_openbao/administration/backends.py +1398 -0
  10. netbox_openbao-0.1.0/netbox_openbao/administration/broker.py +231 -0
  11. netbox_openbao-0.1.0/netbox_openbao/administration/cluster.py +314 -0
  12. netbox_openbao-0.1.0/netbox_openbao/administration/engine_journeys.py +1637 -0
  13. netbox_openbao-0.1.0/netbox_openbao/administration/engines.py +570 -0
  14. netbox_openbao-0.1.0/netbox_openbao/administration/finalization.py +511 -0
  15. netbox_openbao-0.1.0/netbox_openbao/administration/observations.py +57 -0
  16. netbox_openbao-0.1.0/netbox_openbao/administration/openbao-final-v2.6.2.json +23 -0
  17. netbox_openbao-0.1.0/netbox_openbao/administration/openbao-ui-v2.6.2.json +767 -0
  18. netbox_openbao-0.1.0/netbox_openbao/administration/parity.py +107 -0
  19. netbox_openbao-0.1.0/netbox_openbao/administration/schema.py +400 -0
  20. netbox_openbao-0.1.0/netbox_openbao/api/__init__.py +1 -0
  21. netbox_openbao-0.1.0/netbox_openbao/api/access_serializers.py +84 -0
  22. netbox_openbao-0.1.0/netbox_openbao/api/access_views.py +331 -0
  23. netbox_openbao-0.1.0/netbox_openbao/api/authentication_serializers.py +323 -0
  24. netbox_openbao-0.1.0/netbox_openbao/api/authentication_views.py +1226 -0
  25. netbox_openbao-0.1.0/netbox_openbao/api/automation.py +39 -0
  26. netbox_openbao-0.1.0/netbox_openbao/api/engine_serializers.py +146 -0
  27. netbox_openbao-0.1.0/netbox_openbao/api/engine_views.py +703 -0
  28. netbox_openbao-0.1.0/netbox_openbao/api/finalization_serializers.py +55 -0
  29. netbox_openbao-0.1.0/netbox_openbao/api/finalization_views.py +365 -0
  30. netbox_openbao-0.1.0/netbox_openbao/api/permissions.py +45 -0
  31. netbox_openbao-0.1.0/netbox_openbao/api/serializers.py +668 -0
  32. netbox_openbao-0.1.0/netbox_openbao/api/throttling.py +22 -0
  33. netbox_openbao-0.1.0/netbox_openbao/api/transactions.py +30 -0
  34. netbox_openbao-0.1.0/netbox_openbao/api/urls.py +19 -0
  35. netbox_openbao-0.1.0/netbox_openbao/api/views.py +1569 -0
  36. netbox_openbao-0.1.0/netbox_openbao/automation.py +364 -0
  37. netbox_openbao-0.1.0/netbox_openbao/backends/__init__.py +60 -0
  38. netbox_openbao-0.1.0/netbox_openbao/backends/base.py +96 -0
  39. netbox_openbao-0.1.0/netbox_openbao/backends/broker.py +394 -0
  40. netbox_openbao-0.1.0/netbox_openbao/backends/exceptions.py +67 -0
  41. netbox_openbao-0.1.0/netbox_openbao/backends/openbao.py +423 -0
  42. netbox_openbao-0.1.0/netbox_openbao/backends/vault.py +55 -0
  43. netbox_openbao-0.1.0/netbox_openbao/checks.py +80 -0
  44. netbox_openbao-0.1.0/netbox_openbao/choices.py +175 -0
  45. netbox_openbao-0.1.0/netbox_openbao/compat.py +113 -0
  46. netbox_openbao-0.1.0/netbox_openbao/config.py +237 -0
  47. netbox_openbao-0.1.0/netbox_openbao/filtersets.py +300 -0
  48. netbox_openbao-0.1.0/netbox_openbao/forms.py +836 -0
  49. netbox_openbao-0.1.0/netbox_openbao/importers/__init__.py +3 -0
  50. netbox_openbao-0.1.0/netbox_openbao/importers/netbox_secrets.py +271 -0
  51. netbox_openbao-0.1.0/netbox_openbao/jobs.py +230 -0
  52. netbox_openbao-0.1.0/netbox_openbao/management/__init__.py +0 -0
  53. netbox_openbao-0.1.0/netbox_openbao/management/commands/__init__.py +0 -0
  54. netbox_openbao-0.1.0/netbox_openbao/management/commands/openbao_import_secrets.py +156 -0
  55. netbox_openbao-0.1.0/netbox_openbao/material_transactions.py +198 -0
  56. netbox_openbao-0.1.0/netbox_openbao/middleware.py +42 -0
  57. netbox_openbao-0.1.0/netbox_openbao/migrations/0001_initial.py +199 -0
  58. netbox_openbao-0.1.0/netbox_openbao/migrations/0002_credential_live_kv_version_and_more.py +23 -0
  59. netbox_openbao-0.1.0/netbox_openbao/migrations/0003_secretengine_backend.py +18 -0
  60. netbox_openbao-0.1.0/netbox_openbao/migrations/0004_credential_import_source.py +18 -0
  61. netbox_openbao-0.1.0/netbox_openbao/migrations/0005_credentialtypeschema.py +50 -0
  62. netbox_openbao-0.1.0/netbox_openbao/migrations/0006_align_owner_related_name.py +49 -0
  63. netbox_openbao-0.1.0/netbox_openbao/migrations/0007_secretengine_host_device_openbaoprocedurerun.py +71 -0
  64. netbox_openbao-0.1.0/netbox_openbao/migrations/0008_openbaosettings.py +234 -0
  65. netbox_openbao-0.1.0/netbox_openbao/migrations/0009_automation_resolution.py +47 -0
  66. netbox_openbao-0.1.0/netbox_openbao/migrations/0010_live_identity_and_policy_lock.py +52 -0
  67. netbox_openbao-0.1.0/netbox_openbao/migrations/0011_openbao_administration_foundation.py +142 -0
  68. netbox_openbao-0.1.0/netbox_openbao/migrations/0012_cluster_lifecycle_permissions.py +33 -0
  69. netbox_openbao-0.1.0/netbox_openbao/migrations/0013_authentication_administration_permissions.py +70 -0
  70. netbox_openbao-0.1.0/netbox_openbao/migrations/0014_align_cluster_owner_related_name.py +41 -0
  71. netbox_openbao-0.1.0/netbox_openbao/migrations/0015_secret_engine_administration_permissions.py +50 -0
  72. netbox_openbao-0.1.0/netbox_openbao/migrations/0016_engine_journey_permissions.py +68 -0
  73. netbox_openbao-0.1.0/netbox_openbao/migrations/0017_pki_kubernetes_journey_permissions.py +94 -0
  74. netbox_openbao-0.1.0/netbox_openbao/migrations/0018_access_administration_permissions.py +100 -0
  75. netbox_openbao-0.1.0/netbox_openbao/migrations/0019_administration_log_targets.py +21 -0
  76. netbox_openbao-0.1.0/netbox_openbao/migrations/0020_finalization_permissions.py +109 -0
  77. netbox_openbao-0.1.0/netbox_openbao/migrations/__init__.py +0 -0
  78. netbox_openbao-0.1.0/netbox_openbao/models/__init__.py +24 -0
  79. netbox_openbao-0.1.0/netbox_openbao/models/administration.py +281 -0
  80. netbox_openbao-0.1.0/netbox_openbao/models/assignments.py +103 -0
  81. netbox_openbao-0.1.0/netbox_openbao/models/audit.py +123 -0
  82. netbox_openbao-0.1.0/netbox_openbao/models/automation.py +29 -0
  83. netbox_openbao-0.1.0/netbox_openbao/models/credentials.py +370 -0
  84. netbox_openbao-0.1.0/netbox_openbao/models/engines.py +159 -0
  85. netbox_openbao-0.1.0/netbox_openbao/models/policies.py +79 -0
  86. netbox_openbao-0.1.0/netbox_openbao/models/procedure_runs.py +48 -0
  87. netbox_openbao-0.1.0/netbox_openbao/models/schemas.py +138 -0
  88. netbox_openbao-0.1.0/netbox_openbao/models/settings.py +579 -0
  89. netbox_openbao-0.1.0/netbox_openbao/navigation.py +134 -0
  90. netbox_openbao-0.1.0/netbox_openbao/nms_bridge.py +113 -0
  91. netbox_openbao-0.1.0/netbox_openbao/quickadd.py +302 -0
  92. netbox_openbao-0.1.0/netbox_openbao/registry.py +173 -0
  93. netbox_openbao-0.1.0/netbox_openbao/rpc.py +127 -0
  94. netbox_openbao-0.1.0/netbox_openbao/search.py +52 -0
  95. netbox_openbao-0.1.0/netbox_openbao/secrets/__init__.py +14 -0
  96. netbox_openbao-0.1.0/netbox_openbao/secrets/extractors.py +153 -0
  97. netbox_openbao-0.1.0/netbox_openbao/secrets/generators.py +54 -0
  98. netbox_openbao-0.1.0/netbox_openbao/secrets/identity.py +77 -0
  99. netbox_openbao-0.1.0/netbox_openbao/secrets/registry.py +281 -0
  100. netbox_openbao-0.1.0/netbox_openbao/services.py +704 -0
  101. netbox_openbao-0.1.0/netbox_openbao/signals.py +192 -0
  102. netbox_openbao-0.1.0/netbox_openbao/static/netbox_openbao/access_administration.css +92 -0
  103. netbox_openbao-0.1.0/netbox_openbao/static/netbox_openbao/access_administration.js +339 -0
  104. netbox_openbao-0.1.0/netbox_openbao/static/netbox_openbao/authentication_administration.css +77 -0
  105. netbox_openbao-0.1.0/netbox_openbao/static/netbox_openbao/authentication_administration.js +606 -0
  106. netbox_openbao-0.1.0/netbox_openbao/static/netbox_openbao/cluster_administration.js +187 -0
  107. netbox_openbao-0.1.0/netbox_openbao/static/netbox_openbao/finalization_administration.js +119 -0
  108. netbox_openbao-0.1.0/netbox_openbao/static/netbox_openbao/secret_engine_administration.js +402 -0
  109. netbox_openbao-0.1.0/netbox_openbao/synchronization.py +157 -0
  110. netbox_openbao-0.1.0/netbox_openbao/tables.py +243 -0
  111. netbox_openbao-0.1.0/netbox_openbao/template_content.py +125 -0
  112. netbox_openbao-0.1.0/netbox_openbao/templates/netbox_openbao/credential.html +6 -0
  113. netbox_openbao-0.1.0/netbox_openbao/templates/netbox_openbao/credential_reveal.html +56 -0
  114. netbox_openbao-0.1.0/netbox_openbao/templates/netbox_openbao/credentialaccesslog.html +6 -0
  115. netbox_openbao-0.1.0/netbox_openbao/templates/netbox_openbao/credentialassignment.html +6 -0
  116. netbox_openbao-0.1.0/netbox_openbao/templates/netbox_openbao/credentialpolicy.html +6 -0
  117. netbox_openbao-0.1.0/netbox_openbao/templates/netbox_openbao/credentialtypeschema.html +4 -0
  118. netbox_openbao-0.1.0/netbox_openbao/templates/netbox_openbao/inc/quickadd_button.html +4 -0
  119. netbox_openbao-0.1.0/netbox_openbao/templates/netbox_openbao/openbaoadministrationlog.html +1 -0
  120. netbox_openbao-0.1.0/netbox_openbao/templates/netbox_openbao/openbaocluster.html +33 -0
  121. netbox_openbao-0.1.0/netbox_openbao/templates/netbox_openbao/openbaocluster_access.html +88 -0
  122. netbox_openbao-0.1.0/netbox_openbao/templates/netbox_openbao/openbaocluster_administration.html +218 -0
  123. netbox_openbao-0.1.0/netbox_openbao/templates/netbox_openbao/openbaocluster_authentication.html +283 -0
  124. netbox_openbao-0.1.0/netbox_openbao/templates/netbox_openbao/openbaocluster_capabilities.html +47 -0
  125. netbox_openbao-0.1.0/netbox_openbao/templates/netbox_openbao/openbaocluster_operations.html +48 -0
  126. netbox_openbao-0.1.0/netbox_openbao/templates/netbox_openbao/openbaocluster_secret_engines.html +220 -0
  127. netbox_openbao-0.1.0/netbox_openbao/templates/netbox_openbao/openbaoprocedurerun.html +1 -0
  128. netbox_openbao-0.1.0/netbox_openbao/templates/netbox_openbao/openbaosettings.html +6 -0
  129. netbox_openbao-0.1.0/netbox_openbao/templates/netbox_openbao/panels/object_credentials.html +49 -0
  130. netbox_openbao-0.1.0/netbox_openbao/templates/netbox_openbao/panels/reveal.html +37 -0
  131. netbox_openbao-0.1.0/netbox_openbao/templates/netbox_openbao/panels/rotation.html +45 -0
  132. netbox_openbao-0.1.0/netbox_openbao/templates/netbox_openbao/partials/reveal_error.html +13 -0
  133. netbox_openbao-0.1.0/netbox_openbao/templates/netbox_openbao/partials/reveal_fragment.html +90 -0
  134. netbox_openbao-0.1.0/netbox_openbao/templates/netbox_openbao/quickadd_ssh.html +40 -0
  135. netbox_openbao-0.1.0/netbox_openbao/templates/netbox_openbao/quickadd_ssh_result.html +56 -0
  136. netbox_openbao-0.1.0/netbox_openbao/templates/netbox_openbao/secretengine.html +6 -0
  137. netbox_openbao-0.1.0/netbox_openbao/templates/netbox_openbao/secretengine_run_procedure.html +14 -0
  138. netbox_openbao-0.1.0/netbox_openbao/tests/__init__.py +0 -0
  139. netbox_openbao-0.1.0/netbox_openbao/tests/base.py +80 -0
  140. netbox_openbao-0.1.0/netbox_openbao/tests/fakes.py +136 -0
  141. netbox_openbao-0.1.0/netbox_openbao/tests/protected_dispatch.py +122 -0
  142. netbox_openbao-0.1.0/netbox_openbao/tests/test_access_administration.py +493 -0
  143. netbox_openbao-0.1.0/netbox_openbao/tests/test_access_administration_browser.py +153 -0
  144. netbox_openbao-0.1.0/netbox_openbao/tests/test_access_administration_live.py +250 -0
  145. netbox_openbao-0.1.0/netbox_openbao/tests/test_administration.py +428 -0
  146. netbox_openbao-0.1.0/netbox_openbao/tests/test_administration_live.py +48 -0
  147. netbox_openbao-0.1.0/netbox_openbao/tests/test_administration_migration.py +185 -0
  148. netbox_openbao-0.1.0/netbox_openbao/tests/test_administration_schema.py +214 -0
  149. netbox_openbao-0.1.0/netbox_openbao/tests/test_api.py +449 -0
  150. netbox_openbao-0.1.0/netbox_openbao/tests/test_assignable_registry.py +342 -0
  151. netbox_openbao-0.1.0/netbox_openbao/tests/test_assignments.py +81 -0
  152. netbox_openbao-0.1.0/netbox_openbao/tests/test_authentication_administration.py +1462 -0
  153. netbox_openbao-0.1.0/netbox_openbao/tests/test_authentication_administration_browser.py +199 -0
  154. netbox_openbao-0.1.0/netbox_openbao/tests/test_authentication_administration_live.py +218 -0
  155. netbox_openbao-0.1.0/netbox_openbao/tests/test_automation.py +403 -0
  156. netbox_openbao-0.1.0/netbox_openbao/tests/test_automation_api.py +59 -0
  157. netbox_openbao-0.1.0/netbox_openbao/tests/test_automation_boundaries.py +135 -0
  158. netbox_openbao-0.1.0/netbox_openbao/tests/test_automation_bundle.py +38 -0
  159. netbox_openbao-0.1.0/netbox_openbao/tests/test_automation_composed_concurrency.py +173 -0
  160. netbox_openbao-0.1.0/netbox_openbao/tests/test_automation_concurrency.py +346 -0
  161. netbox_openbao-0.1.0/netbox_openbao/tests/test_automation_key_identity.py +133 -0
  162. netbox_openbao-0.1.0/netbox_openbao/tests/test_automation_live.py +256 -0
  163. netbox_openbao-0.1.0/netbox_openbao/tests/test_backends.py +556 -0
  164. netbox_openbao-0.1.0/netbox_openbao/tests/test_broker_administration.py +482 -0
  165. netbox_openbao-0.1.0/netbox_openbao/tests/test_broker_backend.py +475 -0
  166. netbox_openbao-0.1.0/netbox_openbao/tests/test_cluster_administration.py +1320 -0
  167. netbox_openbao-0.1.0/netbox_openbao/tests/test_engine_administration.py +1344 -0
  168. netbox_openbao-0.1.0/netbox_openbao/tests/test_engine_administration_browser.py +397 -0
  169. netbox_openbao-0.1.0/netbox_openbao/tests/test_engine_administration_live.py +453 -0
  170. netbox_openbao-0.1.0/netbox_openbao/tests/test_extractors.py +143 -0
  171. netbox_openbao-0.1.0/netbox_openbao/tests/test_finalization_administration.py +586 -0
  172. netbox_openbao-0.1.0/netbox_openbao/tests/test_finalization_administration_browser.py +134 -0
  173. netbox_openbao-0.1.0/netbox_openbao/tests/test_finalization_administration_live.py +145 -0
  174. netbox_openbao-0.1.0/netbox_openbao/tests/test_import.py +231 -0
  175. netbox_openbao-0.1.0/netbox_openbao/tests/test_material_transactions.py +399 -0
  176. netbox_openbao-0.1.0/netbox_openbao/tests/test_models.py +112 -0
  177. netbox_openbao-0.1.0/netbox_openbao/tests/test_policy_gate.py +1077 -0
  178. netbox_openbao-0.1.0/netbox_openbao/tests/test_quickadd.py +299 -0
  179. netbox_openbao-0.1.0/netbox_openbao/tests/test_registry.py +70 -0
  180. netbox_openbao-0.1.0/netbox_openbao/tests/test_rotation.py +215 -0
  181. netbox_openbao-0.1.0/netbox_openbao/tests/test_rpc.py +294 -0
  182. netbox_openbao-0.1.0/netbox_openbao/tests/test_rpc_integration.py +30 -0
  183. netbox_openbao-0.1.0/netbox_openbao/tests/test_security.py +251 -0
  184. netbox_openbao-0.1.0/netbox_openbao/tests/test_services.py +308 -0
  185. netbox_openbao-0.1.0/netbox_openbao/tests/test_settings.py +879 -0
  186. netbox_openbao-0.1.0/netbox_openbao/tests/test_settings_ui.py +496 -0
  187. netbox_openbao-0.1.0/netbox_openbao/tests/test_type_schemas.py +288 -0
  188. netbox_openbao-0.1.0/netbox_openbao/tests/test_views.py +378 -0
  189. netbox_openbao-0.1.0/netbox_openbao/ui/__init__.py +0 -0
  190. netbox_openbao-0.1.0/netbox_openbao/ui/panels.py +399 -0
  191. netbox_openbao-0.1.0/netbox_openbao/urls.py +52 -0
  192. netbox_openbao-0.1.0/netbox_openbao/utils.py +36 -0
  193. netbox_openbao-0.1.0/netbox_openbao/views.py +1092 -0
  194. netbox_openbao-0.1.0/netbox_openbao.egg-info/PKG-INFO +370 -0
  195. netbox_openbao-0.1.0/netbox_openbao.egg-info/SOURCES.txt +199 -0
  196. netbox_openbao-0.1.0/netbox_openbao.egg-info/dependency_links.txt +1 -0
  197. netbox_openbao-0.1.0/netbox_openbao.egg-info/requires.txt +13 -0
  198. netbox_openbao-0.1.0/netbox_openbao.egg-info/top_level.txt +1 -0
  199. netbox_openbao-0.1.0/pyproject.toml +99 -0
  200. netbox_openbao-0.1.0/setup.cfg +4 -0
  201. netbox_openbao-0.1.0/tests/test_release_workflows.py +275 -0
@@ -0,0 +1,73 @@
1
+ Apache License
2
+ Version 2.0, January 2004
3
+ http://www.apache.org/licenses/
4
+
5
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
6
+
7
+ 1. Definitions.
8
+
9
+ "License" shall mean the terms and conditions for use, reproduction, and distribution as defined by Sections 1 through 9 of this document.
10
+
11
+ "Licensor" shall mean the copyright owner or entity authorized by the copyright owner that is granting the License.
12
+
13
+ "Legal Entity" shall mean the union of the acting entity and all other entities that control, are controlled by, or are under common control with that entity. For the purposes of this definition, "control" means (i) the power, direct or indirect, to cause the direction or management of such entity, whether by contract or otherwise, or (ii) ownership of fifty percent (50%) or more of the outstanding shares, or (iii) beneficial ownership of such entity.
14
+
15
+ "You" (or "Your") shall mean an individual or Legal Entity exercising permissions granted by this License.
16
+
17
+ "Source" form shall mean the preferred form for making modifications, including but not limited to software source code, documentation source, and configuration files.
18
+
19
+ "Object" form shall mean any form resulting from mechanical transformation or translation of a Source form, including but not limited to compiled object code, generated documentation, and conversions to other media types.
20
+
21
+ "Work" shall mean the work of authorship, whether in Source or Object form, made available under the License, as indicated by a copyright notice that is included in or attached to the work (an example is provided in the Appendix below).
22
+
23
+ "Derivative Works" shall mean any work, whether in Source or Object form, that is based on (or derived from) the Work and for which the editorial revisions, annotations, elaborations, or other modifications represent, as a whole, an original work of authorship. For the purposes of this License, Derivative Works shall not include works that remain separable from, or merely link (or bind by name) to the interfaces of, the Work and Derivative Works thereof.
24
+
25
+ "Contribution" shall mean any work of authorship, including the original version of the Work and any modifications or additions to that Work or Derivative Works thereof, that is intentionally submitted to Licensor for inclusion in the Work by the copyright owner or by an individual or Legal Entity authorized to submit on behalf of the copyright owner. For the purposes of this definition, "submitted" means any form of electronic, verbal, or written communication sent to the Licensor or its representatives, including but not limited to communication on electronic mailing lists, source code control systems, and issue tracking systems that are managed by, or on behalf of, the Licensor for the purpose of discussing and improving the Work, but excluding communication that is conspicuously marked or otherwise designated in writing by the copyright owner as "Not a Contribution."
26
+
27
+ "Contributor" shall mean Licensor and any individual or Legal Entity on behalf of whom a Contribution has been received by Licensor and subsequently incorporated within the Work.
28
+
29
+ 2. Grant of Copyright License. Subject to the terms and conditions of this License, each Contributor hereby grants to You a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable copyright license to reproduce, prepare Derivative Works of, publicly display, publicly perform, sublicense, and distribute the Work and such Derivative Works in Source or Object form.
30
+
31
+ 3. Grant of Patent License. Subject to the terms and conditions of this License, each Contributor hereby grants to You a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable (except as stated in this section) patent license to make, have made, use, offer to sell, sell, import, and otherwise transfer the Work, where such license applies only to those patent claims licensable by such Contributor that are necessarily infringed by their Contribution(s) alone or by combination of their Contribution(s) with the Work to which such Contribution(s) was submitted. If You institute patent litigation against any entity (including a cross-claim or counterclaim in a lawsuit) alleging that the Work or a Contribution incorporated within the Work constitutes direct or contributory patent infringement, then any patent licenses granted to You under this License for that Work shall terminate as of the date such litigation is filed.
32
+
33
+ 4. Redistribution. You may reproduce and distribute copies of the Work or Derivative Works thereof in any medium, with or without modifications, and in Source or Object form, provided that You meet the following conditions:
34
+
35
+ (a) You must give any other recipients of the Work or Derivative Works a copy of this License; and
36
+
37
+ (b) You must cause any modified files to carry prominent notices stating that You changed the files; and
38
+
39
+ (c) You must retain, in the Source form of any Derivative Works that You distribute, all copyright, patent, trademark, and attribution notices from the Source form of the Work, excluding those notices that do not pertain to any part of the Derivative Works; and
40
+
41
+ (d) If the Work includes a "NOTICE" text file as part of its distribution, then any Derivative Works that You distribute must include a readable copy of the attribution notices contained within such NOTICE file, excluding those notices that do not pertain to any part of the Derivative Works, in at least one of the following places: within a NOTICE text file distributed as part of the Derivative Works; within the Source form or documentation, if provided along with the Derivative Works; or, within a display generated by the Derivative Works, if and wherever such third-party notices normally appear. The contents of the NOTICE file are for informational purposes only and do not modify the License. You may add Your own attribution notices within Derivative Works that You distribute, alongside or as an addendum to the NOTICE text from the Work, provided that such additional attribution notices cannot be construed as modifying the License.
42
+
43
+ You may add Your own copyright statement to Your modifications and may provide additional or different license terms and conditions for use, reproduction, or distribution of Your modifications, or for any such Derivative Works as a whole, provided Your use, reproduction, and distribution of the Work otherwise complies with the conditions stated in this License.
44
+
45
+ 5. Submission of Contributions. Unless You explicitly state otherwise, any Contribution intentionally submitted for inclusion in the Work by You to the Licensor shall be under the terms and conditions of this License, without any additional terms or conditions. Notwithstanding the above, nothing herein shall supersede or modify the terms of any separate license agreement you may have executed with Licensor regarding such Contributions.
46
+
47
+ 6. Trademarks. This License does not grant permission to use the trade names, trademarks, service marks, or product names of the Licensor, except as required for reasonable and customary use in describing the origin of the Work and reproducing the content of the NOTICE file.
48
+
49
+ 7. Disclaimer of Warranty. Unless required by applicable law or agreed to in writing, Licensor provides the Work (and each Contributor provides its Contributions) on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied, including, without limitation, any warranties or conditions of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A PARTICULAR PURPOSE. You are solely responsible for determining the appropriateness of using or redistributing the Work and assume any risks associated with Your exercise of permissions under this License.
50
+
51
+ 8. Limitation of Liability. In no event and under no legal theory, whether in tort (including negligence), contract, or otherwise, unless required by applicable law (such as deliberate and grossly negligent acts) or agreed to in writing, shall any Contributor be liable to You for damages, including any direct, indirect, special, incidental, or consequential damages of any character arising as a result of this License or out of the use or inability to use the Work (including but not limited to damages for loss of goodwill, work stoppage, computer failure or malfunction, or any and all other commercial damages or losses), even if such Contributor has been advised of the possibility of such damages.
52
+
53
+ 9. Accepting Warranty or Additional Liability. While redistributing the Work or Derivative Works thereof, You may choose to offer, and charge a fee for, acceptance of support, warranty, indemnity, or other liability obligations and/or rights consistent with this License. However, in accepting such obligations, You may act only on Your own behalf and on Your sole responsibility, not on behalf of any other Contributor, and only if You agree to indemnify, defend, and hold each Contributor harmless for any liability incurred by, or claims asserted against, such Contributor by reason of your accepting any such warranty or additional liability.
54
+
55
+ END OF TERMS AND CONDITIONS
56
+
57
+ APPENDIX: How to apply the Apache License to your work.
58
+
59
+ To apply the Apache License to your work, attach the following boilerplate notice, with the fields enclosed by brackets "[]" replaced with your own identifying information. (Don't include the brackets!) The text should be enclosed in the appropriate comment syntax for the file format. We also recommend that a file or class name and description of purpose be included on the same "printed page" as the copyright notice for easier identification within third-party archives.
60
+
61
+ Copyright 2026 emersonfelipesp
62
+
63
+ Licensed under the Apache License, Version 2.0 (the "License");
64
+ you may not use this file except in compliance with the License.
65
+ You may obtain a copy of the License at
66
+
67
+ http://www.apache.org/licenses/LICENSE-2.0
68
+
69
+ Unless required by applicable law or agreed to in writing, software
70
+ distributed under the License is distributed on an "AS IS" BASIS,
71
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
72
+ See the License for the specific language governing permissions and
73
+ limitations under the License.
@@ -0,0 +1,370 @@
1
+ Metadata-Version: 2.4
2
+ Name: netbox-openbao
3
+ Version: 0.1.0
4
+ Summary: Keep NetBox device, VM, and service secret material in OpenBao while NetBox owns the credential inventory
5
+ Author-email: Emerson Felipe <emerson@netdevopsbr.com>
6
+ License-Expression: Apache-2.0
7
+ Project-URL: Homepage, https://github.com/emersonfelipesp/netbox-openbao
8
+ Project-URL: Documentation, https://emersonfelipesp.github.io/netbox-openbao/
9
+ Project-URL: Source, https://github.com/emersonfelipesp/netbox-openbao
10
+ Project-URL: Issues, https://github.com/emersonfelipesp/netbox-openbao/issues
11
+ Project-URL: Changelog, https://github.com/emersonfelipesp/netbox-openbao/blob/main/CHANGELOG.md
12
+ Keywords: netbox,netbox-plugin,openbao,vault,secrets,credentials
13
+ Classifier: Development Status :: 3 - Alpha
14
+ Classifier: Framework :: Django
15
+ Classifier: Framework :: Django :: 6.1
16
+ Classifier: Intended Audience :: Developers
17
+ Classifier: Intended Audience :: System Administrators
18
+ Classifier: Natural Language :: English
19
+ Classifier: Operating System :: OS Independent
20
+ Classifier: Programming Language :: Python
21
+ Classifier: Programming Language :: Python :: 3
22
+ Classifier: Programming Language :: Python :: 3 :: Only
23
+ Classifier: Programming Language :: Python :: 3.12
24
+ Classifier: Programming Language :: Python :: 3.13
25
+ Classifier: Programming Language :: Python :: 3.14
26
+ Classifier: Topic :: Security
27
+ Classifier: Topic :: System :: Systems Administration
28
+ Requires-Python: >=3.12
29
+ Description-Content-Type: text/markdown
30
+ License-File: LICENSE
31
+ Requires-Dist: hvac>=2.3.0
32
+ Requires-Dist: cryptography>=42.0.0
33
+ Requires-Dist: bcrypt>=4.0.0
34
+ Requires-Dist: jsonschema>=4.0.0
35
+ Requires-Dist: pydantic>=2.0
36
+ Requires-Dist: netbox-rpc>=0.1.8
37
+ Requires-Dist: rpgp-py<0.21,>=0.20.0
38
+ Provides-Extra: docs
39
+ Requires-Dist: mkdocs-material>=9.5; extra == "docs"
40
+ Requires-Dist: mkdocstrings[python]>=0.26; extra == "docs"
41
+ Requires-Dist: mkdocs-gen-files>=0.5; extra == "docs"
42
+ Requires-Dist: mkdocs-literate-nav>=0.6; extra == "docs"
43
+ Dynamic: license-file
44
+
45
+ # netbox-openbao
46
+
47
+ Keep device, VM, and service **secret material in OpenBao**, while **NetBox
48
+ owns the credential inventory and its relationships**.
49
+
50
+ ```
51
+ netbox-secrets stores secrets *in* NetBox.
52
+ netbox-vault-secrets reads secrets in the *browser*.
53
+ netbox-openbao keeps secrets in OpenBao and resolves them *server-side
54
+ over the API* — so your automation, not just your
55
+ operators, can use them.
56
+ ```
57
+
58
+ That third line is the gap this plugin exists to close.
59
+
60
+ > **Status:** early alpha. The data model, REST API, and security invariants are
61
+ > implemented and tested against NetBox 4.7 and OpenBao 2.6. See
62
+ > [Roadmap](#roadmap) for what is deliberately not here yet.
63
+
64
+ ---
65
+
66
+ ## The idea
67
+
68
+ Split **secret material** from **credential metadata**. Material lives only in
69
+ OpenBao. Everything non-secret lives in NetBox, fully searchable, filterable,
70
+ and API-queryable.
71
+
72
+ For an SSH keypair:
73
+
74
+ | Goes to OpenBao | Stays in NetBox (plaintext, indexed) |
75
+ |---|---|
76
+ | private key | public key |
77
+ | passphrase | SHA256 fingerprint |
78
+ | password | username |
79
+ | API token | key type and bit length |
80
+ | certificate private key | serial, issuer, subject, `not_before`, `not_after` |
81
+
82
+ So you can answer *"which certificates expire in the next 30 days?"*, *"which
83
+ devices trust fingerprint X?"*, or render a config template containing a public
84
+ key — **with zero OpenBao reads and no reveal permission**. That is the headline
85
+ feature, and it falls out of the split rather than being bolted on.
86
+
87
+ ## Why a Django plugin and not a sidecar service
88
+
89
+ This is a credentials plugin. A separate service resolving secrets would have
90
+ to answer *"is this NetBox user allowed to see this credential?"* itself — and
91
+ then you have two authorization implementations for your most sensitive data,
92
+ which will drift. Every drift is a privilege-escalation bug.
93
+
94
+ As a Django plugin it reuses NetBox's tokens, object permissions, constraints,
95
+ and changelog directly. Blocking I/O is handled with NetBox's own RQ job
96
+ framework: a single reveal is synchronous and sub-100ms; bulk work is a
97
+ background job.
98
+
99
+ ## Security properties
100
+
101
+ These are enforced structurally, not by convention, and each is covered by a
102
+ test in `netbox_openbao/tests/test_security.py`:
103
+
104
+ - **No model field can hold secret material.** There is no column to leak, so
105
+ the changelog, export templates, and the REST representation are safe by
106
+ construction rather than by careful configuration.
107
+ - **`secret_data` is `write_only`.** DRF itself refuses to serialize it — into a
108
+ `GET`, a `brief=true` response, the browsable API, or an OpenAPI example.
109
+ - **`reveal` is a permission of its own**, separate from `view` and
110
+ constrainable in the standard ObjectPermission UI. A role can inventory every
111
+ credential and read none.
112
+ - **Reveal responses are JSON-only and `no-store`.** The browsable renderer
113
+ would template the secret into cacheable HTML; it is explicitly removed.
114
+ - **The UI reveal is POST-only**, so a secret is never fetched by a bookmark, a
115
+ prefetch, a link scanner, or a history replay.
116
+ - **No auth material in the database.** RoleIDs and SecretIDs come from the
117
+ process environment, or a file it points at.
118
+ - **Per-tier AppRoles**, so a leaked SecretID reads only its own tier and a tier
119
+ whose SecretID was never delivered to an instance is unreadable from it. This
120
+ bounds blast radius; it does not re-authorize the NetBox user, and the
121
+ documentation is careful about the difference.
122
+ - **Backend exceptions carry no server text.** An OpenBao 403 body can
123
+ enumerate policy rules; it never reaches a log, a traceback, or a response.
124
+ - **Every access is audited** — who, when, from where, and whether it
125
+ succeeded. Never the value.
126
+ - **OpenBao administration is typed and permissioned.** Cluster, auth/MFA,
127
+ secret-engine, policy, identity, OIDC, and namespace operations use static
128
+ reviewed contracts intersected with runtime capability discovery. The Web UI
129
+ and REST API never become a generic privileged proxy.
130
+
131
+ ## Requirements
132
+
133
+ | | |
134
+ |---|---|
135
+ | NetBox | **4.6 or 4.7** (4.6.0–4.7.99; exact 4.7 beta2 evidence below) |
136
+ | Python | 3.12+ |
137
+ | PostgreSQL | 15+ with the `ltree` extension (a NetBox 4.7 requirement) |
138
+ | Redis | 6+ |
139
+ | OpenBao | 2.6.x, KV v2 mount |
140
+ | HashiCorp Vault | supported as an alternative backend — see below |
141
+ | Broker mode | optional; needs [`netbox-openbao-broker`](https://github.com/emersonfelipesp/netbox-openbao-broker) |
142
+
143
+ NetBox 4.6 and 4.7 are both supported. The releases differ in four capabilities
144
+ used here (notably `ipam.Service` port storage), and those differences are
145
+ isolated in `netbox_openbao/compat.py`. The full suite currently passes on exact
146
+ NetBox `v4.7.0-beta2`; the compatibility gate also retains NetBox 4.6.5 as the
147
+ backward-regression target. See
148
+ [`docs/installation.md`](docs/installation.md#netbox-46-and-47) for the exact
149
+ boundary.
150
+
151
+ ## Install
152
+
153
+ ```bash
154
+ pip install netbox-openbao
155
+ ```
156
+
157
+ ```python
158
+ # configuration.py
159
+ PLUGINS = ['netbox_openbao']
160
+
161
+ PLUGINS_CONFIG = {
162
+ 'netbox_openbao': {
163
+ # Optional seed/fallback. Runtime settings are managed through the
164
+ # plugin API once its singleton settings row exists.
165
+ 'assignable_models': [
166
+ 'dcim.device',
167
+ 'virtualization.virtualmachine',
168
+ 'ipam.service',
169
+ ],
170
+ },
171
+ }
172
+ ```
173
+
174
+ ```bash
175
+ python manage.py migrate
176
+ systemctl restart netbox netbox-rq
177
+ ```
178
+
179
+ Then export the AppRole material for each engine. The prefix is derived from
180
+ the engine's slug — slug `prod-core` becomes `NETBOX_BAO_PROD_CORE`:
181
+
182
+ ```bash
183
+ NETBOX_BAO_PRIMARY_ROLE_ID=...
184
+ NETBOX_BAO_PRIMARY_SECRET_ID=...
185
+ ```
186
+
187
+ Either variable also accepts a `_FILE` form pointing at a mounted secret, which
188
+ keeps the value out of `/proc/<pid>/environ`:
189
+
190
+ ```bash
191
+ NETBOX_BAO_PRIMARY_SECRET_ID_FILE=/run/secrets/bao-secret-id
192
+ ```
193
+
194
+ `assignable_models` is the allowlist of object types a credential may be
195
+ assigned to. An installed plugin can add its own models to it from
196
+ `AppConfig.ready()` — see
197
+ [Assignable object types](docs/configuration.md#assignable-object-types) — so
198
+ integrating with this plugin does not require every deployment to restate the
199
+ same list in a settings file. `assignable_models_deny` subtracts from the
200
+ result, which is what keeps the final word with the operator.
201
+
202
+ Full detail in [`docs/installation.md`](docs/installation.md) and
203
+ [`docs/configuration.md`](docs/configuration.md), or on the documentation site:
204
+ <https://emersonfelipesp.github.io/netbox-openbao/>.
205
+
206
+ Release operators must use the immutable Gitea package and NMS proof-v3
207
+ deployment path. Target IDs, release-candidate and final publication triggers,
208
+ validation, and rollback are documented in
209
+ [`docs/release-deployment.md`](docs/release-deployment.md).
210
+
211
+ ## Using it
212
+
213
+ ```bash
214
+ # Inventory — never returns material
215
+ curl -H "Authorization: Bearer $TOKEN" \
216
+ 'https://netbox.example.net/api/plugins/openbao/credentials/?credential_type=x509-keypair'
217
+
218
+ # Everything expiring in the next 30 days — zero OpenBao reads
219
+ curl -H "Authorization: Bearer $TOKEN" \
220
+ 'https://netbox.example.net/api/plugins/openbao/credentials/?expires_within_days=30'
221
+
222
+ # What does device 88 hold?
223
+ curl -H "Authorization: Bearer $TOKEN" \
224
+ 'https://netbox.example.net/api/plugins/openbao/credentials/?assigned_object_type=dcim.device&assigned_object_id=88'
225
+
226
+ # Resolve material — requires netbox_openbao.reveal_credential
227
+ curl -H "Authorization: Bearer $TOKEN" \
228
+ 'https://netbox.example.net/api/plugins/openbao/credentials/142/reveal/?reason=CHG-1234'
229
+ ```
230
+
231
+ ## OpenBao or Vault
232
+
233
+ The plugin is named for OpenBao and that is its reference backend, but a
234
+ `SecretEngine` can be pointed at **HashiCorp Vault** instead by changing one
235
+ field. The two share the KV v2 and AppRole surfaces, and the plugin's whole
236
+ wire-protocol contract is run as one shared suite against both servers, so this
237
+ is verified rather than claimed.
238
+
239
+ ## Broker mode, and what it is honestly worth
240
+
241
+ A third backend, `broker`, points an engine at
242
+ [`netbox-openbao-broker`](https://github.com/emersonfelipesp/netbox-openbao-broker)
243
+ instead of at OpenBao. NetBox then holds a **client certificate** that lets it
244
+ *ask*, and the broker holds the AppRole that can actually *read*.
245
+
246
+ It is worth being precise about what that buys, because it is easy to oversell
247
+ and an operator might relax controls elsewhere on the strength of it:
248
+
249
+ > **It does not make "NetBox compromise ≠ secret compromise" true.** An attacker
250
+ > with code execution in NetBox can still ask the broker for material, and the
251
+ > broker will answer for anything NetBox is authorized to request.
252
+
253
+ What it does buy: stealing NetBox's database or configuration no longer yields
254
+ credentials that read the vault directly, the broker's audit log sits outside
255
+ NetBox's blast radius, and the AppRole's SecretID never exists on the NetBox
256
+ host at all. That is a real improvement against offline compromise, backup
257
+ theft, and configuration leakage — and it is not the stronger claim.
258
+
259
+ Optional throughout. The default deployment is unchanged, and nothing above the
260
+ `SecretBackend` abstraction knows which mode is in use. See
261
+ [`docs/installation.md`](docs/installation.md#broker-mode).
262
+
263
+ OpenBao administration also has full broker parity. The plugin negotiates a
264
+ versioned, digest-bound, instance-enabled contract before exposing cluster,
265
+ authentication, secret-engine, policy/identity, lease/tool, or Raft snapshot
266
+ operations. The broker accepts only reviewed operation identifiers and bounded
267
+ typed inputs; it is not an arbitrary OpenBao proxy and never replaces NetBox's
268
+ per-user authorization.
269
+
270
+ ## Data model
271
+
272
+ | Model | Role |
273
+ |---|---|
274
+ | `OpenBaoCluster` | One administrative API endpoint and namespace. Holds no auth material. |
275
+ | `SecretEngine` | One credential-storage mount, associated with a cluster. Holds no auth material. |
276
+ | `CredentialPolicy` | An authorization tier mapped onto a real OpenBao policy, with its own AppRole. |
277
+ | `Credential` | The inventory record: identity, public material, lifecycle. Never the secret. |
278
+ | `CredentialAssignment` | Many-to-many binding to Devices, VMs, and Services, with a purpose. |
279
+ | `CredentialAccessLog` | Append-only correlation between a NetBox user and an OpenBao read. |
280
+ | `OpenBaoAdministrationLog` | Append-only metadata correlation for administrative probes and operations. |
281
+
282
+ The OpenBao path is UUID-derived and immutable
283
+ (`<prefix>/credentials/<uuid>`). A path derived from the object graph would
284
+ break the first time a credential is renamed or reassigned, and a broken path
285
+ is an orphaned secret nobody can find. Discovery instead comes from KV v2
286
+ `custom_metadata`, which carries the credential's NetBox identity, type,
287
+ policy, and assignments, so tooling outside NetBox can list the mount and
288
+ filter on them.
289
+
290
+ ## Roadmap
291
+
292
+ Implemented: the credential models, the backend abstraction with the OpenBao
293
+ implementation, credential type schemas and extractors, the full REST API with
294
+ the security invariants above, list/detail/edit UI, Device/VM/Service panels,
295
+ the background jobs, and staged rotation (write, verify, promote — never break
296
+ running access). The [OpenBao administration plane](docs/architecture/administration-plane.md)
297
+ now has cluster inventory, bounded runtime capability discovery, dedicated
298
+ permissions, metadata-only audit, guarded bootstrap and seal operations, HA and
299
+ Raft state, peer-removal safety, and bounded authenticated snapshot recovery.
300
+ Its pinned OpenBao 2.6.2 parity manifest records cluster bootstrap, Raft storage, secrets-engine
301
+ lifecycle, the classified API explorer, KV v1/v2, transit, database, SSH,
302
+ TOTP, PKI, Kubernetes, policies, identity, OIDC, namespaces, leases, tools, and
303
+ UI response-header administration as complete. Mounted operation
304
+ execution covers runtime-advertised GET, LIST, POST, PUT, PATCH, and DELETE
305
+ templates that satisfy the reviewed grammar, schema, authorization, and
306
+ material-handling contract, including external plugin-style schemas.
307
+ The checked-in final-operation fixture and runtime conformance endpoint fail on
308
+ missing, duplicate, unclassified, or stale OpenBao 2.6.2 contracts. Other
309
+ discovered operations remain non-executable until their capability family is
310
+ implemented and reviewed.
311
+
312
+ Also shipped since: the
313
+ [Ansible lookup plugin](https://github.com/emersonfelipesp/netbox-openbao-ansible)
314
+ and [broker mode](#broker-mode-and-what-it-is-honestly-worth), whose earlier
315
+ description here — "so a NetBox compromise is not a secret compromise" —
316
+ claimed more than the design delivers and has been corrected above.
317
+
318
+ Deliberately not yet here:
319
+
320
+ - Cloud credential engines and the remaining typed dynamic-secret families
321
+ - OpenBao capabilities introduced after the pinned 2.6.2 UI and runtime
322
+ contracts. A later minor release requires a new review and evidence fixture;
323
+ runtime discovery alone never expands execution.
324
+
325
+ **Host operations via netbox-rpc** are implemented on `SecretEngine`: bind an
326
+ OpenBao host `dcim.Device`, then dispatch the seeded `service.openbao.1.*`
327
+ read/write procedures through `POST …/engines/{id}/run-procedure/` (UI mirror:
328
+ the engine detail page). Each dispatch creates an audited `OpenBaoProcedureRun`
329
+ row linked to `netbox_rpc.RPCExecution`.
330
+
331
+ ## Giving a device SSH access
332
+
333
+ There is an **Add SSH access** button on every Device and VM page. One form
334
+ creates the `ipam.Service`, generates or accepts the keypair, writes the
335
+ private half to OpenBao, and assigns the credential — in a single transaction.
336
+ If it generates the key, the **public** half is shown once so it can go
337
+ straight into `authorized_keys`.
338
+
339
+ ## Coming from netbox-secrets?
340
+
341
+ ```bash
342
+ python manage.py openbao_import_secrets --engine primary --policy imported --dry-run
343
+ ```
344
+
345
+ The importer copies — it never deletes — infers each secret's type and proves
346
+ the inference by extraction, and is resumable. See
347
+ [`docs/migration-from-netbox-secrets.md`](docs/migration-from-netbox-secrets.md).
348
+
349
+ ## Development
350
+
351
+ ```bash
352
+ docker compose -f docker-compose.dev.yml up -d
353
+ ```
354
+
355
+ See [`docs/development.md`](docs/development.md) for running the suite against
356
+ real NetBox 4.7 and a live OpenBao dev server, and
357
+ [`CONTRIBUTING.md`](CONTRIBUTING.md) for what a change is expected to bring
358
+ with it.
359
+
360
+ The documentation site builds from the checkout with no package install and no
361
+ NetBox — `mkdocstrings` reads the source statically:
362
+
363
+ ```bash
364
+ pip install '.[docs]'
365
+ mkdocs serve
366
+ ```
367
+
368
+ ## License
369
+
370
+ Apache-2.0.