27 Commits
Author SHA1 Message Date
MrBlakeandClaude Opus 5.5 0a81a04746 docs: state fork, original authors and Apache 2.0 license
Follow the attribution requirements of the Apache License 2.0 for this fork of
ICTU/netbox_slm:

- add a NOTICE file with the original copyright (ICTU) and the fork's notice
- mark every file changed since upstream 1.9.0 as modified (section 4b);
  the original copyright header in __init__.py is kept
- add a visible fork notice and a section on origin, credits, changes and
  license to the README
- point project URLs to this fork (with an Upstream link), list ICTU as
  author and MrBlake as maintainer, and stop showing ICTU's email address
  as the plugin contact
- ship NOTICE in the package and drop the MANIFEST entry for the removed
  SECURITY.md

Bump version to 1.14.1.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-13 15:52:13 +01:00
MrBlake 0f72a53d01 Merge branch 'master' of https://git.mrblake.cc/MrBlake/NetBox-SLM 2026-11-04 14:32:28 +01:00
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 9acf685b34 docs: add screenshots and generalise README
Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-10-26 20:58:14 +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