aws-secrets-manager-credentials-provider-plugin
aws-secrets-manager-credentials-provider-plugin copied to clipboard
Prefix removal does not work while using Cache after Jenkins Restart
Jenkins and plugins versions report
jenkins is image 2.452.3-jdk17 plugin is version 1.214.va_0a_d8268d068
What Operating System are you using (both controller, and any agents involved in the problem)?
linux
Reproduction steps
- create a secret in aws secrets manager named
myprefix/mysecret
- use jenkins helm to setup the plugin using using CASC (just using CASC is propaply enough to test the bug)
- under the plugin config, configure
cache: true
transformations:
name:
removePrefix:
prefix: "myprefix/"
- restart jenkins
Expected Results
secret ID should be mysecret
Actual Results
secret ID is myprefix/mysecret
Anything else?
change cache to false, and restart. notice the issue does not happen (but now we can't use cache, or we have to manually turn it on)
Are you interested in contributing a fix?
No response