-
Notifications
You must be signed in to change notification settings - Fork 3.6k
fix: helm - nginx tenants proxy headers #16953
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
base: main
Are you sure you want to change the base?
Conversation
71f0a92
to
51294aa
Compare
51294aa
to
153fec4
Compare
@JStickler can you please review?🙏🏻 |
We have a different value for 'proxy_set_header' (we allow pushes without a password, but require a password for queries) Would it be possible to have this as a template variable instead? Maybe loki.tenants.proxy_set_header? |
I'm not sure what your use case, and probably it will be out-of-scoop for the community chart. this PR is to just fix some regression with the latest changes that broke the tenants option. |
@trevorwhitney can we get this fix into the next chart release? 🙏 |
Yes, the regression broke the auth (for both me and the regular chart) My comment was that if you fixed it slightly differently it would make my use case easier. Instead of having the hardcoded string inside the "if" block, make that string a variable. It benefits the open source chart as well since it means you don't have to worry about updating that string in four different places next time.
|
#16938 also broke configurations that use an existing secret rather than relying on # Example values.yaml
gateway:
basicAuth:
enabled: true
existingSecret: loki-tenants-htpasswd
nginxConfig:
httpSnippet: proxy_set_header X-Scope-OrgID $remote_user; In my case, I'm manually setting the X-Scope-OrgID using |
What this PR does / why we need it:
When using basic auth, we set the
X-Scope-OrgID
to the user name withproxy_set_header
,but according to the nginx docs:
So whenever we set proxy headers on the location block level, we should also include the
X-Scope-OrgID
set.Which issue(s) this PR fixes:
Fixes #16938
Should close #7153 #11915
Special notes for your reviewer:
Checklist
CONTRIBUTING.md
guide (required)feat
PRs are unlikely to be accepted unless a case can be made for the feature actually being a bug fix to existing behavior.docs/sources/setup/upgrade/_index.md
deprecated-config.yaml
anddeleted-config.yaml
files respectively in thetools/deprecated-config-checker
directory. Example PR