goodbye icon indicating copy to clipboard operation
goodbye copied to clipboard

berglas initialization failure with `-daemon`

Open icecrime opened this issue 4 years ago • 2 comments

I want to use goodbye in daemon mode (therefore without dependency on external storage), however on a clean state startup fails here:

panic: failed to initialize berglas client: failed to create kms client: google: could not find default credentials. See https://developers.google.com/accounts/docs/application-default-credentials for more information.

goroutine 1 [running]:
github.com/GoogleCloudPlatform/berglas/pkg/auto.handleError(...)
	/go/pkg/mod/github.com/!google!cloud!platform/[email protected]/pkg/auto/importer.go:76

I worked around the issue by commenting out the github.com/GoogleCloudPlatform/berglas/pkg/auto import.

icecrime avatar Sep 23 '20 20:09 icecrime

Hey Arnaud 👋🏼 Where were you running this on?

ahmetb avatar Sep 24 '20 17:09 ahmetb

That was inside a container using the project's Dockerfile. There's nothing fancy in my command line:

docker run -d --restart=always \
    -e CONSUMER_KEY=$API_KEY \
    -e CONSUMER_SECRET=$API_KEY_SECRET \
    -e ACCESS_TOKEN=$ACCESS_TOKEN \
    -e ACCESS_TOKEN_SECRET=$ACCESS_TOKEN_SECRET \
    -e GOODBYE_POLLING_INTERVAL="10m" \
    --name goodbye-agent ahmetb/goodbye -daemon

icecrime avatar Oct 09 '20 10:10 icecrime