Skip to content
This repository has been archived by the owner on Oct 6, 2019. It is now read-only.

Remove Last Key from Secret - Error 400 #69

Closed
Techcadia opened this issue Jun 16, 2017 · 2 comments
Closed

Remove Last Key from Secret - Error 400 #69

Techcadia opened this issue Jun 16, 2017 · 2 comments

Comments

@Techcadia
Copy link

Techcadia commented Jun 16, 2017

ISSUE TYPE
  • Bug Report
COMPONENT NAME

Secrets Backend

GOLDFISH VERSION
v0.3.3
OS / ENVIRONMENT

CentOS 7.3

SUMMARY

When removing the last Key from a Secret goldfish won't let me save it.

STEPS TO REPRODUCE
  1. in the secrets path click Add Secret Name it 'Blah'
  2. add a key: 'foo' value: 'bar'
  3. Save it
  4. Now try to remove 'foo' from the Secret 'Blah'
EXPECTED RESULTS

This should succeed and the Secret should be removed since no keys remain

ACTUAL RESULTS
Error: 400
Vault: missing data fields
@Caiyeon
Copy link
Owner

Caiyeon commented Jun 16, 2017

This is actually the expected behaviour. Vault won't let you write to a secret with no data (even with -f option). It's vault itself that is returning the 400 error

The real problem here is that there's no delete function for secrets. This is an important operation and I will add it soon.

@Caiyeon Caiyeon closed this as completed Jun 16, 2017
@Caiyeon
Copy link
Owner

Caiyeon commented Jun 18, 2017

Added in #71

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants