Skip to content

docs: about twenty examples use ${VAR}, a syntax flAPI does not support #163

Closed

Description

@jrosskopf

What

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:

  • docs/CONFIG_REFERENCE.md — lines ~283-284, 455, 1489, 1492, 1513, 1534, 1569-1570, 1600-1601, 1766 (now fixed as §10.1), 1830-1834, 1940
  • docs/CLOUD_STORAGE_GUIDE.md — 293, 298
  • docs/guides/authentication.md — 20, 23
  • docs/spec/components/mcp-protocol.md — 353
  • 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

  1. added a commit that references this issue on Sep 30, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions