Skip to content

fix: adjust node exporter tls to match what was default behavior in extension#8156

Merged
chmill-zz merged 7 commits into
mainfrom
exporterTls
Mar 24, 2026
Merged

fix: adjust node exporter tls to match what was default behavior in extension#8156
chmill-zz merged 7 commits into
mainfrom
exporterTls

Conversation

@chmill-zz

Copy link
Copy Markdown
Contributor

What this PR does / why we need it:

fitting into previously used behavior to make things work rather than make things right.

Which issue(s) this PR fixes:

Fixes #

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adjusts Linux node-exporter startup behavior so TLS is disabled by default (matching legacy VM extension behavior) and can be optionally enabled via /etc/default/node-exporter.

Changes:

  • Disable node-exporter TLS by default; add env-var driven opt-in (NODE_EXPORTER_TLS_ENABLED) and configurable client auth (NODE_EXPORTER_TLS_CLIENT_AUTH).
  • Simplify TLS cert selection logic to prefer the kubelet rotation cert when present, otherwise fall back to static certs.
  • Replace the baseline web-config.yml content with guidance comments since the startup script now generates it when TLS is enabled.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 3 comments.

File Description
parts/linux/cloud-init/artifacts/node-exporter/node-exporter-startup.sh Switches TLS to opt-in and generates exporter-toolkit web config only when enabled/certs found.
parts/linux/cloud-init/artifacts/node-exporter/baseline/etc/node-exporter.d/web-config.yml Removes default TLS config and replaces it with comments describing opt-in TLS behavior.

Copilot AI review requested due to automatic review settings March 24, 2026 00:54

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 3 out of 3 changed files in this pull request and generated 2 comments.

Comment thread e2e/validators.go
Copilot AI review requested due to automatic review settings March 24, 2026 03:31

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 3 out of 3 changed files in this pull request and generated 2 comments.

Comment thread e2e/validators.go Outdated
Comment thread e2e/validators.go Outdated
Copilot AI review requested due to automatic review settings March 24, 2026 06:23

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 3 out of 3 changed files in this pull request and generated 2 comments.

@chmill-zz chmill-zz merged commit 8fe25ef into main Mar 24, 2026
42 of 44 checks passed
@chmill-zz chmill-zz deleted the exporterTls branch March 24, 2026 21:10
cameronmeissner added a commit that referenced this pull request Mar 26, 2026
…behavior in extension (#8156) (#8181)

Co-authored-by: chmill-zz <17792380+chmill-zz@users.noreply.github.com>
r2k1 pushed a commit that referenced this pull request Apr 8, 2026
saewoni added a commit that referenced this pull request Apr 14, 2026
PR #8156 changed node-exporter to TLS-off by default, making
web-config.yml a comment-only placeholder. The old grep checks for
tls_server_config/client_auth_type/client_ca_file always fail on
current VHDs. This was already fixed on main but missed during rebase.
saewoni added a commit that referenced this pull request Apr 14, 2026
PR #8156 changed node-exporter to TLS-off by default, making
web-config.yml a comment-only placeholder. The old grep checks for
tls_server_config/client_auth_type/client_ca_file always fail on
current VHDs. This was already fixed on main but missed during rebase.
jingwenw15 pushed a commit that referenced this pull request Apr 19, 2026
PR #8156 changed node-exporter to TLS-off by default, making
web-config.yml a comment-only placeholder. The old grep checks for
tls_server_config/client_auth_type/client_ca_file always fail on
current VHDs. This was already fixed on main but missed during rebase.
jingwenw15 pushed a commit that referenced this pull request Apr 30, 2026
PR #8156 changed node-exporter to TLS-off by default, making
web-config.yml a comment-only placeholder. The old grep checks for
tls_server_config/client_auth_type/client_ca_file always fail on
current VHDs. This was already fixed on main but missed during rebase.
jingwenw15 pushed a commit that referenced this pull request May 2, 2026
PR #8156 changed node-exporter to TLS-off by default, making
web-config.yml a comment-only placeholder. The old grep checks for
tls_server_config/client_auth_type/client_ca_file always fail on
current VHDs. This was already fixed on main but missed during rebase.
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.

3 participants