You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
docs: about twenty examples use ${VAR}, a syntax flAPI does not support #163
Many docs show environment variables as ${NAME} — password: '${DB_PASSWORD}', jwt-secret: '${JWT_SECRET}' and so on. flAPI does not support that syntax. The only substitution is {{env.NAME}}, and ${NAME} is left in the file as literal text. (Verified: project-name: "x-${FLAPI_PROBE}" with the variable set stays x-${FLAPI_PROBE}; there is no other ${ handling in src/.)
So an operator who follows these examples gets a password that is the literal string ${DB_PASSWORD}, with no error.
Where
Found by grep -rnE '\$\{[A-Z_]+\}' after #157 corrected the passages that discuss the whitelist:
AGENTS.md (and so CLAUDE.md) — the flapii project init walkthrough uses $DB_USER / $DB_PASSWORD
(Shell uses of ${...} — $FLAPI_CONFIG in Dockerfile/bash snippets, $TOKEN in curl — are correct and are not part of this.)
Fix
Replace each with {{env.NAME}}, and make sure each such example's variable would match the whitelist shown next to it (#157 made an unlisted variable a startup error).
Alternatively, decide ${NAME}should be supported and implement it — but it would then need the same whitelist enforcement, so it is a feature, not a docs fix.
Related
#157 (whitelist enforcement) — corrected §10.1 of the config reference, docs/CLI_REFERENCE.md, docs/spec/components/config-system.md, AGENTS.md's whitelist line and the Azure example, since it was rewriting those passages anyway.
Activity
fix: read the whitelist from raw text, and treat block-scalar # lines…
Merge pull request #172 from DataZooDE/docs/gh-158-163-config-docs