Skip to content

fix(common): default SD_TLS_SKIP_VERIFY to false - #1755

Merged
guimoreirar merged 1 commit into
mainfrom
fix/lerian-common-sd-tls-skip-verify
Jul 28, 2026
Merged

fix(common): default SD_TLS_SKIP_VERIFY to false#1755
guimoreirar merged 1 commit into
mainfrom
fix/lerian-common-sd-tls-skip-verify

Conversation

@guimoreirar

Copy link
Copy Markdown
Member

What

Changes the serviceDiscovery helper default for SD_TLS_SKIP_VERIFY from true to false in charts/lerian-common/templates/_service_discovery.tpl, and bumps lerian-common-helm to 1.2.1.

Why

With | default true, any consumer that enables service-discovery TLS without explicitly overriding tlsSkipVerify gets SD_TLS_SKIP_VERIFY=true, silently disabling certificate verification (MITM risk). Worse, sprig's default treats an explicit false as empty, so even a consumer that sets tlsSkipVerify: false still rendered true.

Now verification is on by default; operators who intentionally skip it must set tlsSkipVerify: true explicitly.

Context

Split out of #1741 (midaz productization) per the repo policy of scoping lerian-common changes to their own PR. The midaz PR sets serviceDiscovery.tlsSkipVerify: false in its values; that becomes effective once this merges and #1741 rebases. midaz is currently the only consumer of serviceDiscovery.env (none on main), so the blast radius is limited.

Backward compatibility

Consumers already setting tlsSkipVerify: true are unaffected. Only the implicit default changes.

@guimoreirar
guimoreirar requested a review from a team as a code owner July 28, 2026 13:09
@coderabbitai

coderabbitai Bot commented Jul 28, 2026

Copy link
Copy Markdown

Review Change Stack

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: ASSERTIVE

Plan: Pro

Run ID: 5da34535-70bb-4279-9505-ebe65dafd69b

📥 Commits

Reviewing files that changed from the base of the PR and between ccbdd3e and bbef066.

📒 Files selected for processing (1)
  • charts/lerian-common/templates/_service_discovery.tpl

📝 Walkthrough

Walkthrough

The shared Helm service-discovery template now defaults SD_TLS_SKIP_VERIFY to false when global.serviceDiscovery.tlsSkipVerify is unset.

Changes

Service discovery default

Layer / File(s) Summary
Service discovery helper default
charts/lerian-common/templates/_service_discovery.tpl
The emitted SD_TLS_SKIP_VERIFY value now defaults to false when the global TLS setting is unset.

Possibly related PRs

✨ Finishing Touches
✨ Simplify code
  • Create PR with simplified code
  • Commit simplified code in branch fix/lerian-common-sd-tls-skip-verify

Comment @coderabbitai help to get the list of available commands.

@guimoreirar guimoreirar changed the title fix(lerian-common): default SD_TLS_SKIP_VERIFY to false fix(common): default SD_TLS_SKIP_VERIFY to false Jul 28, 2026
Enabling service-discovery TLS without an explicit override no longer
implicitly disables certificate verification (MITM risk). Operators that
intentionally skip verification must now set tlsSkipVerify: true.
@guimoreirar
guimoreirar force-pushed the fix/lerian-common-sd-tls-skip-verify branch from ccbdd3e to bbef066 Compare July 28, 2026 13:40
@guimoreirar
guimoreirar merged commit cdb9b21 into main Jul 28, 2026
4 checks passed
@guimoreirar
guimoreirar deleted the fix/lerian-common-sd-tls-skip-verify branch July 28, 2026 13:45
guimoreirar added a commit that referenced this pull request Jul 28, 2026
Main auto-bumped lerian-common-helm to 1.2.1 on the #1755 merge; update the
midaz lock so helm dependency build resolves the file:// dependency.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant