Skip to main content
Secrets expose a placeholder to the guest and substitute the real value only for an allowed host and enabled request location. A placeholder in any other location is blocked unless the destination is explicitly allowed to receive it unchanged.
allow() accepts exact hosts and wildcard patterns such as *.example.com. Use allowAnyHostDangerous(true) only when every destination may receive the real secret. Substitution defaults to headers enabled, query disabled, and body disabled. Basic authentication follows the header setting. Disabling substitution does not make a placeholder inert: the placeholder is still blocked unless the request host matches allowPassthroughFor(). Violation actions are block, block-and-log, and block-and-terminate. The per-secret action overrides the sandbox-wide action. Passthrough is a host policy, not a violation action. See Secrets for CLI and YAML syntax.