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

website/docs: Upgrade nginx reverse porxy config #8947

Merged
merged 1 commit into from
Mar 22, 2024
Merged

website/docs: Upgrade nginx reverse porxy config #8947

merged 1 commit into from
Mar 22, 2024

Conversation

vnwnv
Copy link
Contributor

@vnwnv vnwnv commented Mar 18, 2024

Details

The original nginx reverse proxy config is using $host var, which does not pass the port part to authentik.

When nginx host on different port rather than 443, is will make CSRF error.

with the %host, on page https://authentik:port/api/v3/admin/system/ HTTP_HOST will only get https://authentik without port. However, when nginx host on different port, the origin in post headers will contain port number, which cause CSRF error.

Signed-off-by: Vince <wlmqpsc@gmail.com>
@vnwnv vnwnv requested a review from a team as a code owner March 18, 2024 05:07
Copy link

netlify bot commented Mar 18, 2024

Deploy Preview for authentik-storybook ready!

Name Link
🔨 Latest commit ae8c9c4
🔍 Latest deploy log https://app.netlify.com/sites/authentik-storybook/deploys/65f7cc27e14714000893471b
😎 Deploy Preview https://deploy-preview-8947--authentik-storybook.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

Copy link

netlify bot commented Mar 18, 2024

Deploy Preview for authentik-docs ready!

Name Link
🔨 Latest commit ae8c9c4
🔍 Latest deploy log https://app.netlify.com/sites/authentik-docs/deploys/65f7cc27b9cbc90008818088
😎 Deploy Preview https://deploy-preview-8947--authentik-docs.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

Copy link

codecov bot commented Mar 18, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 92.19%. Comparing base (cef1d2d) to head (ae8c9c4).
Report is 355 commits behind head on main.

Additional details and impacted files
@@             Coverage Diff             @@
##             main    #8947       +/-   ##
===========================================
+ Coverage   46.62%   92.19%   +45.57%     
===========================================
  Files         626      640       +14     
  Lines       30996    31549      +553     
===========================================
+ Hits        14451    29086    +14635     
+ Misses      16545     2463    -14082     
Flag Coverage Δ
e2e 49.20% <ø> (+4.48%) ⬆️
integration 26.09% <ø> (+0.10%) ⬆️
unit 89.67% <ø> (?)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@rissson rissson requested a review from BeryJu March 18, 2024 10:22
@BeryJu BeryJu merged commit 32f9581 into goauthentik:main Mar 22, 2024
60 of 66 checks passed
kensternberg-authentik added a commit that referenced this pull request Mar 26, 2024
* main:
  web: bump API Client version (#9021)
  sources/ldap: add ability to disable password write on login (#8377)
  web: bump API Client version (#9020)
  lifecycle: migrate: ensure template schema exists before migrating (#8952)
  website/integrations: Update nextcloud Admin Group Expression (#7314)
  web/flow: general ux improvements (#8558)
  website: bump @types/react from 18.2.67 to 18.2.69 in /website (#9016)
  core: bump requests-oauthlib from 1.4.0 to 2.0.0 (#9018)
  web: bump the sentry group in /web with 2 updates (#9017)
  web/admin: small fixes (#9002)
  website: bump webpack-dev-middleware from 5.3.3 to 5.3.4 in /website (#9001)
  core: bump ruff from 0.3.3 to 0.3.4 (#8998)
  website/docs: Upgrade nginx reverse porxy config (#8947)
  website/docs: improve flow inspector docs (#8993)
  website/deverlop-docs website/integrations: add links to integrations template (#8995)
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