Skip to content

web/elements: compile ak-mdx API content as CommonMark (cherry-pick #24524 to version-2026.8) - #27115

Merged
GirlBossRush merged 2 commits into
version-2026.8from
cherry-pick/24524-to-version-2026.8
Oct 22, 2026
Merged

GirlBossRush merged 2 commits into
version-2026.8from
cherry-pick/24524-to-version-2026.8

Conversation

@authentik-cherry-pick

@authentik-cherry-pick authentik-cherry-pick Bot commented Oct 22, 2026 •

Copy link
Copy Markdown
Contributor

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

Original PR: #24524
Original Author: @kah-ja
Cherry-picked commit: aeb0989

Details

This PR also carries the fix from #24524's original commit, which could not land on main because #21949 removed ak-mdx.tsx there.

`<ak-mdx>` renders two kinds of source: documentation that is authored
in-tree and bundled with the web interface (`url`), and content that
comes back from the API (`content`) - user and group notes, and
blueprint descriptions.

Both were compiled as MDX. MDX evaluates expressions (`{...}`) and ESM
imports/exports of a source when the compiled module runs, so API
content was evaluated as code. The DOMPurify pass in front of the
compiler works at the HTML level and does not see either construct.

Compile `content` as CommonMark instead, so no part of it is evaluated,
and keep MDX for the bundled documentation. Reported privately as
GHSA-5vfm-49hj-h95w.
@netlify

netlify Bot commented Oct 22, 2026 •

Copy link
Copy Markdown

✅ Deploy Preview for authentik-storybook ready!

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

…#24524)

Render <ak-mdx> with content that calls a probe from an expression and
from an ESM export, and assert the probe never runs, while Markdown
still renders.

Co-authored-by: Teffen Ellis <[email protected]>
@GirlBossRush
GirlBossRush force-pushed the cherry-pick/24524-to-version-2026.8 branch from fca6084 to 584b6a7 Compare October 22, 2026 17:49
@netlify

netlify Bot commented Oct 22, 2026

Copy link
Copy Markdown

✅ Deploy Preview for authentik-integrations ready!

Name Link
🔨 Latest commit fca6084
🔍 Latest deploy log https://app.netlify.com/projects/authentik-integrations/deploys/6ada4c41ec9d371511f1e82c
😎 Deploy Preview https://deploy-preview-27115--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.

@codecov

codecov Bot commented Oct 22, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 92.05%. Comparing base (df1c953) to head (584b6a7).
✅ All tests successful. No failed tests found.

Additional details and impacted files
@@                Coverage Diff                 @@
##           version-2026.8   #27115      +/-   ##
==================================================
+ Coverage           91.92%   92.05%   +0.13%     
==================================================
  Files                1163     1163              
  Lines               75194    75194              
  Branches             4129     4129              
==================================================
+ Hits                69122    69220      +98     
+ Misses               6006     5908      -98     
  Partials               66       66              
Flag Coverage Δ
conformance 33.69% <ø> (ø)
e2e 38.32% <ø> (+0.61%) ⬆️
integration 30.36% <ø> (+<0.01%) ⬆️
rust 46.45% <ø> (ø)
unit 93.48% <ø> (+0.07%) ⬆️
unit-migrate 93.28% <ø> (-0.19%) ⬇️

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.

@GirlBossRush GirlBossRush changed the title web/elements: test that ak-mdx does not evaluate API-supplied content (cherry-pick #24524 to version-2026.8) web/elements: compile ak-mdx API content as CommonMark (cherry-pick #24524 to version-2026.8) Oct 22, 2026
@GirlBossRush GirlBossRush self-assigned this Oct 22, 2026
@github-actions

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-584b6a7a7f97b2515cdf4c55c4a2f7590b46f98b
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-584b6a7a7f97b2515cdf4c55c4a2f7590b46f98b

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

@GirlBossRush
GirlBossRush merged commit b512e75 into version-2026.8 Oct 22, 2026
138 checks passed
@GirlBossRush
GirlBossRush deleted the cherry-pick/24524-to-version-2026.8 branch October 22, 2026 20:57
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