goodbye
goodbye copied to clipboard
berglas initialization failure with `-daemon`
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.
Hey Arnaud 👋🏼 Where were you running this on?
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