Onemind-Services-LLC / netbox-secrets

Enhance your secret management with encrypted storage and flexible, user-friendly features.
Apache License 2.0
96 stars 8 forks source link

[Feature]: Do not allow to replace public key if only 1 user key exists in DB #38

Closed abhi1693 closed 1 year ago

abhi1693 commented 1 year ago

NetBox version

v3.4.4

Feature type

Add a function

Proposed functionality

When updating an existing key for a user, if there are no other activated user keys, the operation should not be allowed. This should be done on both API view and model form.

Use case

Currently, the operation updates and the user key and deactivates the access for the user and as the last user with the key, the secrets become unretrievable.

External dependencies

No response