"config show" prints a list as one value, and redaction only looked at
the leaf's own key, so the password of every entry of a list (yamocir's
bootstrap.admins) was printed in clear. The same rule now applies inside
lists and maps of a leaf: a field is secret by its default name or by a
Spec.SecretKeys key without the list index ("admins.password").
References (env:, file:, secret://) stay visible as before.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
"config show" redacted only keys whose last segment is secrets, secret,
token or password. A program's own secrets (database.url,
oidc.client_secret, smtp.url, ...) were printed, so programs disabled
show. Spec.SecretKeys names them as dotted keys (a key covers everything
below it); Effective carries them to Values and Show. First consumer:
yaemp and yaemp-mcp.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The generic part of yamase-core/pkg/configfile (yamase ADR-0074): per
tier a program merges the family file's top level, its section of the
family file and its own <program>.yaml, then --config. Includes
unknown-option rules for shared files, the config command on top of
configcmd.Layered with "create --shared", and doctor/logging helpers.
yaiam is the first user; yamase can move onto it later.
configcmd: a layered Optional program without any file now validates
its defaults and passes doctor instead of failing, as the single-file
path already did.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
"config show [--json] [--show-secrets]" prints the configuration with
the origin of every value (secrets redacted), for every program.
Spec.Layered lets a program whose configuration is merged from several
inputs (family file, a section of it, its own file -- the yamase
family) run path, validate and show over all layers, with its own
unknown-option rules; unknown options are warnings there. Doctor(report,
spec, explicit) is the config part of a doctor command. UnknownKey
carries the layer it is in; KnownKey tells whether a dotted key is an
option of a config struct.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
core/configcmd: "<program> config create|validate|upgrade|path" from a
Spec (name, application, minimal/full templates, Validate, Schema),
taken over from yamase-core/pkg/configcmd and generalized: Filename,
Optional (programs that run on defaults) and None (no configuration).
core/version: "<program> version [--json]" over the values each
program stamps into its internal/version; JSON keys match yasta's
existing output (yavebu reads it), VCS fallback for unstamped builds.
paths: macOS CLI/Service system-scope RuntimeDir is /var/run/<app>
instead of /run/<app>, which macOS does not have.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>