Fuzzball Documentation
Toggle Dark/Light/Auto mode Toggle Dark/Light/Auto mode Toggle Dark/Light/Auto mode Back to homepage

Updating Existing Secrets

If you need to change one of your secrets you can (and should) simply update it so that you can continue to use your existing Fuzzfiles without updating them.

Please select either the web UI or CLI tab to see the appropriate instructions for your environment.

You can update a secret by first navigating to the secrets page and clicking on the ellipsis of a secret and clicking the edit button. A menu should pop up enabling you to edit the secret’s fields. In the example below, we will be editing secret my-user-s3-secret.

Edit secret

Fields of the secret can be updated in the edit dialog. In the example below, we are updating the S3 access key and access key ID of the secret. When you are done editing the values, you can save your changes by clicking save in the bottom right corner of the menu.

Updated secret fields

After saving your updated secret, the UPDATED column of the secret you just edited should show now. The image below shows that secret my-user-s3-secret has been updated one second ago after saving the changes.

Updated secret list

Here is the procedure to update a secret assuming you already have an updated secret YAML file:

$ fuzzball secret update -f s3-secret-updated.yaml 304945fc-e915-4359-8adc-1f59d3c1de92
Updated secret: 304945fc-e915-4359-8adc-1f59d3c1de92

$ fuzzball secret list
ID                                   | TYPE | REFERENCE
304945fc-e915-4359-8adc-1f59d3c1de92   s3     secret://user/my-user-s3-secret
f0bea820-c2a2-4a2f-b738-649f8a494150   s3     secret://group/my-user-s3-secret

To confirm the update by inspecting the timestamp, use fuzzball secret show <id> or fuzzball secret list -o yaml:

$ fuzzball secret show 304945fc-e915-4359-8adc-1f59d3c1de92
Id:              304945fc-e915-4359-8adc-1f59d3c1de92
Name:            my-user-s3-secret
Reference:       secret://user/my-user-s3-secret
Type:            s3

Region:          us-west-2
Endpoint:        https://s3.us-west-2.amazonaws.com