Skip to content

Conversation

@jeanbisutti
Copy link
Member

@jeanbisutti jeanbisutti commented Feb 2, 2026

Fix #4214.

Using a base applicationinsights.json with ${file:...} across environments (e.g. dev, prod) cannot fall back to the env var in environments where the secret file isn't mounted.

The fix defers the file lookup using a Supplier<String>, so the file is only read when no env var or system property override is present.

@jeanbisutti jeanbisutti force-pushed the jean/connection-string-file-lookup-precedence branch from e2c1189 to a40616c Compare February 2, 2026 14:00
@jeanbisutti jeanbisutti merged commit 4551367 into main Feb 3, 2026
144 checks passed
@jeanbisutti jeanbisutti deleted the jean/connection-string-file-lookup-precedence branch February 3, 2026 08:46
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.

Connection string env variable does not take precedence over file defined connectionString

3 participants