Skip to content

fix(config): keep config fingerprints stable when exporter_firewall is unset - #85

Merged
entelecheia merged 2 commits into
mainfrom
fix/fingerprint-omitempty
Oct 20, 2026
Merged

entelecheia merged 2 commits into
mainfrom
fix/fingerprint-omitempty

Conversation

@entelecheia

Copy link
Copy Markdown
Member

Problem

v0.18.0 added modules.monitoring.exporter_firewall without omitempty. The fingerprint hashes the YAML encoding of the effective config, so every host now encodes exporter_firewall: false and no longer matches the fingerprint its last apply recorded. rootfiles fleet update --all --version v0.18.0 stopped at a100: "remote config fingerprint is missing; inventory configuration is unverified".

Fix

  • omitempty on the key, so configs that do not set it encode as before.
  • TestFingerprintStableAcrossReleases pins the fingerprint of a minimal config to the value v0.17.1 computes; it fails without the fix.
  • Release notes v0.18.1.

Verification

  • With the fix, fleet/a100.yaml fingerprints to 49cc1f52..., the value in a100's /var/lib/rootfiles/state.json.
  • go test ./... passes.

Rollout follow-up for #83.

🤖 Generated with Claude Code

https://claude.ai/code/session_0177Zk7to4EYohgM59v4Fcj7

…s unset

The new exporter_firewall key was encoded without omitempty, so every
host's effective config gained "exporter_firewall: false" and no longer
matched the fingerprint recorded by its last apply. fleet update then
stopped at the first host as unverified. Pin the fingerprint of a minimal
config so a future key cannot change it unnoticed.

Claude-Session: https://claude.ai/code/session_0177Zk7to4EYohgM59v4Fcj7
Copilot AI balanced review requested due to automatic review settings October 20, 2026 12:36

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 20, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-20T12:38:50.375732Z c33bf8b PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: c33bf8b1b6

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread internal/config/config.go
@entelecheia
entelecheia merged commit 7a641b8 into main Oct 20, 2026
56 checks passed
@entelecheia
entelecheia deleted the fix/fingerprint-omitempty branch October 20, 2026 13:25
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