Skip to content

Commit

Permalink
Merge pull request #1834 from RockyMM/pre-authenticated-proxy-headers…
Browse files Browse the repository at this point in the history
…-compromise

#1883 return pre-authenticated configuration to location-snippet
  • Loading branch information
thjaeckle authored Dec 2, 2023
2 parents a7ccbfd + f30c829 commit d615bbf
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion deployment/helm/ditto/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ description: |
A digital twin is a virtual, cloud based, representation of his real world counterpart
(real world “Things”, e.g. devices like sensors, smart heating, connected cars, smart grids, EV charging stations etc).
type: application
version: 3.4.2 # chart version is effectively set by release-job
version: 3.4.3-0 # chart version is effectively set by release-job
appVersion: 3.4.2
keywords:
- iot-chart
Expand Down
5 changes: 5 additions & 0 deletions deployment/helm/ditto/templates/nginx-ingress.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -132,6 +132,11 @@ data:
# ignore X-Original-URI in the request
proxy_hide_header X-Original-URI;
# set ditto-specific forwarded headers - needed in the location for registry.k8s.io/ingress-nginx/controller
proxy_set_header X-Forwarded-User $remote_user;
proxy_set_header x-ditto-pre-authenticated "nginx:$remote_user";
proxy-connect-timeout: "10" # seconds, default: 60
# timeouts are configured slightly higher than gateway read-timeout of 60 seconds
proxy-send-timeout: "70" # seconds, default: 60
Expand Down

0 comments on commit d615bbf

Please sign in to comment.