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

I am receiving this error ERROR: (gcloud.auth.activate-service-account) Could not read json file /root/gcloud.json: Expecting value: line 1 column 1 (char 0) #55

Open
RathVong opened this issue Sep 19, 2022 · 1 comment

Comments

@RathVong
Copy link

I have encoded the base64 string using the command

base64 -i gke_key.json -o k.txt

I added the text string in the kubernetes yaml file as a secret. What is the best option to encode the json file?

@benjamin-maynard
Copy link
Owner

Hey @RathVong,

Sorry for the delay in getting back to you.

Did you manage to work this out?

I am working on a pretty big new version of this utility, when it is released, the recommended way to do authentication will move away from a Service Account Key as an environment variable. Instead the recommendation will be to use Workload Identity which would indirectly solve this problem.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants