put https://api.codepipes.io/identity/v0/organizations//creds/
This updates an existing credential such that all the entities that already use the credential, start using the updated one.
The credential is validated to by making a request to the provider. And is saved only if the cred is valid.
We replace the entire cred object. It is the client's responsibility to make sure the new creds would work on existing assignments.
Example use-case:
- After AWS access key rotation, a user wants to update the old key pair with the new to make sure all the assignments works without interruption
Known issues: - The non-secret info like cred name cannot be updated without putting in the secret data again. As the replacement would corrupt the secret fields otherwise.
E.g.: Update just the credential name for the AWS access key pair creds