Refreshing tokens
Problem
You want to renew time-limited secret tokens because their expiration date is looming.
Steps
-
In the secrets file, copy the complete secret that is going to expire to a new name.
-
Remove the secret data by deleting
.data
, only keeping the token meta information in.meta
. -
Create the new token and update secret data and token meta information:
-
For token types where creation is supported by the credential-manager:
-
Remove all meta information fields that are not marked
required
in thecreate
column of the appropriate table in the credential-manager documentation. -
Create the new token as explained in the credential-manager documentation. This will fill in the new secret data in
.data
, and also update the token meta information inmeta
.
-
-
For all other token types:
-
Create the new token manually by whatever means appropriate.
-
Update the meta information fields accordingly by editing the YAML file.
-
Encrypt the token secret as explained in the secrets-helper documentation.
-
-
-
Update all users of the token to the name of the new secret, and submit the MR.