Skip to content

Configuration additions#170

Closed
MDerman wants to merge 5 commits into
masterfrom
ConfigurationAdditions
Closed

Configuration additions#170
MDerman wants to merge 5 commits into
masterfrom
ConfigurationAdditions

Conversation

@MDerman
Copy link
Copy Markdown
Collaborator

@MDerman MDerman commented May 20, 2026

Add shared host configuration conventions

Summary

Adds Odin.Configuration.Hosting, giving Soulv hosts one standard way to load configuration: app settings, host-specific extras, user secrets, environment variables, then Azure Key Vault last.

Why

Hosts need consistent startup config and Key Vault behavior. Centralizing this reduces duplicate setup and makes local/dev vs deployed credential behavior explicit.

What changed

  • Added AddHostConfiguration(...) and AddKeyVaultConfiguration(...).
  • Added options for appSettings location, extra sources, user secrets, env vars, Key Vault section, local environments, and default secret prefix derivation.
  • Supports Key Vault auth via configured client secret, env client secret, or user-assigned managed identity.
  • Tightened prefixed Key Vault helper: required/trimmed prefix, ordinal prefix matching, HTTPS-only vault URIs, no path/query in vault URI.
  • Added tests covering source precedence, Key Vault skip/error paths, credential selection, prefix derivation, URI validation, and prefix matching.

Main files

@MDerman MDerman requested a review from MarkDerman as a code owner May 20, 2026 08:20
@MarkDerman MarkDerman closed this May 20, 2026
@MarkDerman MarkDerman deleted the ConfigurationAdditions branch May 20, 2026 19:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants