Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-74838

Delay in Loading Secrets from GCP

XMLWordPrintable

      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.

       

            mdaugherty6 Michael Daugherty
            msedlik Mason
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: