Skip to content

setup-secrets: Cluster sources and destinations through shared's helpers - #31

Merged
andsens merged 1 commit into
mainfrom
setup-secrets-groups
Nov 19, 2026
Merged

andsens merged 1 commit into
mainfrom
setup-secrets-groups

Conversation

@andsens

@andsens andsens commented Nov 19, 2026

Copy link
Copy Markdown
Collaborator

Needs nixos-homelab/shared#37 and andsens/nixos-setup-secrets#14. shared and setup-secrets are locked to those branches (and homelab-monitoring to current main, which current shared needs); relock to main before merging.

The destinations that write Kubernetes Secrets move to kubeSecretDestination/clusterDestination, so they're in the setup-secrets group cluster, which runs after k3s and retries while it and the workloads come up. Sources that read a Secret use kubeSecretSource (with generate where a value was generated before; now only when the Secret or field is missing, never when the API fails). API keys read from a workload use kubeExecSource, which waits for the rollout. The credstore-backed ones stay in the host group.

sabnzbd keeps running the host gnugrep inside the container, as before; cut runs on the host.

Checked: nix flake check passes locally (VM tests included where the repo has them).

🤖 Generated with Claude Code

The destinations that write Kubernetes Secrets are now in the setup-secrets group cluster, which runs after every start of k3s, and retry while k3s and the workloads come up. Sources that read a Secret, or generate a value when it is missing, use kubeSecretSource; the API keys read from the workloads use kubeExecSource, which waits for the rollout first. A generated value is made only when the Secret or its field is missing, never because the API didn't answer.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@andsens
andsens force-pushed the setup-secrets-groups branch from 7e205c8 to 00d5e8e Compare November 19, 2026 21:57
@andsens
andsens enabled auto-merge (squash) November 19, 2026 21:57
@andsens
andsens merged commit 552be38 into main Nov 19, 2026
2 checks passed
@andsens
andsens deleted the setup-secrets-groups branch November 19, 2026 21:58
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