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

User authentication is not working properly #232

Open
lakshanwd opened this issue Dec 31, 2024 · 7 comments
Open

User authentication is not working properly #232

lakshanwd opened this issue Dec 31, 2024 · 7 comments

Comments

@lakshanwd
Copy link

Grafana dashboard can be accesses even after logged out

Steps to reproduce:
log in to grafana
log out from grafana
remove /login from the url and hit enter
go to dashboards

@zeitlinger
Copy link
Member

Auth is disabled - see #153 on how to enable it

@MartinezAvellan
Copy link

@zeitlinger, thanks for answering.
Will there be a fix so that the variable in the environment tag works, or will this workaround always be necessary?

@zeitlinger
Copy link
Member

non authenticated access is a feature, not a bug.

I'm open for a PR with an opt-in flag for authentication.

For example, put an if around

export GF_AUTH_ANONYMOUS_ENABLED=true
export GF_AUTH_ANONYMOUS_ORG_ROLE=Admin
- guarded by another env var

See https://github.com/grafana/docker-otel-lgtm/blob/main/README.md#configuration

@MartinezAvellan
Copy link

@zeitlinger, many thanks for your response again.

Anyways, isn't it possible to use a feature like this?

image: grafana/otel-lgtm:latest
restart: always
environment:
  GF_AUTH_ANONYMOUS_ENABLED: false
  GF_SECURITY_ADMIN_USER: ${OTEL_LGTM_ADMIN_USER}
  GF_SECURITY_ADMIN_PASSWORD: ${OTEL_LGTM_ADMIN_PASSWORD}

@zeitlinger
Copy link
Member

Yes, that should work

@MartinezAvellan
Copy link

But unfortunately it didn't work...

@zeitlinger
Copy link
Member

please ask the grafana team in that case

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

No branches or pull requests

3 participants