Skip to main content

The field selector

Most vaults store structured secrets. Given prod/db holding:
sec://aws/prod/db#password returns only S3cur3-P@ss. Omit the #field and you get the whole JSON string. Nested fields use dot notation: sec://aws/prod/db#creds.primary.password.

Where references can go

Anywhere a string lives:
.env
That last property matters more than it looks: you can accept both forms at the same call site and move consumers over one at a time, rather than needing a flag day.

Strict mode

By default, a reference that cannot be resolved throws. It does not silently become undefined and let your app boot half-configured, which is how a missing secret turns into a confusing failure three layers away.
Strict mode only affects malformed references. An unknown provider or a failed fetch always surfaces as an error regardless.