Skip to content

feat(clustertool): unify cluster settings and SOPS secret filenames - #494

Merged
alfi0812 merged 17 commits into
trueforge-org:mainfrom
Boemeltrein:secret-file-names
Sep 19, 2026
Merged

alfi0812 merged 17 commits into
trueforge-org:mainfrom
Boemeltrein:secret-file-names

Conversation

@Boemeltrein

Copy link
Copy Markdown
Member

Description
Use clusters/<cluster>/secrets/cluster-settings.sops.yaml as the shared source for ClusterTool variables and Flux substitutions, replacing clusterenv.yaml and the generated settings ConfigMap.

Changes

  • Read bootstrap and Talos values from the Secret's stringData; apply the same Secret during bootstrap and reconcile it through flux-entry-secrets. Remove the old flux-system/flux templates.
  • Make repository reconciliation depend on secrets, and cluster reconciliation depend on secrets and repositories. Use Secret cluster-settings for substitutions. Render Cilium's cluster name during init.
  • Validate string values when loading settings and before encrypting plaintext settings. Numeric and boolean values must be quoted; encrypt does not run network or Talos validation.
  • Use deploy-key.sops.yaml and sops-age.sops.yaml for Flux credentials; retain talos/secrets.sops.yaml. Encrypt credentials before committing. The age-key Secret stays outside Kustomizations and is applied during Flux bootstrap; retain age.agekey separately for recovery.
  • Update SOPS and ignore templates, retaining encryption rules for legacy .secret.yaml, values files, clusterenv.yaml and talsecret.yaml.
  • Remove marker-based root/base file updates and redundant update functions. Init still copies missing files and fills the age-key placeholder; existing SOPS rules are no longer refreshed.
  • Replace RunBoundedCommand with RunCommandWithTimeout, returning stdout and stderr separately. Talos status checks parse stdout while displaying warnings, preserving timeouts and the insecure-maintenance guard.
  • Update command help and HOW_TO, normalize init key/Secret logging, and remove the redundant base-file message.

⚒️ Fixes #

⚙️ 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?

  • Earlier local init/generation/encryption round trips and Kustomize builds passed.
  • Current Linux test build and Kubeconform passed.
  • Tested on own cluster
  • 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 3c29258 into trueforge-org:main Sep 19, 2026
9 of 11 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