Specify how to transform fields from the underlying Secrets Manager secret when presenting the credential.
Choose how to transform the secret name.
To ensure that your Jenkins configuration is easy to read in the future, You should use the simplest transformer strategy that fits your needs.
:warning: This feature can break the credentials provider. If a transformation causes multiple credentials to end up with the same ID, an error occurs. Test your configuration before applying it, and after modifying secrets in Secrets Manager.
The name is shown unmodified.
The specified prefix is removed from the secret name if present.
Regex patterns are not supported.
unclassified:
awsCredentialsProvider:
transformations:
name:
removePrefix:
prefix: "foo-"
Effects:
If the secret name starts with one of the specified prefixes, that prefix will be removed from the secret name.
If multiple prefixes match the secret name, the most specific (longest) one will be removed. For example, if the prefixes are foo
and foo-
, and the secret name is foo-secret
, then foo-
will be removed.
Regex patterns are not supported.
This is essentially a more powerful version of the “Remove Prefix” transformation.
unclassified:
awsCredentialsProvider:
transformations:
name:
removePrefixes:
prefixes:
- "foo-"
- "bar-"
Effects:
Choose how to transform the secret description.
The description is shown unmodified.
An empty string will be shown instead of the description.
unclassified:
awsCredentialsProvider:
transformations:
description:
hide: {}