Secret references¶
Composer credentials must not appear as plaintext in YAML. Use a scheme that
matches target.provider.
AWS (target.provider: aws)¶
The value must be a non-empty Composer auth.json object. SSM parameters are
fetched with decryption. Names and paths use defaults.region; an ARN supplies
its own region.
To pick one string field from a JSON Secrets Manager secret:
That field must hold the full Composer auth object.
GCP (target.provider: gcp, experimental)¶
Config accepts the scheme so GCP YAML validates. magelift build does not yet
resolve GCP Secret Manager; implement secretref.GCPSecretManagerProvider to
wire it.
How resolution works¶
The CLI writes the secret to a private temp file for the prepare container, then deletes it. It never puts the value in process args, build metadata, the app image, the artifact manifest, or Pulumi state.
Unknown schemes, fragments, userinfo, and stray query keys fail validation.
Cross-provider schemes (e.g. gcp-secret-manager:// on an AWS target) fail too.