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

feat: issuer from Forwarded header #443

Merged
merged 1 commit into from
Sep 7, 2023
Merged

feat: issuer from Forwarded header #443

merged 1 commit into from
Sep 7, 2023

Conversation

muhlemmer
Copy link
Collaborator

@muhlemmer muhlemmer commented Sep 7, 2023

Due to the need in zitadel to run OIDC behind a proxy,
we need to be able to overwrite the Host from the request.

To provide that, it is now possible to start a provider that parses the standarized Forwarded header with a fallback to the Request Host field.

Forwarded: by=<identifier>;for=<identifier>;host=<host>;proto=<http|https>

In order not to break installations that might be already running behind a proxy with the header set, a seperate constructor for the provider is added for the new usecase.

Definition of Ready

  • I am happy with the code
  • Short description of the feature/issue is added in the pr description
  • PR is linked to the corresponding user story
  • Acceptance criteria are met
  • All open todos and follow ups are defined in a new ticket and justified
  • Deviations from the acceptance criteria and design are agreed with the PO and documented.
  • No debug or dead code
  • My code has no repetitions
  • Critical parts are tested automatically
  • Where possible E2E tests are implemented
  • Documentation/examples are up-to-date
  • All non-functional requirements are met
  • Functionality of the acceptance criteria is checked manually on the dev system.

@codecov
Copy link

codecov bot commented Sep 7, 2023

Codecov Report

Merging #443 (26898c9) into main (607a76c) will increase coverage by 0.11%.
The diff coverage is 90.00%.

@@            Coverage Diff             @@
##             main     #443      +/-   ##
==========================================
+ Coverage   53.84%   53.96%   +0.11%     
==========================================
  Files          74       74              
  Lines        5811     5830      +19     
==========================================
+ Hits         3129     3146      +17     
- Misses       2422     2424       +2     
  Partials      260      260              
Files Changed Coverage Δ
pkg/op/op.go 64.14% <0.00%> (-0.52%) ⬇️
pkg/op/config.go 95.83% <100.00%> (+1.28%) ⬆️

@muhlemmer muhlemmer merged commit 364a759 into main Sep 7, 2023
8 checks passed
@muhlemmer muhlemmer deleted the feat-forwared-header branch September 7, 2023 12:25
@github-actions
Copy link

github-actions bot commented Sep 7, 2023

🎉 This PR is included in version 2.11.0 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

Copy link

🎉 This PR is included in version 2.11.0 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

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

Successfully merging this pull request may close these issues.

2 participants