Repository navigation
web/elements: compile ak-mdx API content as CommonMark (cherry-pick #24524 to version-2026.8) - #27115
Conversation
`<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.
✅ Deploy Preview for authentik-storybook ready!
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]>
fca6084 to
584b6a7
Compare
✅ Deploy Preview for authentik-integrations ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
Codecov Report✅ All modified and coverable lines are covered by tests. 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
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Harness. |
|
authentik PR Installation instructions Instructions for docker-composeAdd the following block to your 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)sAfterwards, run the upgrade commands from the latest release notes. Instructions for KubernetesAdd the following block to your 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-584b6a7a7f97b2515cdf4c55c4a2f7590b46f98bAfterwards, run the upgrade commands from the latest release notes. |
Cherry-pick of #24524 to
version-2026.8branch.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
mainbecause #21949 removedak-mdx.tsxthere.url