Skip to content

website/docs: fix the !Env and !File default syntax and document !ParseJSON - #27823

Merged
dominic-r merged 2 commits into
goauthentik:mainfrom
rawsun007:website/docs-blueprint-tags
Nov 16, 2026
Merged

dominic-r merged 2 commits into
goauthentik:mainfrom
rawsun007:website/docs-blueprint-tags

Conversation

@rawsun007

Copy link
Copy Markdown
Contributor

Details

What does this PR change?

Fixes the blueprint YAML tags page in three places:

  • !Env and !File say a default can be given "as a scalar" with !Env my_env_var, default. The constructors only read a default from a sequence node, so that form looks up an environment variable named my_env_var, default and has no default. The page now shows !Env [my_env_var, default] and !File [/path/to/file, default], the forms used in authentik/blueprints/tests/fixtures/tags.yaml.
  • Adds a section for !ParseJSON, added in blueprints: add JSON tag to parse JSON from string #15235 (2025.8) but never documented.
  • Adds !Env sequence, !FindObject sequence and !ParseJSON scalar to the VS Code snippet, matching .vscode/settings.json.

Why is this change needed?

Someone following the page gets a blueprint where the default never applies.

How was this tested?

Composed both forms with PyYAML: !Env my_env_var, default gives a ScalarNode with value 'my_env_var, default', and !Env [my_env_var, default] gives a SequenceNode. Ran oxfmt 0.70.0 (repository settings) and cspell with cspell.config.jsonc on the file; neither reported anything. I did not run make docs or make all.

Linked issues

refs #15235


Checklist

  • The project has been linted, built, and tested (make all)
  • The documentation has been updated and formatted (make docs)
  • I have read the AI usage policy.

The first two boxes are unticked because neither make target was run; the file was checked with the formatter and spell checker only.

AI disclosure: Claude Code (Claude Opus 5.5) found these by comparing the tags page with authentik/blueprints/v1/common.py, wrote the change and this description. I reviewed the diff.

…seJSON

A default is only read from the sequence form; `!Env my_env_var, default`
looks up a variable named "my_env_var, default". Also add the missing
!ParseJSON tag (goauthentik#15235) and sync the VS Code snippet with .vscode/settings.json.
@rawsun007
rawsun007 requested a review from a team as a code owner November 15, 2026 03:47
@netlify

netlify Bot commented Nov 15, 2026 •

Copy link
Copy Markdown

👷 Deploy request for authentik-storybook accepted.

Name Link
🔨 Latest commit 4c1b7fd
🔍 Latest deploy log https://app.netlify.com/projects/authentik-storybook/deploys/6af92b6fd19a175a3c1272a1

@netlify

netlify Bot commented Nov 15, 2026 •

Copy link
Copy Markdown

✅ Deploy Preview for authentik-docs ready!

Name Link
🔨 Latest commit a1e3eef
🔍 Latest deploy log https://app.netlify.com/projects/authentik-docs/deploys/6af9deb76f2e2aa5c9c46392
😎 Deploy Preview https://deploy-preview-27823--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 Nov 15, 2026 •

Copy link
Copy Markdown

👷 Deploy request for authentik-integrations accepted.

Name Link
🔨 Latest commit a1e3eef
🔍 Latest deploy log https://app.netlify.com/projects/authentik-integrations/deploys/6af9deb78d9aa73eee9cdb3d

@codecov

codecov Bot commented Nov 15, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 93.03%. Comparing base (dd0a703) to head (a1e3eef).
⚠️ Report is 1 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main   #27823      +/-   ##
==========================================
- Coverage   93.07%   93.03%   -0.04%     
==========================================
  Files        1238     1238              
  Lines       86559    86559              
  Branches     4894     4894              
==========================================
- Hits        80564    80533      -31     
- Misses       5908     5939      +31     
  Partials       87       87              
Flag Coverage Δ
conformance 30.33% <ø> (+<0.01%) ⬆️
e2e 34.96% <ø> (-0.01%) ⬇️
integration 27.51% <ø> (-0.32%) ⬇️
rust 51.12% <ø> (ø)
unit 94.60% <ø> (+<0.01%) ⬆️
unit-migrate 94.61% <ø> (+<0.01%) ⬆️

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.

@dominic-r
dominic-r enabled auto-merge (squash) November 15, 2026 16:34
@dominic-r
dominic-r merged commit 79f9993 into goauthentik:main Nov 16, 2026
164 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants