Skip to content

Commit

Permalink
multi-tenant-proxy: enforce write orgid according to the user (#230)
Browse files Browse the repository at this point in the history
* multi-tenant-proxy: enforce write orgid according to the user
* make behaviour configurable

---------

Co-authored-by: Herve Nicol <[email protected]>
  • Loading branch information
hervenicol and hervenicol authored Oct 19, 2023
1 parent 23fc08b commit acdfd6f
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 0 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- Upgraded upstream chart from 5.29.0 to 5.34.0 - see [changelog](https://github.com/grafana/loki/blob/main/production/helm/loki/CHANGELOG.md) for more information.
- Upgraded loki from 2.9.1 to 2.9.2 - see [changelog](https://github.com/grafana/loki/blob/main/CHANGELOG.md) for more information.
- Resource usage improvements (requests and limits, and HPA tuning)
- multi-tenant-proxy: enforce org-id according to the user - can be changed back with `.Values.multiTenantAuth.write.enforceOrgId`

## [0.13.0] - 2023-10-17

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,9 @@ spec:
- "--port=3101"
- '--loki-server=http://loki-write.{{ .Release.Namespace }}.svc.{{ .Values.global.clusterDomain }}:3100'
- "--auth-config=/etc/loki-multi-tenant-proxy/authn.yaml"
{{- if not .Values.multiTenantAuth.write.enforceOrgId }}
- "--keep-orgid"
{{- end }}
ports:
- name: http-write
containerPort: 3101
Expand Down
3 changes: 3 additions & 0 deletions helm/loki/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,9 @@ multiTenantAuth:
readOnlyRootFilesystem: true
seccompProfile:
type: RuntimeDefault
write:
# -- disabling this allows write requests to set whatever orgid they want
enforceOrgId: true

global:
image:
Expand Down

0 comments on commit acdfd6f

Please sign in to comment.