netbox-certificates 1.0.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 (250) hide show
  1. netbox_certificates-1.0.0/AI_ASSISTANCE.md +7 -0
  2. netbox_certificates-1.0.0/CHANGELOG.md +14 -0
  3. netbox_certificates-1.0.0/COMPATIBILITY.md +19 -0
  4. netbox_certificates-1.0.0/CONTRIBUTING.md +33 -0
  5. netbox_certificates-1.0.0/LICENSE +201 -0
  6. netbox_certificates-1.0.0/MANIFEST.in +20 -0
  7. netbox_certificates-1.0.0/NOTICE +12 -0
  8. netbox_certificates-1.0.0/PKG-INFO +142 -0
  9. netbox_certificates-1.0.0/README.md +110 -0
  10. netbox_certificates-1.0.0/SECURITY.md +58 -0
  11. netbox_certificates-1.0.0/UPGRADE.md +20 -0
  12. netbox_certificates-1.0.0/VALIDATION.md +40 -0
  13. netbox_certificates-1.0.0/docs/ACCEPTANCE.md +35 -0
  14. netbox_certificates-1.0.0/docs/ALERTS.md +120 -0
  15. netbox_certificates-1.0.0/docs/API.md +254 -0
  16. netbox_certificates-1.0.0/docs/BACKUPS.md +9 -0
  17. netbox_certificates-1.0.0/docs/BULK_OPERATIONS.md +36 -0
  18. netbox_certificates-1.0.0/docs/EXPORTS.md +89 -0
  19. netbox_certificates-1.0.0/docs/HEALTH-AND-VALIDITY.md +102 -0
  20. netbox_certificates-1.0.0/docs/IMPORTS.md +44 -0
  21. netbox_certificates-1.0.0/docs/MODELS.md +33 -0
  22. netbox_certificates-1.0.0/docs/PERMISSIONS.md +91 -0
  23. netbox_certificates-1.0.0/docs/POLICIES.md +10 -0
  24. netbox_certificates-1.0.0/docs/PREFERENCES.md +32 -0
  25. netbox_certificates-1.0.0/docs/PUBLISHING.md +33 -0
  26. netbox_certificates-1.0.0/docs/RELEASING.md +9 -0
  27. netbox_certificates-1.0.0/docs/SERVICES.md +78 -0
  28. netbox_certificates-1.0.0/docs/UNINSTALL.md +17 -0
  29. netbox_certificates-1.0.0/netbox-plugin.yaml +9 -0
  30. netbox_certificates-1.0.0/netbox_certificate_manager/__init__.py +32 -0
  31. netbox_certificates-1.0.0/netbox_certificate_manager/activity.py +62 -0
  32. netbox_certificates-1.0.0/netbox_certificate_manager/alert_settings.py +227 -0
  33. netbox_certificates-1.0.0/netbox_certificate_manager/api/__init__.py +3 -0
  34. netbox_certificates-1.0.0/netbox_certificate_manager/api/activity.py +18 -0
  35. netbox_certificates-1.0.0/netbox_certificate_manager/api/alert_settings.py +125 -0
  36. netbox_certificates-1.0.0/netbox_certificate_manager/api/backup.py +40 -0
  37. netbox_certificates-1.0.0/netbox_certificate_manager/api/base_serializers.py +408 -0
  38. netbox_certificates-1.0.0/netbox_certificate_manager/api/csr_generation.py +64 -0
  39. netbox_certificates-1.0.0/netbox_certificate_manager/api/exports.py +50 -0
  40. netbox_certificates-1.0.0/netbox_certificate_manager/api/import_options.py +35 -0
  41. netbox_certificates-1.0.0/netbox_certificate_manager/api/inventory.py +28 -0
  42. netbox_certificates-1.0.0/netbox_certificate_manager/api/inventory_serializers.py +238 -0
  43. netbox_certificates-1.0.0/netbox_certificate_manager/api/inventory_urls.py +32 -0
  44. netbox_certificates-1.0.0/netbox_certificate_manager/api/inventory_views.py +220 -0
  45. netbox_certificates-1.0.0/netbox_certificate_manager/api/new_inventory.py +32 -0
  46. netbox_certificates-1.0.0/netbox_certificate_manager/api/preferences.py +62 -0
  47. netbox_certificates-1.0.0/netbox_certificate_manager/api/serializers.py +26 -0
  48. netbox_certificates-1.0.0/netbox_certificate_manager/api/urls.py +24 -0
  49. netbox_certificates-1.0.0/netbox_certificate_manager/api/views.py +298 -0
  50. netbox_certificates-1.0.0/netbox_certificate_manager/backup.py +57 -0
  51. netbox_certificates-1.0.0/netbox_certificate_manager/bulk_export.py +436 -0
  52. netbox_certificates-1.0.0/netbox_certificate_manager/choices.py +124 -0
  53. netbox_certificates-1.0.0/netbox_certificate_manager/constants.py +24 -0
  54. netbox_certificates-1.0.0/netbox_certificate_manager/dashboard.py +23 -0
  55. netbox_certificates-1.0.0/netbox_certificate_manager/dashboard_activity.py +40 -0
  56. netbox_certificates-1.0.0/netbox_certificate_manager/empty_exports.py +25 -0
  57. netbox_certificates-1.0.0/netbox_certificate_manager/event_rules.py +71 -0
  58. netbox_certificates-1.0.0/netbox_certificate_manager/export_names.py +38 -0
  59. netbox_certificates-1.0.0/netbox_certificate_manager/filter_fields.py +16 -0
  60. netbox_certificates-1.0.0/netbox_certificate_manager/filtersets.py +304 -0
  61. netbox_certificates-1.0.0/netbox_certificate_manager/finding_display.py +27 -0
  62. netbox_certificates-1.0.0/netbox_certificate_manager/forms.py +796 -0
  63. netbox_certificates-1.0.0/netbox_certificate_manager/graphql.py +164 -0
  64. netbox_certificates-1.0.0/netbox_certificate_manager/group_types.py +57 -0
  65. netbox_certificates-1.0.0/netbox_certificate_manager/inventory_export.py +98 -0
  66. netbox_certificates-1.0.0/netbox_certificate_manager/inventory_filtersets.py +50 -0
  67. netbox_certificates-1.0.0/netbox_certificate_manager/inventory_views.py +118 -0
  68. netbox_certificates-1.0.0/netbox_certificate_manager/jobs.py +92 -0
  69. netbox_certificates-1.0.0/netbox_certificate_manager/labels.py +32 -0
  70. netbox_certificates-1.0.0/netbox_certificate_manager/management/__init__.py +1 -0
  71. netbox_certificates-1.0.0/netbox_certificate_manager/management/commands/__init__.py +1 -0
  72. netbox_certificates-1.0.0/netbox_certificate_manager/management/commands/check_certificate_revocation.py +11 -0
  73. netbox_certificates-1.0.0/netbox_certificate_manager/management/commands/dispatch_certificate_alerts.py +14 -0
  74. netbox_certificates-1.0.0/netbox_certificate_manager/management/commands/reconcile_certificate_links.py +10 -0
  75. netbox_certificates-1.0.0/netbox_certificate_manager/management/commands/refresh_certificate_health.py +13 -0
  76. netbox_certificates-1.0.0/netbox_certificate_manager/management/commands/refresh_certificate_status.py +10 -0
  77. netbox_certificates-1.0.0/netbox_certificate_manager/management/commands/rotate_certificate_encryption.py +43 -0
  78. netbox_certificates-1.0.0/netbox_certificate_manager/metadata_export.py +161 -0
  79. netbox_certificates-1.0.0/netbox_certificate_manager/middleware.py +78 -0
  80. netbox_certificates-1.0.0/netbox_certificate_manager/migrations/0001_initial.py +599 -0
  81. netbox_certificates-1.0.0/netbox_certificate_manager/migrations/0002_alertsettings_notifications_enabled_and_more.py +43 -0
  82. netbox_certificates-1.0.0/netbox_certificate_manager/migrations/0003_alertchannel_retry_attempts_and_more.py +47 -0
  83. netbox_certificates-1.0.0/netbox_certificate_manager/migrations/0004_bundle_monitoring.py +9 -0
  84. netbox_certificates-1.0.0/netbox_certificate_manager/migrations/0005_settings_audit.py +16 -0
  85. netbox_certificates-1.0.0/netbox_certificate_manager/migrations/0006_finding_occurrences.py +9 -0
  86. netbox_certificates-1.0.0/netbox_certificate_manager/migrations/0007_isolate_tag_relations.py +11 -0
  87. netbox_certificates-1.0.0/netbox_certificate_manager/migrations/0008_revocation_strategy_and_verified_time.py +13 -0
  88. netbox_certificates-1.0.0/netbox_certificate_manager/migrations/__init__.py +1 -0
  89. netbox_certificates-1.0.0/netbox_certificate_manager/model_mixins.py +65 -0
  90. netbox_certificates-1.0.0/netbox_certificate_manager/models.py +374 -0
  91. netbox_certificates-1.0.0/netbox_certificate_manager/navigation.py +17 -0
  92. netbox_certificates-1.0.0/netbox_certificate_manager/object_tabs.py +199 -0
  93. netbox_certificates-1.0.0/netbox_certificate_manager/operational_choices.py +174 -0
  94. netbox_certificates-1.0.0/netbox_certificate_manager/operational_filtersets.py +307 -0
  95. netbox_certificates-1.0.0/netbox_certificate_manager/operational_forms.py +556 -0
  96. netbox_certificates-1.0.0/netbox_certificate_manager/operational_models.py +550 -0
  97. netbox_certificates-1.0.0/netbox_certificate_manager/operational_tables.py +131 -0
  98. netbox_certificates-1.0.0/netbox_certificate_manager/operational_views.py +702 -0
  99. netbox_certificates-1.0.0/netbox_certificate_manager/operations_views.py +95 -0
  100. netbox_certificates-1.0.0/netbox_certificate_manager/permissions.py +49 -0
  101. netbox_certificates-1.0.0/netbox_certificate_manager/preferences.py +88 -0
  102. netbox_certificates-1.0.0/netbox_certificate_manager/querysets.py +25 -0
  103. netbox_certificates-1.0.0/netbox_certificate_manager/relationship_signals.py +156 -0
  104. netbox_certificates-1.0.0/netbox_certificate_manager/search.py +146 -0
  105. netbox_certificates-1.0.0/netbox_certificate_manager/services/__init__.py +1 -0
  106. netbox_certificates-1.0.0/netbox_certificate_manager/services/activity.py +61 -0
  107. netbox_certificates-1.0.0/netbox_certificate_manager/services/alerts.py +304 -0
  108. netbox_certificates-1.0.0/netbox_certificate_manager/services/backup.py +104 -0
  109. netbox_certificates-1.0.0/netbox_certificate_manager/services/bundles.py +252 -0
  110. netbox_certificates-1.0.0/netbox_certificate_manager/services/certificate_authorities.py +31 -0
  111. netbox_certificates-1.0.0/netbox_certificate_manager/services/chain.py +78 -0
  112. netbox_certificates-1.0.0/netbox_certificate_manager/services/csr.py +174 -0
  113. netbox_certificates-1.0.0/netbox_certificate_manager/services/csr_templates.py +27 -0
  114. netbox_certificates-1.0.0/netbox_certificate_manager/services/csr_workflow.py +82 -0
  115. netbox_certificates-1.0.0/netbox_certificate_manager/services/delivery.py +48 -0
  116. netbox_certificates-1.0.0/netbox_certificate_manager/services/duplicates.py +51 -0
  117. netbox_certificates-1.0.0/netbox_certificate_manager/services/email_templates.py +52 -0
  118. netbox_certificates-1.0.0/netbox_certificate_manager/services/encryption.py +85 -0
  119. netbox_certificates-1.0.0/netbox_certificate_manager/services/endpoint_check.py +76 -0
  120. netbox_certificates-1.0.0/netbox_certificate_manager/services/events.py +32 -0
  121. netbox_certificates-1.0.0/netbox_certificate_manager/services/expiry.py +67 -0
  122. netbox_certificates-1.0.0/netbox_certificate_manager/services/health.py +920 -0
  123. netbox_certificates-1.0.0/netbox_certificate_manager/services/importing.py +157 -0
  124. netbox_certificates-1.0.0/netbox_certificate_manager/services/ingest.py +91 -0
  125. netbox_certificates-1.0.0/netbox_certificate_manager/services/inventory.py +96 -0
  126. netbox_certificates-1.0.0/netbox_certificate_manager/services/linker.py +263 -0
  127. netbox_certificates-1.0.0/netbox_certificate_manager/services/mattermost.py +49 -0
  128. netbox_certificates-1.0.0/netbox_certificate_manager/services/metadata_import.py +118 -0
  129. netbox_certificates-1.0.0/netbox_certificate_manager/services/monitoring_settings.py +46 -0
  130. netbox_certificates-1.0.0/netbox_certificate_manager/services/naming.py +64 -0
  131. netbox_certificates-1.0.0/netbox_certificate_manager/services/network.py +146 -0
  132. netbox_certificates-1.0.0/netbox_certificate_manager/services/notification_context.py +25 -0
  133. netbox_certificates-1.0.0/netbox_certificate_manager/services/parser.py +279 -0
  134. netbox_certificates-1.0.0/netbox_certificate_manager/services/pkcs12_export.py +35 -0
  135. netbox_certificates-1.0.0/netbox_certificate_manager/services/revocation.py +264 -0
  136. netbox_certificates-1.0.0/netbox_certificate_manager/services/settings_audit.py +26 -0
  137. netbox_certificates-1.0.0/netbox_certificate_manager/services/smtp.py +33 -0
  138. netbox_certificates-1.0.0/netbox_certificate_manager/services/status.py +43 -0
  139. netbox_certificates-1.0.0/netbox_certificate_manager/services/unified_import.py +192 -0
  140. netbox_certificates-1.0.0/netbox_certificate_manager/services/x509_metadata.py +86 -0
  141. netbox_certificates-1.0.0/netbox_certificate_manager/signals.py +57 -0
  142. netbox_certificates-1.0.0/netbox_certificate_manager/static/netbox_certificate_manager/bulk_selection.js +33 -0
  143. netbox_certificates-1.0.0/netbox_certificate_manager/static/netbox_certificate_manager/csr_editor.js +93 -0
  144. netbox_certificates-1.0.0/netbox_certificate_manager/static/netbox_certificate_manager/editors.css +36 -0
  145. netbox_certificates-1.0.0/netbox_certificate_manager/static/netbox_certificate_manager/export.js +12 -0
  146. netbox_certificates-1.0.0/netbox_certificate_manager/static/netbox_certificate_manager/groups.css +11 -0
  147. netbox_certificates-1.0.0/netbox_certificate_manager/static/netbox_certificate_manager/groups.js +16 -0
  148. netbox_certificates-1.0.0/netbox_certificate_manager/static/netbox_certificate_manager/inventory.css +164 -0
  149. netbox_certificates-1.0.0/netbox_certificate_manager/static/netbox_certificate_manager/template_prefill.js +27 -0
  150. netbox_certificates-1.0.0/netbox_certificate_manager/static/netbox_certificate_manager/vault.css +39 -0
  151. netbox_certificates-1.0.0/netbox_certificate_manager/table_fields.py +75 -0
  152. netbox_certificates-1.0.0/netbox_certificate_manager/tables.py +248 -0
  153. netbox_certificates-1.0.0/netbox_certificate_manager/template_content.py +102 -0
  154. netbox_certificates-1.0.0/netbox_certificate_manager/templates/netbox_certificate_manager/_groups.html +13 -0
  155. netbox_certificates-1.0.0/netbox_certificate_manager/templates/netbox_certificate_manager/_links.html +20 -0
  156. netbox_certificates-1.0.0/netbox_certificate_manager/templates/netbox_certificate_manager/alert_settings.html +18 -0
  157. netbox_certificates-1.0.0/netbox_certificate_manager/templates/netbox_certificate_manager/alertchannel_list.html +3 -0
  158. netbox_certificates-1.0.0/netbox_certificate_manager/templates/netbox_certificate_manager/alertevent_list.html +3 -0
  159. netbox_certificates-1.0.0/netbox_certificate_manager/templates/netbox_certificate_manager/alertrule_list.html +6 -0
  160. netbox_certificates-1.0.0/netbox_certificate_manager/templates/netbox_certificate_manager/artifactgroup_tree_list.html +33 -0
  161. netbox_certificates-1.0.0/netbox_certificate_manager/templates/netbox_certificate_manager/bundle.html +3 -0
  162. netbox_certificates-1.0.0/netbox_certificate_manager/templates/netbox_certificate_manager/bundle_export.html +19 -0
  163. netbox_certificates-1.0.0/netbox_certificate_manager/templates/netbox_certificate_manager/bundle_list.html +6 -0
  164. netbox_certificates-1.0.0/netbox_certificate_manager/templates/netbox_certificate_manager/certificate.html +3 -0
  165. netbox_certificates-1.0.0/netbox_certificate_manager/templates/netbox_certificate_manager/certificate_list.html +7 -0
  166. netbox_certificates-1.0.0/netbox_certificate_manager/templates/netbox_certificate_manager/certificateauthority.html +1 -0
  167. netbox_certificates-1.0.0/netbox_certificate_manager/templates/netbox_certificate_manager/certificatetemplate.html +1 -0
  168. netbox_certificates-1.0.0/netbox_certificate_manager/templates/netbox_certificate_manager/csr.html +3 -0
  169. netbox_certificates-1.0.0/netbox_certificate_manager/templates/netbox_certificate_manager/csr_generate.html +92 -0
  170. netbox_certificates-1.0.0/netbox_certificate_manager/templates/netbox_certificate_manager/csr_list.html +7 -0
  171. netbox_certificates-1.0.0/netbox_certificate_manager/templates/netbox_certificate_manager/dashboard_widget.html +1 -0
  172. netbox_certificates-1.0.0/netbox_certificate_manager/templates/netbox_certificate_manager/empty_export.html +6 -0
  173. netbox_certificates-1.0.0/netbox_certificate_manager/templates/netbox_certificate_manager/group.html +58 -0
  174. netbox_certificates-1.0.0/netbox_certificate_manager/templates/netbox_certificate_manager/group_edit.html +38 -0
  175. netbox_certificates-1.0.0/netbox_certificate_manager/templates/netbox_certificate_manager/group_list.html +1 -0
  176. netbox_certificates-1.0.0/netbox_certificate_manager/templates/netbox_certificate_manager/healthfinding_list.html +70 -0
  177. netbox_certificates-1.0.0/netbox_certificate_manager/templates/netbox_certificate_manager/history.html +5 -0
  178. netbox_certificates-1.0.0/netbox_certificate_manager/templates/netbox_certificate_manager/import_objects.html +4 -0
  179. netbox_certificates-1.0.0/netbox_certificate_manager/templates/netbox_certificate_manager/inc/bulk_selection.html +5 -0
  180. netbox_certificates-1.0.0/netbox_certificate_manager/templates/netbox_certificate_manager/inc/dashboard_activity.html +16 -0
  181. netbox_certificates-1.0.0/netbox_certificate_manager/templates/netbox_certificate_manager/inc/group_tree_nodes.html +23 -0
  182. netbox_certificates-1.0.0/netbox_certificate_manager/templates/netbox_certificate_manager/inc/inventory_types.html +15 -0
  183. netbox_certificates-1.0.0/netbox_certificate_manager/templates/netbox_certificate_manager/inc/metadata_value.html +6 -0
  184. netbox_certificates-1.0.0/netbox_certificate_manager/templates/netbox_certificate_manager/inc/object_links.html +68 -0
  185. netbox_certificates-1.0.0/netbox_certificate_manager/templates/netbox_certificate_manager/inc/requested.html +7 -0
  186. netbox_certificates-1.0.0/netbox_certificate_manager/templates/netbox_certificate_manager/inc/service_assignments.html +24 -0
  187. netbox_certificates-1.0.0/netbox_certificate_manager/templates/netbox_certificate_manager/inc/vault_inventory.html +17 -0
  188. netbox_certificates-1.0.0/netbox_certificate_manager/templates/netbox_certificate_manager/inventory_export.html +19 -0
  189. netbox_certificates-1.0.0/netbox_certificate_manager/templates/netbox_certificate_manager/inventory_object.html +47 -0
  190. netbox_certificates-1.0.0/netbox_certificate_manager/templates/netbox_certificate_manager/link_add.html +1 -0
  191. netbox_certificates-1.0.0/netbox_certificate_manager/templates/netbox_certificate_manager/link_remove.html +1 -0
  192. netbox_certificates-1.0.0/netbox_certificate_manager/templates/netbox_certificate_manager/metadata_tab.html +34 -0
  193. netbox_certificates-1.0.0/netbox_certificate_manager/templates/netbox_certificate_manager/notification_email.html +27 -0
  194. netbox_certificates-1.0.0/netbox_certificate_manager/templates/netbox_certificate_manager/object_links_tab.html +7 -0
  195. netbox_certificates-1.0.0/netbox_certificate_manager/templates/netbox_certificate_manager/object_restore.html +12 -0
  196. netbox_certificates-1.0.0/netbox_certificate_manager/templates/netbox_certificate_manager/objectlink_list.html +3 -0
  197. netbox_certificates-1.0.0/netbox_certificate_manager/templates/netbox_certificate_manager/preferences.html +21 -0
  198. netbox_certificates-1.0.0/netbox_certificate_manager/templates/netbox_certificate_manager/privatekey.html +3 -0
  199. netbox_certificates-1.0.0/netbox_certificate_manager/templates/netbox_certificate_manager/privatekey_list.html +6 -0
  200. netbox_certificates-1.0.0/netbox_certificate_manager/templates/netbox_certificate_manager/service_edit.html +28 -0
  201. netbox_certificates-1.0.0/netbox_certificate_manager/templates/netbox_certificate_manager/service_list.html +6 -0
  202. netbox_certificates-1.0.0/netbox_certificate_manager/templates/netbox_certificate_manager/settings_category.html +11 -0
  203. netbox_certificates-1.0.0/netbox_certificate_manager/templates/netbox_certificate_manager/vault.html +1 -0
  204. netbox_certificates-1.0.0/netbox_certificate_manager/templatetags/__init__.py +0 -0
  205. netbox_certificates-1.0.0/netbox_certificate_manager/templatetags/certificates.py +31 -0
  206. netbox_certificates-1.0.0/netbox_certificate_manager/tests/__init__.py +1 -0
  207. netbox_certificates-1.0.0/netbox_certificate_manager/tests/test_activity.py +133 -0
  208. netbox_certificates-1.0.0/netbox_certificate_manager/tests/test_backup.py +69 -0
  209. netbox_certificates-1.0.0/netbox_certificate_manager/tests/test_dashboard_revision.py +80 -0
  210. netbox_certificates-1.0.0/netbox_certificate_manager/tests/test_form_validation.py +125 -0
  211. netbox_certificates-1.0.0/netbox_certificate_manager/tests/test_independent_plugin.py +416 -0
  212. netbox_certificates-1.0.0/netbox_certificate_manager/tests/test_inventory_revision.py +153 -0
  213. netbox_certificates-1.0.0/netbox_certificate_manager/tests/test_release_acceptance.py +143 -0
  214. netbox_certificates-1.0.0/netbox_certificate_manager/tests/test_revision_140.py +196 -0
  215. netbox_certificates-1.0.0/netbox_certificate_manager/tests/test_service_checks.py +84 -0
  216. netbox_certificates-1.0.0/netbox_certificate_manager/tests/test_ui.py +97 -0
  217. netbox_certificates-1.0.0/netbox_certificate_manager/tests/test_vault.py +85 -0
  218. netbox_certificates-1.0.0/netbox_certificate_manager/urls.py +187 -0
  219. netbox_certificates-1.0.0/netbox_certificate_manager/validation.py +68 -0
  220. netbox_certificates-1.0.0/netbox_certificate_manager/version.py +1 -0
  221. netbox_certificates-1.0.0/netbox_certificate_manager/views.py +669 -0
  222. netbox_certificates-1.0.0/netbox_certificates.egg-info/PKG-INFO +142 -0
  223. netbox_certificates-1.0.0/netbox_certificates.egg-info/SOURCES.txt +248 -0
  224. netbox_certificates-1.0.0/netbox_certificates.egg-info/dependency_links.txt +1 -0
  225. netbox_certificates-1.0.0/netbox_certificates.egg-info/requires.txt +5 -0
  226. netbox_certificates-1.0.0/netbox_certificates.egg-info/top_level.txt +1 -0
  227. netbox_certificates-1.0.0/pyproject.toml +60 -0
  228. netbox_certificates-1.0.0/release-readiness.json +6 -0
  229. netbox_certificates-1.0.0/requirements-audit.txt +2 -0
  230. netbox_certificates-1.0.0/scripts/check_package.py +26 -0
  231. netbox_certificates-1.0.0/scripts/check_release.py +10 -0
  232. netbox_certificates-1.0.0/setup.cfg +4 -0
  233. netbox_certificates-1.0.0/tests/requirements.txt +7 -0
  234. netbox_certificates-1.0.0/tests/test_bulk_operations_contract.py +75 -0
  235. netbox_certificates-1.0.0/tests/test_endpoint_check.py +64 -0
  236. netbox_certificates-1.0.0/tests/test_netbox45_choices_contract.py +58 -0
  237. netbox_certificates-1.0.0/tests/test_netbox45_service_related_name_contract.py +63 -0
  238. netbox_certificates-1.0.0/tests/test_netbox45_service_tags_contract.py +48 -0
  239. netbox_certificates-1.0.0/tests/test_netbox45_tag_migration_state_contract.py +126 -0
  240. netbox_certificates-1.0.0/tests/test_release_contract.py +96 -0
  241. netbox_certificates-1.0.0/tests/test_revision_behavior.py +334 -0
  242. netbox_certificates-1.0.0/tests/test_source_quality.py +47 -0
  243. netbox_certificates-1.0.0/tests/test_v111_behavior.py +362 -0
  244. netbox_certificates-1.0.0/tests/test_v112_behavior.py +283 -0
  245. netbox_certificates-1.0.0/tests/test_v120_behavior.py +276 -0
  246. netbox_certificates-1.0.0/tests/test_v130_behavior.py +193 -0
  247. netbox_certificates-1.0.0/tests/test_v131_behavior.py +146 -0
  248. netbox_certificates-1.0.0/tests/test_v132_behavior.py +73 -0
  249. netbox_certificates-1.0.0/tests/test_v133_behavior.py +126 -0
  250. netbox_certificates-1.0.0/tests/test_v1_contract.py +152 -0
@@ -0,0 +1,7 @@
1
+ # AI-generated code disclosure
2
+
3
+ This plugin's code is generated by AI (ChatGPT by OpenAI) under the maintainer's direction, including implementation, fixes, tests, and documentation. AI-generated code can contain errors, and passing tests does not guarantee correct or secure operation.
4
+
5
+ The plugin is provided **AS IS, without warranties or guarantees**. To the extent permitted by applicable law and the Apache-2.0 license, the maintainer and contributors disclaim responsibility and liability for problems, losses, damage, or other consequences arising from its use. The AI assistant provides no warranty or guarantee and assumes no responsibility for its operation. You are responsible for evaluating suitability, testing, backups, and deployment.
6
+
7
+ OpenAI does not maintain, sponsor, or endorse this project. This disclosure does not replace or expand the terms of the [Apache-2.0 license](LICENSE), including its warranty disclaimer and limitation of liability. See [AI_ASSISTANCE.md](AI_ASSISTANCE.md) and [NOTICE](NOTICE).
@@ -0,0 +1,14 @@
1
+ # Changelog
2
+
3
+ ## 1.0.0 — 2026-12-04
4
+
5
+ New independent application and schema derived from the Apache-2.0 legacy
6
+ v1.9.2 source. Adds logical CAs, CSR templates, requested contacts, metadata and
7
+ lifecycle fields, stable shared-key bundles, optional revocation monitoring,
8
+ multi-URL service checks, Mattermost transport, keyring rotation, constrained
9
+ outbound networking and automated release validation.
10
+
11
+ Includes native inventory tabs, per-object monitoring controls, signed revocation
12
+ verification with fallback, operational Event Rules, audit/history, bounded delivery
13
+ and network controls, and isolated installation alongside the legacy plugin.
14
+ Legacy release history remains in its original repository.
@@ -0,0 +1,19 @@
1
+ # Compatibility
2
+
3
+ | NetBox | Python CI | Verified result |
4
+ |---|---|---|
5
+ | 4.5.9 | 3.12 | Installation, migrations, schema parity and integration tests passed |
6
+ | 4.5.10 | 3.12 | Installation, migrations, schema parity and integration tests passed |
7
+ | 4.6.10 | 3.13 | Installation, migrations, schema parity and integration tests passed |
8
+ | 4.7.6 | 3.13 | Installation, migrations, schema parity and integration tests passed |
9
+ | 4.5.9 with legacy v1.9.2 | 3.12 | Both plugins install/migrate together; isolation and full integration suite passed |
10
+
11
+ [Verified final matrix](https://github.com/Fokkert/netbox-certificates/actions/runs/47334727369).
12
+ See [VALIDATION.md](VALIDATION.md) for counts and limits. Other host versions have
13
+ not been tested. The new schema depends only on baseline NetBox migrations.
14
+
15
+ The native custom notification-channel Event Rule action is available on hosts that
16
+ expose the plugin action registry. Earlier supported hosts can consume the same
17
+ operational events through built-in webhook, notification and script actions.
18
+ Background bulk API writes are disabled to prevent sensitive request bodies being
19
+ persisted in asynchronous jobs. GraphQL query names use `ncm_`; type names use `NCM`.
@@ -0,0 +1,33 @@
1
+ # Development
2
+
3
+ Python 3.12+ as supported by the selected NetBox release; PostgreSQL 16 and Redis 7.
4
+ All fixtures are synthetic. Do not use a production database or real keys.
5
+
6
+ ```shell
7
+ git clone --depth 1 --branch v4.7.6 https://github.com/netbox-community/netbox.git .dev/netbox
8
+ docker compose build test
9
+ docker compose run --rm test python .dev/netbox/netbox/manage.py migrate --no-input
10
+ docker compose run --rm test python .dev/netbox/netbox/manage.py check
11
+ docker compose run --rm test python .dev/netbox/netbox/manage.py makemigrations --check --dry-run netbox_certificate_manager
12
+ docker compose run --rm -e NBCERT_TEST_DATABASE_TEMPLATE=netbox test python .dev/netbox/netbox/manage.py test netbox_certificate_manager.tests --no-input
13
+ ```
14
+
15
+ Run the commands sequentially: PostgreSQL cannot clone an active template database.
16
+ The compose file publishes no database or Redis ports. Stop it with `docker compose down`.
17
+ The configuration in `tests/netbox_configuration.py` is intentionally disposable.
18
+
19
+ Standalone regressions:
20
+
21
+ ```shell
22
+ python -m pip install -r tests/requirements.txt build twine
23
+ python -m unittest discover -s tests -p 'test_*.py'
24
+ python -m build
25
+ python -m twine check dist/*
26
+ python scripts/check_package.py
27
+ ```
28
+
29
+ Historical regression tests were retained with namespace changes. Assertions
30
+ requiring the removed historical migration chain, hidden CA model and group tree
31
+ were changed to the explicitly approved independent-schema and native-list contract.
32
+ New behavior tests run against real NetBox/PostgreSQL/Redis. No live notification
33
+ or remote certificate endpoint is contacted by the tests.
@@ -0,0 +1,201 @@
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,
10
+ and distribution as defined by Sections 1 through 9 of this document.
11
+
12
+ "Licensor" shall mean the copyright owner or entity authorized by
13
+ the copyright owner that is granting the License.
14
+
15
+ "Legal Entity" shall mean the union of the acting entity and all
16
+ other entities that control, are controlled by, or are under common
17
+ control with that entity. For the purposes of this definition,
18
+ "control" means (i) the power, direct or indirect, to cause the
19
+ direction or management of such entity, whether by contract or
20
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
21
+ outstanding shares, or (iii) beneficial ownership of such entity.
22
+
23
+ "You" (or "Your") shall mean an individual or Legal Entity
24
+ exercising permissions granted by this License.
25
+
26
+ "Source" form shall mean the preferred form for making modifications,
27
+ including but not limited to software source code, documentation
28
+ source, and configuration files.
29
+
30
+ "Object" form shall mean any form resulting from mechanical
31
+ transformation or translation of a Source form, including but
32
+ not limited to compiled object code, generated documentation,
33
+ and conversions to other media types.
34
+
35
+ "Work" shall mean the work of authorship, whether in Source or
36
+ Object form, made available under the License, as indicated by a
37
+ copyright notice that is included in or attached to the work
38
+ (an example is provided in the Appendix below).
39
+
40
+ "Derivative Works" shall mean any work, whether in Source or Object
41
+ form, that is based on (or derived from) the Work and for which the
42
+ editorial revisions, annotations, elaborations, or other modifications
43
+ represent, as a whole, an original work of authorship. For the purposes
44
+ of this License, Derivative Works shall not include works that remain
45
+ separable from, or merely link (or bind by name) to the interfaces of,
46
+ the Work and Derivative Works thereof.
47
+
48
+ "Contribution" shall mean any work of authorship, including
49
+ the original version of the Work and any modifications or additions
50
+ to that Work or Derivative Works thereof, that is intentionally
51
+ submitted to Licensor for inclusion in the Work by the copyright owner
52
+ or by an individual or Legal Entity authorized to submit on behalf of
53
+ the copyright owner. For the purposes of this definition, "submitted"
54
+ means any form of electronic, verbal, or written communication sent
55
+ to the Licensor or its representatives, including but not limited to
56
+ communication on electronic mailing lists, source code control systems,
57
+ and issue tracking systems that are managed by, or on behalf of, the
58
+ Licensor for the purpose of discussing and improving the Work, but
59
+ excluding communication that is conspicuously marked or otherwise
60
+ designated in writing by the copyright owner as "Not a Contribution."
61
+
62
+ "Contributor" shall mean Licensor and any individual or Legal Entity
63
+ on behalf of whom a Contribution has been received by Licensor and
64
+ subsequently incorporated within the Work.
65
+
66
+ 2. Grant of Copyright License. Subject to the terms and conditions of
67
+ this License, each Contributor hereby grants to You a perpetual,
68
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
69
+ copyright license to reproduce, prepare Derivative Works of,
70
+ publicly display, publicly perform, sublicense, and distribute the
71
+ Work and such Derivative Works in Source or Object form.
72
+
73
+ 3. Grant of Patent License. Subject to the terms and conditions of
74
+ this License, each Contributor hereby grants to You a perpetual,
75
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
76
+ (except as stated in this section) patent license to make, have made,
77
+ use, offer to sell, sell, import, and otherwise transfer the Work,
78
+ where such license applies only to those patent claims licensable
79
+ by such Contributor that are necessarily infringed by their
80
+ Contribution(s) alone or by combination of their Contribution(s)
81
+ with the Work to which such Contribution(s) was submitted. If You
82
+ institute patent litigation against any entity (including a
83
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
84
+ or a Contribution incorporated within the Work constitutes direct
85
+ or contributory patent infringement, then any patent licenses
86
+ granted to You under this License for that Work shall terminate
87
+ as of the date such litigation is filed.
88
+
89
+ 4. Redistribution. You may reproduce and distribute copies of the
90
+ Work or Derivative Works thereof in any medium, with or without
91
+ modifications, and in Source or Object form, provided that You
92
+ meet the following conditions:
93
+
94
+ (a) You must give any other recipients of the Work or
95
+ Derivative Works a copy of this License; and
96
+
97
+ (b) You must cause any modified files to carry prominent notices
98
+ stating that You changed the files; and
99
+
100
+ (c) You must retain, in the Source form of any Derivative Works
101
+ that You distribute, all copyright, patent, trademark, and
102
+ attribution notices from the Source form of the Work,
103
+ excluding those notices that do not pertain to any part of
104
+ the Derivative Works; and
105
+
106
+ (d) If the Work includes a "NOTICE" text file as part of its
107
+ distribution, then any Derivative Works that You distribute must
108
+ include a readable copy of the attribution notices contained
109
+ within such NOTICE file, excluding those notices that do not
110
+ pertain to any part of the Derivative Works, in at least one
111
+ of the following places: within a NOTICE text file distributed
112
+ as part of the Derivative Works; within the Source form or
113
+ documentation, if provided along with the Derivative Works; or,
114
+ within a display generated by the Derivative Works, if and
115
+ wherever such third-party notices normally appear. The contents
116
+ of the NOTICE file are for informational purposes only and
117
+ do not modify the License. You may add Your own attribution
118
+ notices within Derivative Works that You distribute, alongside
119
+ or as an addendum to the NOTICE text from the Work, provided
120
+ that such additional attribution notices cannot be construed
121
+ as modifying the License.
122
+
123
+ You may add Your own copyright statement to Your modifications and
124
+ may provide additional or different license terms and conditions
125
+ for use, reproduction, or distribution of Your modifications, or
126
+ for any such Derivative Works as a whole, provided Your use,
127
+ reproduction, and distribution of the Work otherwise complies with
128
+ the conditions stated in this License.
129
+
130
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
131
+ any Contribution intentionally submitted for inclusion in the Work
132
+ by You to the Licensor shall be under the terms and conditions of
133
+ this License, without any additional terms or conditions.
134
+ Notwithstanding the above, nothing herein shall supersede or modify
135
+ the terms of any separate license agreement you may have executed
136
+ with Licensor regarding such Contributions.
137
+
138
+ 6. Trademarks. This License does not grant permission to use the trade
139
+ names, trademarks, service marks, or product names of the Licensor,
140
+ except as required for reasonable and customary use in describing the
141
+ origin of the Work and reproducing the content of the NOTICE file.
142
+
143
+ 7. Disclaimer of Warranty. Unless required by applicable law or
144
+ agreed to in writing, Licensor provides the Work (and each
145
+ Contributor provides its Contributions) on an "AS IS" BASIS,
146
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
147
+ implied, including, without limitation, any warranties or conditions
148
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
149
+ PARTICULAR PURPOSE. You are solely responsible for determining the
150
+ appropriateness of using or redistributing the Work and assume any
151
+ risks associated with Your exercise of permissions under this License.
152
+
153
+ 8. Limitation of Liability. In no event and under no legal theory,
154
+ whether in tort (including negligence), contract, or otherwise,
155
+ unless required by applicable law (such as deliberate and grossly
156
+ negligent acts) or agreed to in writing, shall any Contributor be
157
+ liable to You for damages, including any direct, indirect, special,
158
+ incidental, or consequential damages of any character arising as a
159
+ result of this License or out of the use or inability to use the
160
+ Work (including but not limited to damages for loss of goodwill,
161
+ work stoppage, computer failure or malfunction, or any and all
162
+ other commercial damages or losses), even if such Contributor
163
+ has been advised of the possibility of such damages.
164
+
165
+ 9. Accepting Warranty or Additional Liability. While redistributing
166
+ the Work or Derivative Works thereof, You may choose to offer,
167
+ and charge a fee for, acceptance of support, warranty, indemnity,
168
+ or other liability obligations and/or rights consistent with this
169
+ License. However, in accepting such obligations, You may act only
170
+ on Your own behalf and on Your sole responsibility, not on behalf
171
+ of any other Contributor, and only if You agree to indemnify,
172
+ defend, and hold each Contributor harmless for any liability
173
+ incurred by, or claims asserted against, such Contributor by reason
174
+ of your accepting any such warranty or additional liability.
175
+
176
+ END OF TERMS AND CONDITIONS
177
+
178
+ APPENDIX: How to apply the Apache License to your work.
179
+
180
+ To apply the Apache License to your work, attach the following
181
+ boilerplate notice, with the fields enclosed by brackets "[]"
182
+ replaced with your own identifying information. (Don't include
183
+ the brackets!) The text should be enclosed in the appropriate
184
+ comment syntax for the file format. We also recommend that a
185
+ file or class name and description of purpose be included on the
186
+ same "printed page" as the copyright notice for easier
187
+ identification within third-party archives.
188
+
189
+ Copyright [yyyy] [name of copyright owner]
190
+
191
+ Licensed under the Apache License, Version 2.0 (the "License");
192
+ you may not use this file except in compliance with the License.
193
+ You may obtain a copy of the License at
194
+
195
+ http://www.apache.org/licenses/LICENSE-2.0
196
+
197
+ Unless required by applicable law or agreed to in writing, software
198
+ distributed under the License is distributed on an "AS IS" BASIS,
199
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
200
+ See the License for the specific language governing permissions and
201
+ limitations under the License.
@@ -0,0 +1,20 @@
1
+ include LICENSE
2
+ include NOTICE
3
+ include README.md
4
+ include CHANGELOG.md
5
+ include COMPATIBILITY.md
6
+ include CONTRIBUTING.md
7
+ include SECURITY.md
8
+ include UPGRADE.md
9
+ include VALIDATION.md
10
+ include AI_ASSISTANCE.md
11
+ recursive-include docs *.md
12
+ recursive-include netbox_certificate_manager/templates *.html
13
+ recursive-include netbox_certificate_manager/static *
14
+ recursive-include netbox_certificate_manager/migrations *.py
15
+
16
+ include netbox-plugin.yaml
17
+ recursive-include scripts *.py
18
+ include release-readiness.json
19
+ include requirements-audit.txt
20
+ include tests/requirements.txt
@@ -0,0 +1,12 @@
1
+ NetBox Certificates Plugin
2
+ Copyright 2026 NetBox Certificates Plugin contributors
3
+
4
+ Original project: NetBox Certificates Plugin
5
+ Canonical source: https://github.com/Fokkert/netbox-certificates-plugin
6
+
7
+ This plugin's code is generated by AI (ChatGPT by OpenAI) under human direction. It is provided AS IS, without warranties or guarantees. To the extent permitted by applicable law and the Apache-2.0 license, the maintainer and contributors disclaim responsibility and liability for consequences of its use. The AI assistant provides no warranty or guarantee and assumes no responsibility for its operation. OpenAI does not maintain, sponsor, or endorse this project.
8
+
9
+ This product is an independent NetBox plugin and is not part of the NetBox core repository.
10
+
11
+ NetBox Certificates is derived from Fokkert/netbox-certificates-plugin v1.9.2.
12
+ New development starts with its own application namespace and release history.
@@ -0,0 +1,142 @@
1
+ Metadata-Version: 2.4
2
+ Name: netbox-certificates
3
+ Version: 1.0.0
4
+ Summary: Certificate inventory, services, cryptographic relationships, health, alerts, and secure material management for NetBox
5
+ Author: NetBox Certificates contributors
6
+ License-Expression: Apache-2.0
7
+ Project-URL: Homepage, https://github.com/Fokkert/netbox-certificates
8
+ Project-URL: Repository, https://github.com/Fokkert/netbox-certificates
9
+ Project-URL: Issues, https://github.com/Fokkert/netbox-certificates/issues
10
+ Project-URL: Documentation, https://github.com/Fokkert/netbox-certificates#readme
11
+ Project-URL: Changelog, https://github.com/Fokkert/netbox-certificates/blob/main/CHANGELOG.md
12
+ Keywords: netbox,netbox-plugin,x509,certificate,pki,csr,pkcs12,tls
13
+ Classifier: Development Status :: 5 - Production/Stable
14
+ Classifier: Framework :: Django
15
+ Classifier: Intended Audience :: Information Technology
16
+ Classifier: Intended Audience :: System Administrators
17
+ Classifier: Operating System :: OS Independent
18
+ Classifier: Programming Language :: Python :: 3 :: Only
19
+ Classifier: Programming Language :: Python :: 3.12
20
+ Classifier: Programming Language :: Python :: 3.13
21
+ Classifier: Topic :: Security :: Cryptography
22
+ Classifier: Topic :: System :: Systems Administration
23
+ Requires-Python: >=3.12
24
+ Description-Content-Type: text/markdown
25
+ License-File: LICENSE
26
+ License-File: NOTICE
27
+ Requires-Dist: cryptography>=51.0.1
28
+ Requires-Dist: urllib3>=2.8.0
29
+ Provides-Extra: rar
30
+ Requires-Dist: rarfile>=4.2; extra == "rar"
31
+ Dynamic: license-file
32
+
33
+ # NetBox Certificates
34
+
35
+ Independent certificate inventory and monitoring for NetBox. Distribution:
36
+ `netbox-certificates`; application: `netbox_certificate_manager`.
37
+
38
+ Version 1.0.0 provides an independent plugin for NetBox 4.5.9/4.5.10, 4.6.10 and
39
+ 4.7.6. See [VALIDATION.md](VALIDATION.md) for test evidence and
40
+ [COMPATIBILITY.md](COMPATIBILITY.md) for supported versions.
41
+
42
+ This project derives from [Fokkert/netbox-certificates-plugin](https://github.com/Fokkert/netbox-certificates-plugin)
43
+ v1.9.2 under Apache-2.0. Its package, tables, permissions, URLs, background jobs,
44
+ templates and assets use a separate namespace. No legacy data transfer is included.
45
+
46
+ ## Features
47
+
48
+ - Certificates, encrypted private keys, CSRs, bundles, typed groups and services.
49
+ - Logical certificate authorities and optional CSR generation templates.
50
+ - Content-detected transactional imports and permission-controlled material exports.
51
+ - Stable bundle identities for distinct certificates sharing a private key.
52
+ - Requested contacts, lifecycle metadata, parsed X.509 extensions and local issuer relationships.
53
+ - Independent service URL checks, optional CRL/OCSP verification and read-only activity history.
54
+ - SMTP, webhook and Mattermost notifications; categorized settings and monitoring overrides.
55
+ - Fernet keyring rotation, secret-safe changelog snapshots and constrained outbound connections.
56
+
57
+ ## Installation
58
+
59
+ Install on a supported NetBox version listed in [COMPATIBILITY.md](COMPATIBILITY.md).
60
+
61
+ Install the published release in NetBox's Python environment:
62
+
63
+ ```shell
64
+ /opt/netbox/venv/bin/pip install netbox-certificates==1.0.0
65
+ ```
66
+
67
+ Add the distribution to NetBox's `local_requirements.txt` for deployed releases.
68
+ Generate a Fernet key in a protected terminal and store it in your deployment's
69
+ secret system. Do not put its output in tickets or Git:
70
+
71
+ ```shell
72
+ /opt/netbox/venv/bin/python -c "from cryptography.fernet import Fernet; print(Fernet.generate_key().decode())"
73
+ ```
74
+
75
+ NetBox `configuration.py`:
76
+
77
+ ```python
78
+ import os
79
+ PLUGINS = ['netbox_certificate_manager']
80
+ PLUGINS_CONFIG = {
81
+ 'netbox_certificate_manager': {
82
+ 'encryption_key': os.environ['NETBOX_CERTIFICATES_KEY'],
83
+ 'previous_encryption_keys': [],
84
+ 'netbox_url': 'https://netbox.example.com',
85
+ 'network_policy': {
86
+ 'enabled': True,
87
+ # Add only the internal networks this worker may contact.
88
+ 'allowed_cidrs': [],
89
+ 'denied_cidrs': [],
90
+ },
91
+ 'monitoring': {
92
+ 'enabled': True,
93
+ 'notifications_enabled': True,
94
+ 'revocation_enabled': False,
95
+ },
96
+ },
97
+ }
98
+ ```
99
+
100
+ ```shell
101
+ /opt/netbox/venv/bin/python /opt/netbox/netbox/manage.py migrate
102
+ /opt/netbox/venv/bin/python /opt/netbox/netbox/manage.py collectstatic --no-input
103
+ /opt/netbox/venv/bin/python /opt/netbox/netbox/manage.py check
104
+ ```
105
+
106
+ Restart the NetBox web and RQ worker services. Visit `/plugins/certificates/`.
107
+ REST endpoints are under `/api/plugins/certificates/`. Assign permissions using
108
+ `netbox_certificate_manager.*`. Keep the encryption key backed up separately from
109
+ database backups. Revocation remains off until the protected master switch and
110
+ the corresponding CRL/OCSP defaults or object overrides permit it.
111
+
112
+ ## Development and releases
113
+
114
+ See [CONTRIBUTING.md](CONTRIBUTING.md) for the disposable PostgreSQL/Redis test
115
+ environment and [docs/PUBLISHING.md](docs/PUBLISHING.md) for tokenless PyPI publishing.
116
+ GitHub releases invoke the full CI matrix before publishing. The readiness gate
117
+ blocks publishing until the specification acceptance work is complete.
118
+
119
+ Normal schema migrations belong to this independent application. Moving legacy
120
+ production data or retiring the old installation is a separate operational task.
121
+ See [SECURITY.md](SECURITY.md), [docs/PERMISSIONS.md](docs/PERMISSIONS.md) and the
122
+ retained [import](docs/IMPORTS.md)/[export](docs/EXPORTS.md) behavior documentation.
123
+
124
+ ## Services
125
+
126
+ Services retain explicit certificate, key, CSR and bundle assignments. Live checks
127
+ compare the presented SHA-256 leaf fingerprint with configured certificates;
128
+ this is separate from trust and hostname validation. Additional URLs are checked
129
+ only when the service explicitly enables expanded coverage.
130
+
131
+ ## Health findings
132
+
133
+ Persistent findings retain acknowledgements, ignored state, detection times and
134
+ recovery history. Revocation checks distinguish unknown, unavailable and revoked
135
+ results. A failed check is not proof of recovery.
136
+
137
+ ## Security
138
+
139
+ Private keys and notification credentials are encrypted with Fernet. Network
140
+ connections validate every DNS answer and connect to a validated IP. Internal
141
+ ranges need an administrator allowlist; link-local metadata endpoints are blocked.
142
+ Sensitive operations retain native permission, token and audit controls. See SECURITY.md.
@@ -0,0 +1,110 @@
1
+ # NetBox Certificates
2
+
3
+ Independent certificate inventory and monitoring for NetBox. Distribution:
4
+ `netbox-certificates`; application: `netbox_certificate_manager`.
5
+
6
+ Version 1.0.0 provides an independent plugin for NetBox 4.5.9/4.5.10, 4.6.10 and
7
+ 4.7.6. See [VALIDATION.md](VALIDATION.md) for test evidence and
8
+ [COMPATIBILITY.md](COMPATIBILITY.md) for supported versions.
9
+
10
+ This project derives from [Fokkert/netbox-certificates-plugin](https://github.com/Fokkert/netbox-certificates-plugin)
11
+ v1.9.2 under Apache-2.0. Its package, tables, permissions, URLs, background jobs,
12
+ templates and assets use a separate namespace. No legacy data transfer is included.
13
+
14
+ ## Features
15
+
16
+ - Certificates, encrypted private keys, CSRs, bundles, typed groups and services.
17
+ - Logical certificate authorities and optional CSR generation templates.
18
+ - Content-detected transactional imports and permission-controlled material exports.
19
+ - Stable bundle identities for distinct certificates sharing a private key.
20
+ - Requested contacts, lifecycle metadata, parsed X.509 extensions and local issuer relationships.
21
+ - Independent service URL checks, optional CRL/OCSP verification and read-only activity history.
22
+ - SMTP, webhook and Mattermost notifications; categorized settings and monitoring overrides.
23
+ - Fernet keyring rotation, secret-safe changelog snapshots and constrained outbound connections.
24
+
25
+ ## Installation
26
+
27
+ Install on a supported NetBox version listed in [COMPATIBILITY.md](COMPATIBILITY.md).
28
+
29
+ Install the published release in NetBox's Python environment:
30
+
31
+ ```shell
32
+ /opt/netbox/venv/bin/pip install netbox-certificates==1.0.0
33
+ ```
34
+
35
+ Add the distribution to NetBox's `local_requirements.txt` for deployed releases.
36
+ Generate a Fernet key in a protected terminal and store it in your deployment's
37
+ secret system. Do not put its output in tickets or Git:
38
+
39
+ ```shell
40
+ /opt/netbox/venv/bin/python -c "from cryptography.fernet import Fernet; print(Fernet.generate_key().decode())"
41
+ ```
42
+
43
+ NetBox `configuration.py`:
44
+
45
+ ```python
46
+ import os
47
+ PLUGINS = ['netbox_certificate_manager']
48
+ PLUGINS_CONFIG = {
49
+ 'netbox_certificate_manager': {
50
+ 'encryption_key': os.environ['NETBOX_CERTIFICATES_KEY'],
51
+ 'previous_encryption_keys': [],
52
+ 'netbox_url': 'https://netbox.example.com',
53
+ 'network_policy': {
54
+ 'enabled': True,
55
+ # Add only the internal networks this worker may contact.
56
+ 'allowed_cidrs': [],
57
+ 'denied_cidrs': [],
58
+ },
59
+ 'monitoring': {
60
+ 'enabled': True,
61
+ 'notifications_enabled': True,
62
+ 'revocation_enabled': False,
63
+ },
64
+ },
65
+ }
66
+ ```
67
+
68
+ ```shell
69
+ /opt/netbox/venv/bin/python /opt/netbox/netbox/manage.py migrate
70
+ /opt/netbox/venv/bin/python /opt/netbox/netbox/manage.py collectstatic --no-input
71
+ /opt/netbox/venv/bin/python /opt/netbox/netbox/manage.py check
72
+ ```
73
+
74
+ Restart the NetBox web and RQ worker services. Visit `/plugins/certificates/`.
75
+ REST endpoints are under `/api/plugins/certificates/`. Assign permissions using
76
+ `netbox_certificate_manager.*`. Keep the encryption key backed up separately from
77
+ database backups. Revocation remains off until the protected master switch and
78
+ the corresponding CRL/OCSP defaults or object overrides permit it.
79
+
80
+ ## Development and releases
81
+
82
+ See [CONTRIBUTING.md](CONTRIBUTING.md) for the disposable PostgreSQL/Redis test
83
+ environment and [docs/PUBLISHING.md](docs/PUBLISHING.md) for tokenless PyPI publishing.
84
+ GitHub releases invoke the full CI matrix before publishing. The readiness gate
85
+ blocks publishing until the specification acceptance work is complete.
86
+
87
+ Normal schema migrations belong to this independent application. Moving legacy
88
+ production data or retiring the old installation is a separate operational task.
89
+ See [SECURITY.md](SECURITY.md), [docs/PERMISSIONS.md](docs/PERMISSIONS.md) and the
90
+ retained [import](docs/IMPORTS.md)/[export](docs/EXPORTS.md) behavior documentation.
91
+
92
+ ## Services
93
+
94
+ Services retain explicit certificate, key, CSR and bundle assignments. Live checks
95
+ compare the presented SHA-256 leaf fingerprint with configured certificates;
96
+ this is separate from trust and hostname validation. Additional URLs are checked
97
+ only when the service explicitly enables expanded coverage.
98
+
99
+ ## Health findings
100
+
101
+ Persistent findings retain acknowledgements, ignored state, detection times and
102
+ recovery history. Revocation checks distinguish unknown, unavailable and revoked
103
+ results. A failed check is not proof of recovery.
104
+
105
+ ## Security
106
+
107
+ Private keys and notification credentials are encrypted with Fernet. Network
108
+ connections validate every DNS answer and connect to a validated IP. Internal
109
+ ranges need an administrator allowlist; link-local metadata endpoints are blocked.
110
+ Sensitive operations retain native permission, token and audit controls. See SECURITY.md.
@@ -0,0 +1,58 @@
1
+ # Security
2
+
3
+ Private keys, preserved private archives, SMTP passwords, webhook credentials and
4
+ Mattermost tokens are encrypted with the configured Fernet keyring. Store the active
5
+ key outside Git and back it up separately from the database. Public certificate and
6
+ CSR material is not secret; access to its downloads still uses explicit permissions.
7
+
8
+ ## Rotation
9
+
10
+ Add the new active `encryption_key` and retain old keys in `previous_encryption_keys`.
11
+ Back up the database and all keys before running:
12
+
13
+ ```shell
14
+ python manage.py rotate_certificate_encryption
15
+ python manage.py rotate_certificate_encryption --apply
16
+ ```
17
+
18
+ The first command verifies without writing. The second locks, decrypts, rotates and
19
+ verifies each protected object before committing it. A failure stops processing;
20
+ retain all keys and rerun after fixing configuration. Completed rows are safe to
21
+ process again. Remove old keys only after successful verification and a backup
22
+ restore test. Rotation records contain object identifiers and outcomes, never keys.
23
+
24
+ ## Access and audit
25
+
26
+ Private material, ciphertext and channel credentials are excluded from ordinary
27
+ REST/GraphQL metadata, search, changelog snapshots and operational event payloads.
28
+ Sensitive operations require explicit NetBox permissions; API operations also enforce
29
+ writable-token rules. Authenticated denied requests and failed key reads are audited.
30
+ Request audit writes occur after view transactions, so a failed export cannot roll
31
+ back its audit record. Audit persistence failure prevents the response being served.
32
+
33
+ NetBox background API mutations are disabled for this plugin. Plugin Event Rules
34
+ omit HTTP requests and uploaded form bodies from queued jobs. Settings audit records
35
+ contain changed field names, actor and time rather than values. Service/revocation
36
+ history has configurable retention; zero retains everything. Key/settings audit
37
+ history is retained indefinitely. Authorized material exports contain plaintext keys
38
+ and must be handled as secrets by their recipients.
39
+
40
+ ## Outbound connections
41
+
42
+ CRL, OCSP, service, webhook, Mattermost and SMTP destinations share a policy that
43
+ checks all DNS answers and pins connections to a validated address. Private networks
44
+ require explicit administrator allowlisting. Link-local/metadata destinations remain
45
+ blocked. HTTP redirects and ambient proxies are not followed. HTTP responses have
46
+ size limits and a connection deadline, including slow header/body responses.
47
+
48
+ TLS verification is on by default for notification transports. Live Service checks
49
+ compare certificate fingerprints independently of trust and hostname validation.
50
+ They do not certify that an endpoint is trusted. CRL/OCSP checks are off by default;
51
+ responses require a locally stored issuer and verified signatures/freshness. Unsupported
52
+ CRL scope or unverifiable evidence produces an error finding, never a good result.
53
+ Issuer AIA retrieval is not implemented.
54
+
55
+ ## Reporting
56
+
57
+ Use the repository's private vulnerability reporting facility to report suspected
58
+ security defects. Do not include production private keys, passwords or tokens.
@@ -0,0 +1,20 @@
1
+ # Installation and upgrades
2
+
3
+ This is a separate plugin, not an in-place upgrade of `netbox-certificates-plugin`.
4
+ Its app name is `netbox_certificate_manager`; never substitute that name into
5
+ the legacy plugin's migration records. Normal upgrades within this application
6
+ use `pip install --upgrade netbox-certificates`, `manage.py migrate`, static
7
+ collection and service restarts after verified backups.
8
+
9
+ No legacy transfer command, automatic data copy, cleanup SQL or removal script
10
+ is included. Production transfer and retirement need a separately verified plan.
11
+ Keep the old repository and release history intact.
12
+
13
+ ## API and URL changes
14
+
15
+ The new UI prefix is `/plugins/certificates/`; REST uses
16
+ `/api/plugins/certificates/`. Historical `/inventory/`, `/vault/` and
17
+ `object-links/` interfaces are not compatibility aliases in this independent app.
18
+ Logical CAs use `certificate-authorities/`; CA certificate material remains in
19
+ `certificates/?is_ca=true` and the explicit CA import/export actions.
20
+ All permission codenames use the `netbox_certificate_manager` application label.