-
Bug
-
Resolution: Unresolved
-
Major
-
None
-
Jenkins 2.483
GCP Secrets Manager Credentials Provider 0.3.1
We are trying to swap to using this plugin to load secrets from GCP but we're experiencing an issue. When we boot up our jenkins server, the secrets from the GCP provider don't show up for around 5-10 minutes after the jenkins server is started. This causes any jobs that start that are requiring secrets to fail. I've tried enabling debug logs for the plugin but I am not seeing anything happening until the secrets are finally loaded, then it all looks normal:
2024-11-11 20:56:39.118+0000 [id=422] INFO i.j.p.c.g.s.CredentialsSupplier#get: Using filter "labels.jenkins-credentials-type:*" to list secrets for xxxxx
I noticed that it looks like the secrets are cached for 5 minutes. Is it possible that the initial lookup is failing or somehow caching an empty list of secrets? I am not seeing any logs to indicate that it's failing, but I wonder if there is maybe some sort of plugin initialization ordering issue that might be affecting the load on startup.
Would appreciate any help with troubleshooting this.