Skip to content

outposts, internal/outpost: keep the web path when outposts connect to authentik (cherry-pick #27290 to version-2026.8) - #27347

Merged
BeryJu merged 2 commits into
version-2026.8from
cherry-pick/27290-to-version-2026.8
Nov 23, 2026
Merged

BeryJu merged 2 commits into
version-2026.8from
cherry-pick/27290-to-version-2026.8

Conversation

@authentik-cherry-pick

Copy link
Copy Markdown
Contributor

Cherry-pick of #27290 to version-2026.8 branch.

Original PR: #27290
Original Author: @dominic-r
Cherry-picked commit: 9a68e73

…o authentik (#27290)

With authentik under AUTHENTIK_WEB__PATH, outposts could not reach it:

- The RAC outpost built its session websocket URL from the API client's
  scheme and host only, so it dialed /ws/outpost_rac/... and got a 404,
  while the control websocket already kept the path. Both now go
  through one dialer, which also gives the session websocket the unix
  socket support and query parameters of the control websocket.
- The API base was the path of AUTHENTIK_HOST with "api/v3" appended, so
  a path without a trailing slash, such as /authentik, became
  /authentikapi/v3. The websockets already joined the path correctly.
- The default outpost config, which the admin interface pre-fills for
  new outposts, set authentik_host to the server root.

Closes: #26803
@netlify

netlify Bot commented Oct 29, 2026

Copy link
Copy Markdown

✅ Deploy Preview for authentik-integrations ready!

Name Link
🔨 Latest commit 6ebcd24
🔍 Latest deploy log https://app.netlify.com/projects/authentik-integrations/deploys/6ae36548c0c70efe1fa297e5
😎 Deploy Preview https://deploy-preview-27347--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 Oct 29, 2026

Copy link
Copy Markdown

✅ Deploy Preview for authentik-storybook ready!

Name Link
🔨 Latest commit 6ebcd24
🔍 Latest deploy log https://app.netlify.com/projects/authentik-storybook/deploys/6ae3654866c917063c5b8044
😎 Deploy Preview https://deploy-preview-27347--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.

@codecov

codecov Bot commented Oct 29, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 92.08%. Comparing base (37e7e36) to head (0db22da).
⚠️ Report is 28 commits behind head on version-2026.8.
✅ All tests successful. No failed tests found.

Additional details and impacted files
@@                Coverage Diff                 @@
##           version-2026.8   #27347      +/-   ##
==================================================
+ Coverage           91.93%   92.08%   +0.15%     
==================================================
  Files                1163     1166       +3     
  Lines               75194    75548     +354     
  Branches             4129     4129              
==================================================
+ Hits                69130    69569     +439     
+ Misses               5998     5913      -85     
  Partials               66       66              
Flag Coverage Δ
conformance 33.54% <8.33%> (-0.15%) ⬇️
e2e 38.16% <8.33%> (+0.31%) ⬆️
integration 30.22% <8.33%> (-0.14%) ⬇️
rust 46.45% <ø> (ø)
unit 93.51% <100.00%> (+0.18%) ⬆️
unit-migrate 93.52% <100.00%> (+0.03%) ⬆️

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.

The RAC connection test uses gorilla/websocket's Upgrader, which cspell on version-2026.8 does not know.
@dominic-r
dominic-r requested review from a team as code owners November 5, 2026 15:40
@dominic-r
dominic-r enabled auto-merge (squash) November 5, 2026 15:40
@dominic-r

Copy link
Copy Markdown
Member

Note

🤖 Claude Opus 5.5 responding on behalf of Dominic

Fixed the spellcheck failure in 0db22da: version-2026.8 still runs cspell in strict mode (main moved to typo-only), so it flagged upgrader/Upgrader in the new internal/outpost/rac/connection/connection_test.go. The commit adds upgrader to locale/en/dictionaries/golang.txt.

What I checked:

  • No conflict markers, and the PR's diff against version-2026.8 is line-for-line the same as outposts, internal/outpost: keep the web path when outposts connect to authentik #27290.
  • Everything the change uses exists on version-2026.8: ak.MockConfig, the NewOutpost/NewPaginatedOutpostList/NewPagination client signatures, and the web.path config key. APIController.Token() had only one caller, which this PR replaces.
  • Before pushing the fix, go test -race ./internal/outpost/ak/... ./internal/outpost/rac/... passed, and cspell found no issues in the touched files. I didn't run the Python outpost tests locally; CI covers them.
  • The other failures on the earlier run (test-integration, test-e2e (scim), test-e2e (endpoints)) came from Docker Hub pulls failing during image caching (docker save / postgres blob GET), not from the tests. ci-core-mark failed because of them. The new push reruns all of them.

Status: squash auto-merge is on. The branch ruleset still requires one approving code-owner review, so this waits on a backend reviewer.

@netlify

netlify Bot commented Nov 5, 2026

Copy link
Copy Markdown

✅ Deploy Preview for authentik-docs ready!

Name Link
🔨 Latest commit 0db22da
🔍 Latest deploy log https://app.netlify.com/projects/authentik-docs/deploys/6aeca378881d34d2a6fa6f44
😎 Deploy Preview https://deploy-preview-27347--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.

@BeryJu
BeryJu disabled auto-merge November 23, 2026 16:05
@BeryJu
BeryJu merged commit 552b646 into version-2026.8 Nov 23, 2026
132 of 134 checks passed
@BeryJu
BeryJu deleted the cherry-pick/27290-to-version-2026.8 branch November 23, 2026 16:05
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