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

Time taken to obtain secrets too long #184

Open
jorgegb95 opened this issue May 9, 2023 · 1 comment
Open

Time taken to obtain secrets too long #184

jorgegb95 opened this issue May 9, 2023 · 1 comment
Labels
bug Something isn't working

Comments

@jorgegb95
Copy link

Jenkins and plugins versions report

Environment
Paste the output here

What Operating System are you using (both controller, and any agents involved in the problem)?

The plugins are being used to get secrets from the KeyVault on a Jenkins that is in an AKS.

To log into azure with a Managed Identity we are using the new Workload Identity feature (https://learn.microsoft.com/en-us/azure/aks/workload-identity-overview) for kubernetes.

Previously we were using Pod Identity to get the secrets and it usually took about 30s to get the secret but since using the new feature, getting secrets has been taking about 15 minutes.

Version list:
Jenkins: 2.361.4
Azure Keyvault plugin: 143.v73ce6f5bcdbc
Kubernetes: 1.23

Reproduction steps

  1. az login --identity
  2. Use plugin to obtain secrets from keyvault

Expected Results

Expected time less than 30s

Actual Results

Times of up to 10 minutes can be obtained

Anything else?

No response

@jorgegb95 jorgegb95 added the bug Something isn't working label May 9, 2023
@timja
Copy link
Member

timja commented May 9, 2023

Err it should retrieve a secret in less than a second.

I don't have an environment setup to reproduce this currently but when I get a chance I'll have a look.

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

2 participants