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]: Allow for different styles of secrets to be stored #135

Open sarhaynes opened 5 months ago

sarhaynes commented 5 months ago

NetBox version

v3.7.3

Feature type

New Model to plugin

Proposed functionality

We need to be able to store PEM formatted private keys as our secrets, not just passwords. Currently we can enter the PEM key, but it gets reformatted and will not work when extracted. I would recommend a selection of "PlainText" or "File" as a storage mechanism for the cipher. If file is selected a PEM file could be uploaded as the "Secret" for the system.

Use case

We use PEM files as authentication tokens to elevate privileges. We need a way to securely store those with devices.

External dependencies

Do not believe this would require any additional external dependencies.

abhi1693 commented 5 months ago

This is a duplicate of #32. Moreover, it requires more details on how exactly this should be changed to allow for the requested functionality.

sarhaynes commented 5 months ago

A simple way of implementing this would be to allow a multi-line secret to be entered so we could store PEM file contents. There could be a radio button to select mode if needed. This should not require a major DB change.