Commit Graph
129 Commits
Author SHA1 Message Date
MrBlakeandClaude Opus 5.5 30d748969f fix: shorten email permission codenames to fit NetBox action limit
NetBox ObjectPermission actions are limited to 30 characters, so assigning
manage_softwarelicense_email_notifications or
manage_certificate_email_notifications to a group failed validation.
Rename them to manage_license_emails and manage_certificate_emails and
migrate existing auth permissions in place to keep assignments.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-04 14:32:23 +01:00
MrBlakeandClaude Opus 5.5 5dedfc9206 fix: handle None from NetBox form clean() in certificate form
NetBox 4.7 form mixins return None from clean(), which crashed adding a
certificate with AttributeError. Use self.cleaned_data instead.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-10-21 15:02:28 +02:00
MrBlakeandClaude Opus 5.5 2a41118e8e feat: fill certificate fields from uploaded certificate file
Parse uploaded PEM or DER certificates with cryptography and fill common
name, SANs, issuer, serial number, SHA-256 fingerprint and validity dates.
Name and type are only set when left empty; the type is derived from the
CA flag and extended key usage. Files containing a private key are
rejected. Works in the UI form and the REST API.

Adds cryptography as a dependency.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-10-21 14:16:58 +02:00
MrBlakeandClaude Opus 5.5 f296a576f2 feat: show certificates in a separate sidebar menu
NetBox loads only one menu per plugin, so the certificate menu is
registered explicitly in SLMConfig.ready(). Without top_level_menu the
certificate entry stays in the shared plugin menu items.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-10-21 14:11:17 +02:00
MrBlakeandClaude Opus 5.5 c4c93c5709 fix: drop nonexistent squashed migration dependencies from certificate migration
NetBox squashed its app migrations, so ('virtualization', '0001_initial') and
similar nodes no longer exist. The required dcim, extras, tenancy and
virtualization tables are already guaranteed through earlier netbox_slm
migrations.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-10-21 14:08:26 +02:00
MrBlake 8e18ae82b8 Merge branch 'master' of https://git.mrblake.cc/MrBlake/NetBox-SLM
# Conflicts:
#	README.md
#	netbox_slm/__init__.py
2026-10-21 14:06:20 +02:00
MrBlakeandClaude Opus 5.5 02d965a77b feat: add certificate management with expiration reminders
Add a Certificate model alongside software licenses with type, common
name, SANs, issuer, serial number, fingerprint, validity period, auto
renewal, certificate file and storage locations. Certificates can be
assigned to software products, installations, devices, virtual machines
and tenants.

Extract the expiration reminder settings and logic into a shared
ExpirationNotificationModel base and a generic notification job, so
certificates get the same default/custom reminders, NetBox notifications
and optional SMTP emails as licenses (separate event type, log model and
email permission).

Includes UI views, filters, table, bulk import/edit, REST API endpoint,
migration 0015, German translations, tests and README/CHANGELOG updates.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-10-21 14:02:53 +02:00
MrBlakeandClaude Opus 5.5 426e9c80fd docs: list NetBox 4.7 as supported
Verified with NetBox 4.7.2.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-10-13 15:09:11 +02:00
MrBlakeandClaude Opus 5.5 0826ea606b Fix test isolation in the shared test fixtures
Fixtures were created in setUpClass, so a test that changed the shared license instance affected later tests. Use setUpTestData, which rolls back after the class and gives each test its own copy. All 20 tests pass on NetBox 4.7.2.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-10-13 15:08:46 +02:00
MrBlakeandClaude Opus 5.5 5eff411db9 Add missing migration for platform constraint message
Align the migration state with the model's check constraint, including its violation_error_message. Verified with NetBox 4.7.2. Bump version to 1.13.1.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-10-13 14:13:30 +02:00
MrBlakeandClaude Opus 5.5 1647246cbd docs: rewrite README in English with standard structure
Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-09-30 13:36:45 +02:00
MrBlake 32d62f26b2 feat: repeat license expiration reminders daily 2026-07-29 12:44:22 +02:00
MrBlake 35ddffc903 fix: render expiration notifications in bell menu 2026-07-29 12:38:36 +02:00
MrBlake 919b2d01e5 fix: use NetBox SMTP sender address 2026-07-29 12:26:57 +02:00
MrBlake 157c891cde fix: restore license expiration email delivery 2026-07-29 11:28:55 +02:00
MrBlake 3599dc703e fix: restrict license email notification settings 2026-07-29 11:04:46 +02:00
MrBlake 294e20b891 feat: add license expiration notifications 2026-07-29 11:01:00 +02:00
MrBlake 9f3bddfbb1 fix: handle NetBox form clean return value
Read installation destinations from self.cleaned_data because NetBox 4.6.5 form mixins return None while cleaning newly created objects.
2026-07-27 12:31:26 +02:00
MrBlake 71a5db0ece fix: clarify installation platform selection
Group device, virtual machine, and cluster as the required platform destination and validate that exactly one is selected with an actionable localized error.
2026-07-27 12:28:26 +02:00
MrBlake adfc2ae72c feat: extend software license lifecycle data
Make license type optional and add lifetime or recurring renewal terms, license file and key storage, and provider portal URLs across the UI, API, filters, imports, translations, and migrations.
2026-07-27 12:16:14 +02:00
MrBlake 5887129546 feat: add German localization
Internationalize plugin navigation, forms, tables, model labels, detail templates, choices, and validation messages. Ship a compiled German Django message catalog and bump the plugin version to 1.10.0.
2026-07-24 15:41:35 +02:00
MrBlake 7ca670c717 fix: render tenancy fields in license form
Define an explicit tenancy fieldset and bump the package version to 1.9.1 so Git/Pip upgrades replace older installations.
2026-07-24 15:34:01 +02:00
MrBlake e1c817229b feat: aufräumaktion 2026-07-24 15:22:59 +02:00
MrBlake 01d40ddecc feat: add tenancy support for software licenses
Add tenant group and tenant assignments across the model, forms, filters, API, tables, imports, and tests. Replace the Docker-based setup with Git/Pip installation documentation for NetBox 4.6.5.
2026-07-24 15:22:08 +02:00
wkoot 8a2dabc382 Update README.md 2026-06-25 18:18:33 +02:00
wkootandArtem Kotik f84a6bde2a Version bump to NetBox v4.6.3 (#82)
* Add support for NetBox 4.6
* Test NetBox v4.6.3 and Python 3.14

Signed-off-by: wkoot <[email protected]>
Co-authored-by: Artem Kotik <[email protected]>
1.9.0
2026-06-25 18:06:27 +02:00
wkoot 811490e429 Add zizmor scan action (#79) 2026-06-19 14:12:46 +02:00
wkootandmikedekker 7ce718ff9d Fix filters with default order by ID (#78)
Closes #75

Signed-off-by: wkoot <[email protected]>
Co-authored-by: mikedekker <[email protected]>
1.8.3
2025-12-18 13:30:38 +01:00
dependabot[bot] 9e87afcde7 Bump SonarSource/sonarqube-scan-action from 5 to 6 in /.github/workflows (#74)
Bumps [SonarSource/sonarqube-scan-action](https://github.com/sonarsource/sonarqube-scan-action) from 5 to 6.
- [Release notes](https://github.com/sonarsource/sonarqube-scan-action/releases)
- [Commits](https://github.com/sonarsource/sonarqube-scan-action/compare/v5...v6)

---
updated-dependencies:
- dependency-name: SonarSource/sonarqube-scan-action
  dependency-version: '6'
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-09-26 23:17:19 +02:00
wkoot e03195c9b1 Bump sonarqube-scan-action to v5 (#73) 2025-09-02 09:49:18 +02:00
wkoot 59730a5184 Update CI spellchecker (#72) 2025-06-04 11:31:05 +02:00
wkoot 69594bc33a Release version 1.8.2
Signed-off-by: wkoot <[email protected]>
1.8.2
2025-06-02 22:11:32 +02:00
Nate Cohen 766ecfc25e Fix permission check for adding software product installations (#71) 2025-06-02 22:05:43 +02:00
wkoot d773a407a2 Fix filtering on foreign objects (#67)
Closes #65

Signed-off-by: wkoot <[email protected]>
1.8.1
2025-04-11 12:29:03 +02:00
wkoot 175a01b257 Release plugin version 1.8.0 (#64)
Closes #63

Signed-off-by: wkoot <[email protected]>
1.8.0
2025-02-25 20:13:25 +01:00
wkoot 334a76e640 Add SPDX license expressions (#62)
Closes #47

Signed-off-by: wkoot <[email protected]>
2025-02-25 18:37:00 +01:00
wkoot ef45789b30 Show SLM installations on native objects (#61)
Closes #49

Signed-off-by: wkoot <[email protected]>
2025-02-24 16:57:18 +01:00
wkoot 4bd02ab6f9 Add bulk import and bulk edit (#60)
Closes #4

Signed-off-by: wkoot <[email protected]>
2025-02-19 23:07:47 +01:00
wkoot 410b8f6617 Render SoftwareProduct manufacturer consistently (#59)
Closes #58

Signed-off-by: wkoot <[email protected]>
2025-02-17 23:01:51 +01:00
wkoot 306d853a16 Fix unencoded search link of installations table cells (#53)
Closes #48

Signed-off-by: wkoot <[email protected]>
2025-02-13 22:58:22 +01:00
wkoot 193f04a208 Implement list filtering forms (#57)
Closes #54

Signed-off-by: wkoot <[email protected]>
2025-02-13 22:16:32 +01:00
wkoot c3ed952b5f Fix model detail view listing of linked objects (#56)
Closes #55

Signed-off-by: wkoot <[email protected]>
2025-02-12 23:30:55 +01:00
wkoot 87fdeb1c24 Version bump to NetBox v4.2.3 and friends (#52)
Closes #51

Signed-off-by: wkoot <[email protected]>
2025-02-11 20:41:03 +01:00
wkootandEric Hester a0a98bb407 Implement bulk imports and edits for SLM models (#46)
Partially implements #4
Based on @erichester76's https://github.com/ICTU/netbox_slm/pull/44

Signed-off-by: wkoot <[email protected]>
Co-authored-by: Eric Hester <[email protected]>
2024-10-14 13:41:22 +02:00
wkootandEric Hester 3539539c4e Implement top_level_menu toggle (#45)
Closes #42
Based on @erichester76's https://github.com/ICTU/netbox_slm/pull/44

Signed-off-by: wkoot <[email protected]>
Co-authored-by: Eric Hester <[email protected]>
2024-10-14 11:13:58 +02:00
wkoot 72646a6287 Update PluginMenuItem permissions and remove bulk import/edit (#41)
Closes #37
1.7.0
2024-07-09 23:00:58 +02:00
wkoot 86215f43a6 Prepare for upgrade to NetBox v4.0.6 (#40)
Closes #38
2024-07-09 22:15:58 +02:00
wkoot 230b3b5115 Add new fields to models and upgrade to NetBox v3.7.2 (#36)
Closes #10, #26, #35
1.6.0
2024-02-13 12:11:49 +01:00
wkoot 1411e3a5cb Update MANIFEST.in, so all files are included (#34)
Closes #32
1.5.1
2023-12-08 10:14:23 +01:00
wkoot d082af4a9b Add Installation foreign key to VM Cluster (#29)
Closes #17
1.5
2023-10-04 18:23:08 +02:00