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

Not working with GCP Workload Identity Federation #337

Open
1 of 4 tasks
Mistic92 opened this issue May 6, 2022 · 1 comment
Open
1 of 4 tasks

Not working with GCP Workload Identity Federation #337

Mistic92 opened this issue May 6, 2022 · 1 comment
Labels
v3 Issues/PRs for v3 of the Jovo CLI

Comments

@Mistic92
Copy link

Mistic92 commented May 6, 2022

I'm submitting a...

  • Bug report
  • Feature request
  • Documentation issue or request
  • Other... Please describe:
    Currently to use Jovo with Dialogflow we need to generate service account key which is not secure practice. Jovo should work with Workload Identity Federation and locally with Default Application Credentials instead of using json key.

Expected Behavior

Run jovo deploy with default application credentials locally or with provided Workload Identity Federation file.

Current Behavior

We need to priovide json key.

Error Log

[14:04:47] → 
 ›   Error: There was a problem:
 ›
 ›   [ERR] Could not activate your service account: ERROR: 
 ›   (gcloud.auth.activate-service-account) The .json key file is not in a 
 ›   valid format.
 ›
 ›
 ›   Module:   jovo-cli-platform-google
 ›

Your Environment

  • Jovo Framework version used: jovo-cli@3.0.21
  • Operating System: docker build
@jankoenig jankoenig added the v3 Issues/PRs for v3 of the Jovo CLI label May 7, 2022
@Mistic92
Copy link
Author

Mistic92 commented May 9, 2022

Issue is that there is used gcloud auth activate-service-account --key-file while it require to be gcloud auth login --cred-file. When I did dirty hack on CI to replace command in node_modules it works.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
v3 Issues/PRs for v3 of the Jovo CLI
Projects
None yet
Development

No branches or pull requests

2 participants