docs(secrets): document the Group-2 Infisical runtime fetch (BUNYIP-528) #524
Loading…
Reference in a new issue
No description provided.
Delete branch "docs/BUNYIP-528-group2-infisical-docs"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Completes the documentation for the two-tier secret model. bunyip-api now fetches its Group-2 integration secret
SMTP_PASSWORDfrom Infisical at runtime (BUNYIP-525, deployed on c-01 via docker PR #346), butdocs/secrets-infisical.mdand its siblings still documented only the Group-1 file-sync tier.Changes
docs/secrets-infisical.md: restructured into a Group-1 (file sync) section and a new Group-2 (runtime fetch) section. The Group-2 section documents theINFISICAL_*env vars (which are plain env vssecret_env, with defaults), the source precedence, how to make Infisical the effective SMTP source on a host, fetch validation, and Group-2 troubleshooting rows. The folder tree now includes/bunyip/runtime, andSMTP_PASSWORD's dual source is noted.docs/getting-started.md: theinfisicalCLI is Group-1 only; Group-2 SMTP is app-fetched at runtime with no CLI.README.md: qualify "secrets are files, never environment variables" with the Group-2 runtime-fetch exception.docs/e2e.md: add/bunyip/runtimeto the folder mental model.Key documented fact: source precedence
The Infisical fetch fills
SMTP_PASSWORDonly when the slot is empty (bunyip-api/src/main.rsgates onconfig.infisical.enabled && config.email.smtp_password.is_empty()). Effective order, highest first: DBemail_configrow > Group-1 env/fileSMTP_PASSWORD> Group-2 Infisical fetch. So Infisical is the effective SMTP source on a host only when there is no DB row and no Group-1 value. This is why c-01 currently sends email off its SOPSSMTP_PASSWORD(the fetch is enabled but inert until that value is removed; the completing step is tracked in DEV-581).Scope
Docs only. The config change to remove
SMTP_PASSWORDfrom Group-1 (to force Infisical as the sole SMTP source) is separate: on c-01 it is the completing step in DEV-581.Related: BUNYIP-525 (the fetch), DEV-581 (c-01 enablement + the docker setup runbook), and a governance PR for the universal "Infisical with any app" guide.