Repository navigation
website/docs: fix the !Env and !File default syntax and document !ParseJSON - #27823
Merged
dominic-r merged 2 commits intoNov 16, 2026
Merged
Conversation
…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.
👷 Deploy request for authentik-storybook accepted.
|
✅ Deploy Preview for authentik-docs ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
👷 Deploy request for authentik-integrations accepted.
|
Codecov Report✅ All modified and coverable lines are covered by tests. 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
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Harness. |
dominic-r
approved these changes
Nov 15, 2026
dominic-r
enabled auto-merge (squash)
November 15, 2026 16:34
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Details
What does this PR change?
Fixes the blueprint YAML tags page in three places:
!Envand!Filesay 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 namedmy_env_var, defaultand has no default. The page now shows!Env [my_env_var, default]and!File [/path/to/file, default], the forms used inauthentik/blueprints/tests/fixtures/tags.yaml.!ParseJSON, added in blueprints: add JSON tag to parse JSON from string #15235 (2025.8) but never documented.!Env sequence,!FindObject sequenceand!ParseJSON scalarto 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, defaultgives aScalarNodewith value'my_env_var, default', and!Env [my_env_var, default]gives aSequenceNode. Ranoxfmt0.70.0 (repository settings) andcspellwithcspell.config.jsoncon the file; neither reported anything. I did not runmake docsormake all.Linked issues
refs #15235
Checklist
make all)make docs)The first two boxes are unticked because neither
maketarget 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.