Atlas-compatible output and redaction
Template data shapes and credential redaction rules for ptah-compat format output.
Edge documents the current development build and may describe unreleased behavior. To use those commands, build Ptah from master. For an installed release, select its version in the header.
Atlas-compatible --format output uses the Atlas data shape expected by
existing templates. Each command page lists the fields its own report exposes;
this page owns the shared URL and redaction behavior.
URL values
Section titled “URL values”A URL rendered directly in a Go template is a redacted string:
{{ .Env.URL }}{{ json . }} emits an Atlas-shaped URL object with these fields where they
apply:
Scheme, User, Host, Path, RawQuery, Fragment, RawPath,RawFragment, ForceQuery, OmitHost, SchemaSchema is present for SQLite URLs.
Redaction
Section titled “Redaction”Ptah removes URL userinfo passwords. Query parameters whose keys look like
passwords, tokens, secrets, or API keys are replaced with xxxxx before the URL
reaches template output, and so is a password of five characters or more in
any other part that repeats it, such as the database name, the port or the
user. The URL keeps its fields: with the password 46741 and the port
46741, {{ .Env.URL.Host }} prints 127.0.0.1:xxxxx.
Redaction protects the recognized URL fields. A template can still print any other data the command intentionally exposes, so review custom formats before using them in shared CI logs.