Skip to content

fix: tls is not added for profiles without tls#1089

Open
spkane31 wants to merge 1 commit into
mainfrom
spk/config-tls-bug
Open

fix: tls is not added for profiles without tls#1089
spkane31 wants to merge 1 commit into
mainfrom
spk/config-tls-bug

Conversation

@spkane31

Copy link
Copy Markdown
Contributor

Related issues

Closes #1077

What changed?

The helper to iterate over envConfigPropsToFieldNames has a side effect if the parent is nil and failIfParentNotFound=true it will set confProfile.TLS = &envconvfig.ClientConfigTLS{}. When the k=="tls" check happens, confProfile.TLS != nil and it will emit tls: true. Map iteration is non-deterministic and there are 9 tls.* keys vs 1 tls key so the mutation is more likely to happen before checking the tls key.

Checklist

Tests

  • Added unit test

@spkane31 spkane31 requested a review from a team as a code owner June 10, 2026 16:35
@spkane31 spkane31 requested review from chaptersix and tlalfano June 10, 2026 16:35
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.

config get shows tls true for profiles with no TLS configured

1 participant