No way to rotate username in a User Credentials secret

64 views Asked by At

We have some username+password values stored in IBM secret manager, we need to rotate the username along with the password and the UI in IBM cloud-only allows you to rotate the password.

Tried using the CLI (command below), but the docs only show updating I the password, even though I we're updating body I here I.

ibmcloud secrets-manager secret-update --action rotate --id "xxxx" --secret-type username_password --body '{"username": "xxxx", "password":"xxx"}' --output json --service-url https://xxxxxx.xxx.secrets-manager.appdomain.cloud

Is updating usernames possible in IBM Secret Manager for 'username_password' types? or should we just use JSON key-value secrets for our username+passwords when changing the username is a possibility?

1

There are 1 answers

0
Idan Adar On

You cannot change the username of your User-credentials secret. Consider it like email + password, you can only rotate the password, not the email. Not supported.