netbox-secretstore icon indicating copy to clipboard operation
netbox-secretstore copied to clipboard

Feature request: multiline secrets

Open hiddenman opened this issue 3 years ago • 2 comments

Plugin version

v1.0.5

netbox-plugin-extensions version

v1.0.2

NetBox version

v3.0.3

Feature type

Data model extension

Proposed functionality

Hi,

I've just tried to store my SSH private key as a secret and got it completely messed after copying back. The same happens with SSL certificate private keys and so on, any multiline secret.

Use case

Storing not only single-line secrets like password but also multiline secrets like SSH/SSL private keys, certificates and so on would be very useful, in my opinion.

Database changes

No response

External dependencies

Looks like it depends on this my FR: https://github.com/netbox-community/netbox/issues/6711 Nowdays netbox offers only single-line customfields.

hiddenman avatar Sep 24 '21 10:09 hiddenman

@hiddenman As a workaround, you could encode it, for example via base64.

geor-g avatar Sep 24 '21 14:09 geor-g

Scope:

  1. Change field to multi-line field
  2. Update forms/fields in views
  3. Update tests

DanSheps avatar Dec 15 '21 20:12 DanSheps