Skip to content
This repository has been archived by the owner on Mar 4, 2024. It is now read-only.

Add support for jsonfile type credential #82

Open
johnsca opened this issue Feb 14, 2017 · 1 comment
Open

Add support for jsonfile type credential #82

johnsca opened this issue Feb 14, 2017 · 1 comment
Labels

Comments

@johnsca
Copy link
Contributor

johnsca commented Feb 14, 2017

The GCE provider can use a soft-reference to a JSON file containing the actual creds in credentials.yaml:

credentials:
  google:
    auth-type: jsonfile
    file: /home/user/.gce/creds.json

Thus, sending that YAML won't get the proper credential. We need to support sending the JSON file itself and loading that in properly.

@mbruzek
Copy link
Contributor

mbruzek commented Feb 15, 2017

I ran into this problem with my google credentials as they are stored in a json file. I was not able to add them in the oauth2 format successfully. It only works if I create a json file and make credentials.yaml look like:

credentials:
  google:
    work_bechmarking_gce:
      auth-type: jsonfile
      file: /var/lib/jenkins/.local/share/juju/foo.json

@johnsca johnsca added the high label Mar 7, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

2 participants