Secret Sources

UXC supports two layers of non-OAuth auth values:

Primary Secret Sources

Templated Auth Values

For api_key credentials, auth headers and query params can use templates:

Examples

uxc auth credential set demo --secret sk-demo-token
uxc auth credential set demo --secret-env DEMO_TOKEN
uxc auth credential set demo --secret-op op://Engineering/demo/token
uxc auth credential set demo --auth-type api_key --api-key-header OK-ACCESS-KEY --secret-env OKX_ACCESS_KEY
uxc auth credential set binance --auth-type api_key --field api_key=env:BINANCE_API_KEY --field secret_key=env:BINANCE_SECRET_KEY
uxc auth credential set flipside --auth-type api_key --query-param "apiKey={{secret}}" --secret-env FLIPSIDE_API_KEY

Behavior Notes

1Password and Daemon Scope

When using --secret-op, resolution happens in the daemon execution path.

That means:

Related