Grafana SigV4 Authentication - Docker image?

646 Views Asked by At

we have a problem setting up aws-sigv4 and connecting an AWS AMP workspace via docker images.

TAG: grafana/grafana:7.4.5

Main problem is that in the UI the sigv4 configuration screen does not appear. Installing grafana:7.4.5 locally via Standalone Linux Binaries works.

Just setting the environment variables,

export AWS_SDK_LOAD_CONFIG=true
export GF_AUTH_SIGV4_AUTH_ENABLED=true

the configuration screen appears.

Connecting and querying data to AMP via corresponding IAM instance role is working flawlessly. Doing the same in the docker image as ENV Variables does NOT work.

When using grafana/grafana:sigv4-web-identity it works, but it seems to me that this is just a "test image". How to configure the default grafana image in order to enable sigV4 authentication?

2

There are 2 best solutions below

1
On

Use variable GF_AWS_SDK_LOAD_CONFIG instead of AWS_SDK_LOAD_CONFIG.

0
On

It works for me:

$ docker run -d \
  -p 3000:3000 \
  --name=grafana \
  -e "GF_AUTH_SIGV4_AUTH_ENABLED=true" \
  -e "AWS_SDK_LOAD_CONFIG=true"  \
  grafana/grafana:7.4.5

You didn't provide minimal reproducible example, so it's hard to say what is a problem in your case.