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

Support Grafana "Anonymous Auth" option. #1537

Open
emrygun opened this issue Oct 9, 2023 · 1 comment
Open

Support Grafana "Anonymous Auth" option. #1537

emrygun opened this issue Oct 9, 2023 · 1 comment
Labels

Comments

@emrygun
Copy link

emrygun commented Oct 9, 2023

Users may want to deploy simple monitoring services without any authorization/authentication settings.
So, "Anonymous Auth" option with it's "Anonymous Organization Role" settings would be a useful and fast solution for that.

The GF_AUTH_ANONYMOUS_ENABLED and GF_AUTH_ANONYMOUS_ORG_ROLE container environment variables stands for them.

For the clarification of feature request, I'll share a rough code snippet for desired scenario.

        GenericContainer<?> container =
                new GenericContainer<>(ContainerUtils.getDockerImageName(properties))
                        .withEnv("GF_SECURITY_ADMIN_USER", properties.getUsername())
                        .withEnv("GF_SECURITY_ADMIN_PASSWORD", properties.getPassword())
                        //TODO: Anonymous Auth Configuration
                        .withEnv("GF_AUTH_ANONYMOUS_ENABLED", properties.getAnonymousAuthEnabled())
                        .withEnv("GF_AUTH_ANONYMOUS_ORG_ROLE", properties.getAnonymousOrgRole())
                        .withNetwork(Network.SHARED)
                        .withNetworkAliases(properties.getNetworkAlias(), GRAFANA_NETWORK_ALIAS)
                        .waitingFor(grafanaWaitStrategy);
@emrygun emrygun added the feature label Oct 9, 2023
@Fameing
Copy link
Collaborator

Fameing commented Oct 13, 2023

Pull request welcome ;)

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

No branches or pull requests

2 participants