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

Add MIMIR_AUTH_TOKEN for self-hosted Mimir #505

Merged
merged 2 commits into from
Oct 16, 2024
Merged

Conversation

mtweten
Copy link
Contributor

@mtweten mtweten commented Oct 10, 2024

For self-hosted Mimir installations, an authenticating reverse proxy is typically required (https://grafana.com/docs/mimir/latest/manage/secure/authentication-and-authorization/#with-an-authenticating-reverse-proxy).

Implementations can choose any method to perform that authentication, but it's typically basic auth (which is already supported here), or a Bearer token in the Authorization header. This adds support for the latter.

@mtweten mtweten requested a review from a team October 10, 2024 18:24
@CLAassistant
Copy link

CLAassistant commented Oct 10, 2024

CLA assistant check
All committers have signed the CLA.

TenantID string `yaml:"tenant-id" mapstructure:"tenant-id"`
APIKey string `yaml:"api-key" mapstructure:"api-key"`
TLS MimirTLSConfig `yaml:"tls" mapstructure:"tls"`
AuthToken string `yaml:"auth-token" mapstructure:"auth-token""`
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
AuthToken string `yaml:"auth-token" mapstructure:"auth-token""`
AuthToken string `yaml:"auth-token" mapstructure:"auth-token"`

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not sure how that extra " slipped in there, good catch! Fixed this and resolved the other linter error

@spinillos
Copy link
Member

Looks like that you have a few linter errors. Update them and we could merge your PR.

@spinillos spinillos merged commit 9fdcaa3 into grafana:main Oct 16, 2024
8 checks passed
@spinillos
Copy link
Member

Tanks a lot :)

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

Successfully merging this pull request may close these issues.

3 participants