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.
You can update a secret by first navigating to the secrets page using the navigation bar on the left of the GUI.
You can update a secret by 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 editting
secret my-user-s3-secret
.
Fields of the secret can be updated in the menu. In the example below, we are updating the S3 access key and access key ID of the secret. When you are done editting the values, you can save your changes by clicking save in the bottom right corner of the menu.
After saving your updated secret, the UPDATED
column of the secret you just editted should show
1 second ago
. The image below shows that secret my-user-s3-secret
has been updated one second
ago after changing the changes.
Here is the procedure to update a secret assuming you already have an updated secret YAML file:
$ fuzzball secret update -f value-test.yaml 493b9c67-dedf-4138-84ac-b54dd7613699
Updated secret: 493b9c67-dedf-4138-84ac-b54dd7613699
$ fuzzball secret list
ID | NAME | REFERENCE | CREATED TIME | LAST UPDATED | SCOPE | TYPE | PRIVATE
493b9c67-dedf-4138-84ac-b54dd7613699 | DCG_VALUE_TEST | secret://user/DCG_VALUE_TEST | 2024-06-17 04:57:08PM | 2024-06-17 05:03:54PM | user | value | No
f0bea820-c2a2-4a2f-b738-649f8a494150 | SA_VALUE_TEST | secret://account/SA_VALUE_TES | 2024-06-17 04:57:57PM | 2024-06-17 04:57:57PM | account | value | No
Note that the LAST UPDATED
value of the user scope secret
above changed.