Skip to content

website/docs: add docs for source switch expression policy#16878

Merged
tanberry merged 15 commits into
mainfrom
docs-source-switch
Sep 23, 2025
Merged

website/docs: add docs for source switch expression policy#16878
tanberry merged 15 commits into
mainfrom
docs-source-switch

Conversation

@tanberry

@tanberry tanberry commented Sep 18, 2025

Copy link
Copy Markdown
Contributor

This PR adds a new topic about switching the source based on a user's email address/domain. Also cleans up some other areas in our policy docs.

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

@tanberry
tanberry requested a review from a team as a code owner September 18, 2025 07:40
@netlify

netlify Bot commented Sep 18, 2025

Copy link
Copy Markdown

Deploy Preview for authentik-docs ready!

Name Link
🔨 Latest commit 4aa7225
🔍 Latest deploy log https://app.netlify.com/projects/authentik-docs/deploys/68d2d54ba38d140007098bd4
😎 Deploy Preview https://deploy-preview-16878--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.

@netlify

netlify Bot commented Sep 18, 2025

Copy link
Copy Markdown

Deploy Preview for authentik-integrations ready!

Name Link
🔨 Latest commit 4aa7225
🔍 Latest deploy log https://app.netlify.com/projects/authentik-integrations/deploys/68d2d54b6c5e3700084504bd
😎 Deploy Preview https://deploy-preview-16878--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.

@tanberry
tanberry marked this pull request as draft September 18, 2025 07:40
@netlify

netlify Bot commented Sep 18, 2025

Copy link
Copy Markdown

Deploy Preview for authentik-storybook canceled.

Name Link
🔨 Latest commit 4aa7225
🔍 Latest deploy log https://app.netlify.com/projects/authentik-storybook/deploys/68d2d54bd828f500089f4c53

@codecov

codecov Bot commented Sep 18, 2025

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 92.78%. Comparing base (301ade8) to head (4aa7225).
⚠️ Report is 88 commits behind head on main.
✅ All tests successful. No failed tests found.

Additional details and impacted files
@@            Coverage Diff             @@
##             main   #16878      +/-   ##
==========================================
+ Coverage   92.58%   92.78%   +0.20%     
==========================================
  Files         838      844       +6     
  Lines       45386    45593     +207     
==========================================
+ Hits        42021    42304     +283     
+ Misses       3365     3289      -76     
Flag Coverage Δ
e2e 46.39% <ø> (+0.47%) ⬆️
integration 23.42% <ø> (-0.08%) ⬇️
unit 90.93% <ø> (+0.01%) ⬆️

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.

@github-actions

github-actions Bot commented Sep 18, 2025

Copy link
Copy Markdown
Contributor

authentik PR Installation instructions

Instructions for docker-compose

Add the following block to your .env file:

AUTHENTIK_IMAGE=ghcr.io/goauthentik/dev-server
AUTHENTIK_TAG=gh-4aa7225dc4fa86ebfc1fd212f72d43bf501f64ce
AUTHENTIK_OUTPOSTS__CONTAINER_IMAGE_BASE=ghcr.io/goauthentik/dev-%(type)s:gh-%(build_hash)s

Afterwards, run the upgrade commands from the latest release notes.

Instructions for Kubernetes

Add the following block to your values.yml file:

authentik:
    outposts:
        container_image_base: ghcr.io/goauthentik/dev-%(type)s:gh-%(build_hash)s
global:
    image:
        repository: ghcr.io/goauthentik/dev-server
        tag: gh-4aa7225dc4fa86ebfc1fd212f72d43bf501f64ce

Afterwards, run the upgrade commands from the latest release notes.

@dewi-tik dewi-tik left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Just a few suggestions. Great addition to the docs

Comment thread website/docs/customize/policies/expression/source_switch.md Outdated
Comment thread website/docs/customize/policies/expression/source_switch.md Outdated
Comment thread website/docs/customize/policies/expression/source_switch.md
Comment thread website/docs/customize/policies/index.md Outdated
Comment thread website/docs/customize/policies/working_with_policies.md Outdated
Comment thread website/docs/customize/policies/working_with_policies.md Outdated
tanberry and others added 6 commits September 22, 2025 09:01
Co-authored-by: Dewi Roberts <dewi@goauthentik.io>
Signed-off-by: Tana M Berry <tanamarieberry@yahoo.com>
Co-authored-by: Dewi Roberts <dewi@goauthentik.io>
Signed-off-by: Tana M Berry <tanamarieberry@yahoo.com>
Co-authored-by: Dewi Roberts <dewi@goauthentik.io>
Signed-off-by: Tana M Berry <tanamarieberry@yahoo.com>
Co-authored-by: Dewi Roberts <dewi@goauthentik.io>
Signed-off-by: Tana M Berry <tanamarieberry@yahoo.com>

@dewi-tik dewi-tik left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Few more minor edits

Comment thread website/docs/customize/policies/expression.mdx Outdated
Comment thread website/docs/customize/policies/index.md Outdated
Comment thread website/docs/customize/policies/working_with_policies.md Outdated
Comment thread website/docs/customize/policies/working_with_policies.md Outdated
Comment thread website/docs/customize/policies/working_with_policies.md Outdated
Comment thread website/docs/customize/policies/working_with_policies.md Outdated
@tanberry
tanberry marked this pull request as ready for review September 23, 2025 12:51
@tanberry
tanberry requested a review from BeryJu September 23, 2025 12:52
tanberry and others added 6 commits September 23, 2025 11:37
Co-authored-by: Dewi Roberts <dewi@goauthentik.io>
Signed-off-by: Tana M Berry <tanamarieberry@yahoo.com>
Co-authored-by: Dewi Roberts <dewi@goauthentik.io>
Signed-off-by: Tana M Berry <tanamarieberry@yahoo.com>
Co-authored-by: Dewi Roberts <dewi@goauthentik.io>
Signed-off-by: Tana M Berry <tanamarieberry@yahoo.com>
Co-authored-by: Dewi Roberts <dewi@goauthentik.io>
Signed-off-by: Tana M Berry <tanamarieberry@yahoo.com>
Co-authored-by: Dewi Roberts <dewi@goauthentik.io>
Signed-off-by: Tana M Berry <tanamarieberry@yahoo.com>
Co-authored-by: Jens L. <jens@goauthentik.io>
Signed-off-by: Tana M Berry <tanamarieberry@yahoo.com>
@@ -0,0 +1,45 @@
---
title: Switch which source is used based on email address

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.

Suggested change
title: Switch which source is used based on email address
title: Dynamic email-domain based federation

@tanberry
tanberry merged commit dbf85d0 into main Sep 23, 2025
109 checks passed
@tanberry
tanberry deleted the docs-source-switch branch September 23, 2025 18:57
@tanberry tanberry added backport/version-2025.8 Add this label to PRs to backport changes to version-2025.8 backport/version-2025.6 labels Sep 24, 2025
authentik-automation Bot pushed a commit that referenced this pull request Sep 24, 2025
* draft for source switch docs

* add python

* add sidebar entry

* Update website/docs/customize/policies/expression/source_switch.md

Co-authored-by: Dewi Roberts <dewi@goauthentik.io>
Signed-off-by: Tana M Berry <tanamarieberry@yahoo.com>

* Update website/docs/customize/policies/index.md

Co-authored-by: Dewi Roberts <dewi@goauthentik.io>
Signed-off-by: Tana M Berry <tanamarieberry@yahoo.com>

* Update website/docs/customize/policies/working_with_policies.md

Co-authored-by: Dewi Roberts <dewi@goauthentik.io>
Signed-off-by: Tana M Berry <tanamarieberry@yahoo.com>

* Update website/docs/customize/policies/working_with_policies.md

Co-authored-by: Dewi Roberts <dewi@goauthentik.io>
Signed-off-by: Tana M Berry <tanamarieberry@yahoo.com>

* add sectin about binding the policy

* tweak

* Update website/docs/customize/policies/index.md

Co-authored-by: Dewi Roberts <dewi@goauthentik.io>
Signed-off-by: Tana M Berry <tanamarieberry@yahoo.com>

* Update website/docs/customize/policies/working_with_policies.md

Co-authored-by: Dewi Roberts <dewi@goauthentik.io>
Signed-off-by: Tana M Berry <tanamarieberry@yahoo.com>

* Update website/docs/customize/policies/working_with_policies.md

Co-authored-by: Dewi Roberts <dewi@goauthentik.io>
Signed-off-by: Tana M Berry <tanamarieberry@yahoo.com>

* Update website/docs/customize/policies/working_with_policies.md

Co-authored-by: Dewi Roberts <dewi@goauthentik.io>
Signed-off-by: Tana M Berry <tanamarieberry@yahoo.com>

* Update website/docs/customize/policies/working_with_policies.md

Co-authored-by: Dewi Roberts <dewi@goauthentik.io>
Signed-off-by: Tana M Berry <tanamarieberry@yahoo.com>

* Update website/docs/customize/policies/expression.mdx

Co-authored-by: Jens L. <jens@goauthentik.io>
Signed-off-by: Tana M Berry <tanamarieberry@yahoo.com>

---------

Signed-off-by: Tana M Berry <tanamarieberry@yahoo.com>
Co-authored-by: Tana M Berry <tana@goauthentik.io>
Co-authored-by: Dewi Roberts <dewi@goauthentik.io>
Co-authored-by: Jens L. <jens@goauthentik.io>
authentik-automation Bot pushed a commit that referenced this pull request Sep 24, 2025
This cherry-pick has conflicts that need manual resolution.

Original PR: #16878
Original commit: dbf85d0
@authentik-automation

Copy link
Copy Markdown
Contributor

🍒 Cherry-pick to version-2025.8 created: #16972

@authentik-automation

Copy link
Copy Markdown
Contributor

⚠️ Cherry-pick to version-2025.4 has conflicts: #16973

authentik-automation Bot pushed a commit that referenced this pull request Sep 24, 2025
This cherry-pick has conflicts that need manual resolution.

Original PR: #16878
Original commit: dbf85d0
@authentik-automation

Copy link
Copy Markdown
Contributor

⚠️ Cherry-pick to version-2025.6 has conflicts: #16974

dewi-tik added a commit that referenced this pull request Sep 24, 2025
#16878) (#16972)

website/docs: add docs for source switch expression policy (#16878)

* draft for source switch docs

* add python

* add sidebar entry

* Update website/docs/customize/policies/expression/source_switch.md




* Update website/docs/customize/policies/index.md




* Update website/docs/customize/policies/working_with_policies.md




* Update website/docs/customize/policies/working_with_policies.md




* add sectin about binding the policy

* tweak

* Update website/docs/customize/policies/index.md




* Update website/docs/customize/policies/working_with_policies.md




* Update website/docs/customize/policies/working_with_policies.md




* Update website/docs/customize/policies/working_with_policies.md




* Update website/docs/customize/policies/working_with_policies.md




* Update website/docs/customize/policies/expression.mdx




---------

Signed-off-by: Tana M Berry <tanamarieberry@yahoo.com>
Co-authored-by: Tana M Berry <tanamarieberry@yahoo.com>
Co-authored-by: Tana M Berry <tana@goauthentik.io>
Co-authored-by: Dewi Roberts <dewi@goauthentik.io>
Co-authored-by: Jens L. <jens@goauthentik.io>
@tanberry tanberry mentioned this pull request Sep 24, 2025
2 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backport/version-2025.8 Add this label to PRs to backport changes to version-2025.8

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants