feat(config): Key Vault-backed config reader with env override + TTL

↗ view on GitHub · Allen Morgan · 2026-05-08 · 7d5e48d6

Adds lib/config.ts with getConfig/setConfig/flushConfigCache. Lookup
order: env override → in-process TTL cache → live KV read via
DefaultAzureCredential. The env override keeps local dev unchanged and
covers the transition period while existing Container App env vars
secret-ref into KV. Cache TTL defaults to 5 minutes; setConfig
invalidates on write so /install doesn't have to wait for expiry.

Adds @azure/identity and @azure/keyvault-secrets as runtime deps. The
module is unused at this commit; subsequent commits wire it into the
install configurator and downstream features.
Repository Altien/mikeOssAzure
Author Allen Morgan <amorgan@altien.com>
Authored
Parents bfee639b
Stats 3 files changed , +612
Part of Azure Key Vault config reader

Capture this commit into my fork

Download a Markdown prompt that tells Claude how to port this exact commit into your working tree. Run it via claude -p < capture-commit-7d5e48d6.md from inside the repo you want the change in.

⬇ Download capture-commit-7d5e48d6.md