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

GCP Secret Manager Plugin

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Blocker Blocker
    • None
    • Jenkins Version 2.276
      OS: Ubuntu arm 7
      Browser: Chrome
      Jenkins is running in Kubernetes on a Raspberry Pi 4 8gb with an ARM 7 cpu.

      I installed the plugin.

      Copied the service account to a location that Jenkins can 'see' (/var/jenkins_home)

      Set env vars in the helm chart and in the the Jenkins UI.

      GOOGLE_APPLICATION_CREDENTIALS /var/jenkins_home/jenkins-test-project.json

      But when I try to access GCP secret manager credentials in the Jenkins UI, I get the following error message:

      Could not retrieve the credentials from GCP Secrets Manager java.io.IOException: The Application Default Credentials are not available. They are available if running in Google Compute Engine. Otherwise, the environment variable GOOGLE_APPLICATION_CREDENTIALS must be defined pointing to a file defining the credentials. See https://developers.google.com/accounts/docs/application-default-credentials for more information.

      etc...

      Any ideas on how this is supposed to work on a system running K8S but not in GCP?

            mdaugherty6 Michael Daugherty
            cockers_97 Andrew Cockerill
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: