goldfish icon indicating copy to clipboard operation
goldfish copied to clipboard

Feature request: Uploading JSON file as secret

Open dhulihan opened this issue 7 years ago • 7 comments
trafficstars

It would be nice to upload files to goldfish as either a secret (eg: upload a json file with keypairs) or a value of a secret.

The CLI equivalent would be:

# file contents as secret
echo '{ "value": "itsasecret" }' > data.json
vault write secret/password @data.json

and

# file contents as value
vault write secret/password [email protected]

dhulihan avatar Jan 05 '18 18:01 dhulihan

This is a feature request, just wanted to start the conversation. Is this a reasonable request @Caiyeon ?

dhulihan avatar Jan 05 '18 18:01 dhulihan

I think file uploading and parsing is a little too futuristic for now. I have been meaning to make the secrets page json-compatible though. That is, a user should be able to copy/paste in JSON. I'll leave this open until I'm certain whether it should be implemented or not implemented :)

Caiyeon avatar Jan 05 '18 20:01 Caiyeon

No worries, just thought I'd capture this idea in a ticket as a point of reference :) .

Editing secrets with json sounds handy too.

Thanks for all your hard work on goldfish! 🔨

dhulihan avatar Jan 05 '18 23:01 dhulihan

I would love to see either of these features. Mostly because we run into developers pasting from their clipboards etc. That contain new lines but break when read from vault in our application.

Techcadia avatar Jan 16 '18 17:01 Techcadia

I'd love to be able to work with Json too. I'm storing structured data in Vault and have to use 'vault read -> vim -> vault write' operations a lot.

Alexey-I avatar Jan 31 '18 13:01 Alexey-I

It would be very useful to be able to upload random (small) files, like ssh keys.

alexandernst avatar May 28 '18 11:05 alexandernst

+1

aleks-o avatar Jul 24 '18 12:07 aleks-o