Skip to content

server/core: handle unsupported HTTP method - #22498

Merged
rissson merged 4 commits into
goauthentik:mainfrom
nalves599:nalves599/handle-http-method
Aug 20, 2026
Merged

rissson merged 4 commits into
goauthentik:mainfrom
nalves599:nalves599/handle-http-method

Conversation

@nalves599

Copy link
Copy Markdown
Contributor

Details

Handles unsupported HTTP method errors.

Checklist

  • [] Local tests pass (ak test authentik/)
  • [] The code has been formatted (make lint-fix)

If an API change has been made

  • The API schema and clients have been updated (make gen)

If changes to the frontend have been made

  • The code has been formatted (make web)

If applicable

  • The documentation has been updated
  • The documentation has been formatted (make docs)

@nalves599
nalves599 requested a review from a team as a code owner May 20, 2026 11:00
@netlify

netlify Bot commented May 20, 2026 •

Copy link
Copy Markdown

✅ Deploy Preview for authentik-docs ready!

Name Link
🔨 Latest commit 8dd6196
🔍 Latest deploy log https://app.netlify.com/projects/authentik-docs/deploys/6a86ecb64241ca0008dab1b1
😎 Deploy Preview https://deploy-preview-22498--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 project configuration.

@codecov

codecov Bot commented May 20, 2026 •

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 88.88889% with 3 lines in your changes missing coverage. Please review.
✅ Project coverage is 91.53%. Comparing base (16047ba) to head (38b04c3).
⚠️ Report is 23 commits behind head on main.

Files with missing lines Patch % Lines
src/server/core.rs 88.88% 3 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main   #22498      +/-   ##
==========================================
+ Coverage   91.35%   91.53%   +0.18%     
==========================================
  Files        1151     1151              
  Lines       73091    73181      +90     
  Branches     3889     3950      +61     
==========================================
+ Hits        66769    66987     +218     
+ Misses       6286     6158     -128     
  Partials       36       36              
Flag Coverage Δ
conformance 34.49% <ø> (+0.44%) ⬆️
e2e 39.15% <ø> (+2.26%) ⬆️
integration 30.62% <ø> (-0.46%) ⬇️
rust 40.07% <88.88%> (+0.86%) ⬆️
unit 93.20% <ø> (+9.25%) ⬆️
unit-migrate 93.22% <ø> (+10.70%) ⬆️

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

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

@nalves599
nalves599 force-pushed the nalves599/handle-http-method branch from 968c885 to fdb968a Compare May 20, 2026 12:12
@nalves599
nalves599 force-pushed the nalves599/handle-http-method branch 2 times, most recently from fdb968a to a24115c Compare May 28, 2026 12:49
@nalves599
nalves599 force-pushed the nalves599/handle-http-method branch from 4900e79 to 24362c6 Compare July 10, 2026 13:55
@netlify

netlify Bot commented Jul 10, 2026 •

Copy link
Copy Markdown

✅ Deploy Preview for authentik-integrations ready!

Name Link
🔨 Latest commit 8dd6196
🔍 Latest deploy log https://app.netlify.com/projects/authentik-integrations/deploys/6a86ecb65a461a000825d7be
😎 Deploy Preview https://deploy-preview-22498--authentik-integrations.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 project configuration.

@netlify

netlify Bot commented Jul 10, 2026 •

Copy link
Copy Markdown

✅ Deploy Preview for authentik-storybook ready!

Name Link
🔨 Latest commit 8dd6196
🔍 Latest deploy log https://app.netlify.com/projects/authentik-storybook/deploys/6a86ecb6ea77fe0008d83a0f
😎 Deploy Preview https://deploy-preview-22498--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 project configuration.

@nalves599
nalves599 force-pushed the nalves599/handle-http-method branch from 24362c6 to 4c0c8ef Compare August 3, 2026 11:14
@nalves599
nalves599 requested a review from a team as a code owner August 3, 2026 11:14
@rissson
rissson removed the request for review from a team August 13, 2026 16:55
@dewi-tik dewi-tik added this to the Release 2026.11.0: Required milestone Aug 13, 2026
@dewi-tik

Copy link
Copy Markdown
Contributor

Are you happy adding rust code for this based on .8. So that the change applies to versions pre .8 and post .8?

@nalves599 nalves599 changed the title internal/web/proxy: handle unsupported HTTP method server/core: handle unsupported HTTP method Aug 20, 2026
@nalves599
nalves599 force-pushed the nalves599/handle-http-method branch from 4c0c8ef to 8dd6196 Compare August 20, 2026 12:01
@nalves599
nalves599 force-pushed the nalves599/handle-http-method branch from 8dd6196 to 67a95a4 Compare August 20, 2026 12:04
@nalves599

Copy link
Copy Markdown
Contributor Author

@dewi-tik I added the same logic to the rust code

@rissson rissson left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, pending some linting

@github-project-automation github-project-automation Bot moved this from Todo to In Progress in authentik Core Aug 20, 2026
Signed-off-by: Marc 'risson' Schmitt <[email protected]>
@rissson rissson added backport/version-2026.2 Add this label to PRs to backport changes to version-2026.2 backport/version-2026.5 Add this label to PRs to backport changes to version-2026.5 backport/version-2026.8 Add this label to PRs to backport changes to version-2026.8 labels Aug 20, 2026
Signed-off-by: Marc 'risson' Schmitt <[email protected]>
@rissson
rissson merged commit 42fb02e into goauthentik:main Aug 20, 2026
138 of 139 checks passed
@github-project-automation github-project-automation Bot moved this from In Progress to Done in authentik Core Aug 20, 2026
@authentik-cherry-pick

Copy link
Copy Markdown
Contributor

🍒 Cherry-pick to version-2026.8 created: #25362

@authentik-cherry-pick

Copy link
Copy Markdown
Contributor

⚠️ Cherry-pick to version-2026.5 has conflicts: #25364

@authentik-cherry-pick

Copy link
Copy Markdown
Contributor

⚠️ Cherry-pick to version-2026.2 has conflicts: #25363

rissson added a commit that referenced this pull request Aug 20, 2026
…rsion-2026.5) (#25364)

Co-authored-by: Nuno Alves <[email protected]>
Co-authored-by: Marc 'risson' Schmitt <[email protected]>
Signed-off-by: Marc 'risson' Schmitt <[email protected]>
rissson added a commit that referenced this pull request Aug 20, 2026
…rsion-2026.2) (#25363)

Co-authored-by: Nuno Alves <[email protected]>
Co-authored-by: Marc 'risson' Schmitt <[email protected]>
Signed-off-by: Marc 'risson' Schmitt <[email protected]>
rissson added a commit that referenced this pull request Aug 20, 2026
…rsion-2026.8) (#25362)

Co-authored-by: Nuno Alves <[email protected]>
Co-authored-by: Marc 'risson' Schmitt <[email protected]>
Signed-off-by: Marc 'risson' Schmitt <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backport/version-2026.2 Add this label to PRs to backport changes to version-2026.2 backport/version-2026.5 Add this label to PRs to backport changes to version-2026.5 backport/version-2026.8 Add this label to PRs to backport changes to version-2026.8

Projects

Archived in project

Development

Successfully merging this pull request may close these issues.

3 participants