Skip to content

feat(clustertool): honor SOPS stores and mac_only_encrypted settings - #492

Merged
alfi0812 merged 4 commits into
trueforge-org:mainfrom
Boemeltrein:sops-config-options
Sep 19, 2026
Merged

alfi0812 merged 4 commits into
trueforge-org:mainfrom
Boemeltrein:sops-config-options

Conversation

@Boemeltrein

Copy link
Copy Markdown
Member

Description

ClusterTool previously ignored stores and mac_only_encrypted in .sops.yaml. Apply store settings during encryption and plaintext output after verified decryption, preserving SOPS defaults when omitted. Use mac_only_encrypted from the first matching creation rule.

Existing encrypted files must be decrypted and encrypted again to change their MAC setting.

Validation: go test ./... and test builds passed on Linux and Windows with Go 1.26.5. Tests cover default and two-space YAML indentation, encryption/decryption roundtrips, MAC settings, rule selection, and rejection of modified ciphertext.

⚙️ Type of change

  • 🆕 New feature (e.g., bootstrap, cluster config, or automation)
  • 🐛 Bugfix (e.g., node setup, config generation)
  • 🔃 Chart Updates/Changes included with clustertool
  • 🔃 Refactor (internal changes, no functional impact)
  • ⚠️ Breaking change (changes Talos cluster behavior)

🧪 How Has This Been Tested?

  • Run clustertool commands locally
  • Verified cluster bootstrap on Talos nodes
  • Checked generated configs are valid
  • Validated cluster state after changes

📃 Notes:

✔️ Checklist:

  • ⚖️ Followed project style and contribution guidelines
  • 👀 Self-reviewed my changes
  • 🧪 Documented testing steps
  • 🏷️ PR title follows convention:
    • feat(clustertool):
    • fix(clustertool):
    • chore(clustertool):

Please don't blindly check all the boxes. Read them and only check those that apply.
Those checkboxes are there for the reviewer to see what is this all about and
the status of this PR with a quick glance.

@alfi0812
alfi0812 merged commit 1281fce into trueforge-org:main Sep 19, 2026
14 of 17 checks passed
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.

1 participant