Upgrade notes
- Existing session keys stop working. Delete them and create them again after upgrading.
- The secret validation hash is no longer returned by the REST API (
hashfield removed). Secret.validate()now takes the key:validate(plaintext, secret_key).- Secrets with legacy PBKDF2 hashes still work but show a
DeprecationWarning. Support will be removed in NetBox v4.8.
Security
- The secrets panel on device and VM pages now enforces object-level view permissions (#273, thanks @dr4gon123).
- Added a permission check to
SecretEditView(#270, thanks @mhdask). - Secret validation hashes are now salted, so equal plaintexts no longer give equal hashes (#285).
Performance
- Reading secrets is much faster. Session keys and secret validation now use fast hashes instead of PBKDF2 (#227, #285).
Bug fixes
- Creating a secret with a duplicate name on the same object now returns a validation error instead of a 500, in both the UI and the API (#280).
- Disabled pagination on the session key API endpoint.
- Fixed the infinite submit loop when creating a secret.
- Fixed
rolehandling in the secret form and serializer.
Maintenance
- CI now uses the shared test workflow and works on fork PRs.
- Added tests for panel permissions, the secrets API and duplicate-name validation.
- Updated
docs/cryptography.mdfor the new hashing.
Full changelog: v3.1.2...v3.1.3