aws-secrets-manager-credentials-provider-plugin icon indicating copy to clipboard operation
aws-secrets-manager-credentials-provider-plugin copied to clipboard

Prefix removal does not work while using Cache after Jenkins Restart

Open ben-dov opened this issue 6 months ago • 1 comments

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

  1. create a secret in aws secrets manager named myprefix/mysecret
  2. use jenkins helm to setup the plugin using using CASC (just using CASC is propaply enough to test the bug)
  3. under the plugin config, configure
 cache: true
 transformations:
      name:
        removePrefix:
          prefix: "myprefix/"
  1. 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

ben-dov avatar Jul 25 '24 14:07 ben-dov