Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Prefix removal does not work while using Cache after Jenkins Restart #328

Open
ben-dov opened this issue Jul 25, 2024 · 1 comment
Open
Labels
bug Something isn't working

Comments

@ben-dov
Copy link

ben-dov commented Jul 25, 2024

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 ben-dov added the bug Something isn't working label Jul 25, 2024
@ben-dov
Copy link
Author

ben-dov commented Jul 28, 2024

Another bug that might be related is in the filter.
It seems that when cache is on, the first few minutes after jenkins start the credentials page will list all credentials, and not only those that match the filter

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant