kasun
9b388ff8e2
chore(ci): scan full Git history for secrets
...
Deploy Proxmox Infra / Pulumi Deploy (pull_request) Skipped
Deploy k8s Infra / Pulumi Deploy (pull_request) Skipped
Deploy k8s Apps / Pulumi Deploy (pull_request) Skipped
Deploy Monitoring / Pulumi Deploy (pull_request) Skipped
Deploy Proxmox Infra / Pulumi Preview (pull_request) Successful in 53s
Deploy k8s Infra / Pulumi Preview (pull_request) Successful in 42s
Deploy k8s Apps / Pulumi Preview (pull_request) Successful in 38s
Deploy Monitoring / Pulumi Preview (pull_request) Successful in 38s
Secret Scan / Betterleaks (pull_request) Successful in 6s
Covers commits that never ran the local hook, such as edits made in the
Gitea web editor.
2026-11-23 00:12:57 +01:00
kasun
0d5f49591a
chore: block secrets in commits with a Betterleaks hook
...
The ignore file covers one old Gitea token in deleted .env.local, which
was confirmed revoked (API returned 401).
2026-11-23 00:12:55 +01:00
kasun
12400b4c83
chore(ci): deploy stacks only on their own workflow changes
...
Any file under .gitea/workflows triggered pulumi up on 03, 04 and 05, so
adding an unrelated workflow would deploy all three. PR previews still
watch the whole folder.
2026-11-23 00:12:53 +01:00
claude-bot Bot
05bec1a5ff
Merge pull request 'Chore: Upgrade pfSense provider bridge to 1.5.1' ( #54 ) from chore/upgrade-pfsense-provider-bridge into main
Deploy Proxmox Infra / Pulumi Deploy (push) Successful in 46s
Deploy Proxmox Infra / Pulumi Preview (push) Skipped
2026-11-22 20:02:15 +01:00
kasun
f6f74d9977
chore(proxmox-infra): upgrade pfSense provider bridge to 1.5.1
...
Deploy Proxmox Infra / Pulumi Deploy (pull_request) Skipped
Deploy Proxmox Infra / Pulumi Preview (pull_request) Successful in 50s
Pin the bridge and pfSense provider versions so local SDK generation
matches the deployed state. The regenerated SDK requires a newer
@pulumi/pulumi, which updates the lockfile.
2026-11-22 20:00:59 +01:00
claude-bot Bot
f2b8704914
Merge pull request 'Docs: Update deploy triggers for automatic Proxmox deploys' ( #53 ) from docs/update-deploy-triggers into main
2026-11-22 19:34:00 +01:00
kasun
be09d7592f
docs: update deploy triggers now that proxmox-infra deploys on merge
2026-11-22 19:31:45 +01:00
claude-bot Bot
abac1bf532
Merge pull request 'Chore: Add read-only CI wait to the Gitea helper' ( #52 ) from chore/add-ci-wait-command into main
2026-11-22 19:29:37 +01:00
kasun
282e1c5236
chore: add read-only CI wait to the Gitea helper
...
Polling CI with a shell loop triggered a permission prompt during /merge.
A dedicated WAIT command can be allowlisted on its own.
2026-11-22 19:27:04 +01:00
claude-bot Bot
339dcdd214
Merge pull request 'Enhancement: Deploy Proxmox infra automatically on merge' ( #51 ) from enhancement/auto-deploy-proxmox-infra into main
Deploy Proxmox Infra / Pulumi Preview (push) Skipped
Deploy k8s Infra / Pulumi Preview (push) Skipped
Deploy k8s Apps / Pulumi Preview (push) Skipped
Deploy Monitoring / Pulumi Preview (push) Skipped
Deploy Proxmox Infra / Pulumi Deploy (push) Successful in 1m46s
Deploy k8s Infra / Pulumi Deploy (push) Successful in 48s
Deploy Monitoring / Pulumi Deploy (push) Successful in 44s
Deploy k8s Apps / Pulumi Deploy (push) Successful in 38s
2026-11-22 19:21:35 +01:00
kasun
9b15ea5d33
enhancement(ci): deploy proxmox-infra on merge to main
...
Deploy Proxmox Infra / Pulumi Deploy (pull_request) Skipped
Deploy k8s Infra / Pulumi Deploy (pull_request) Skipped
Deploy k8s Apps / Pulumi Deploy (pull_request) Skipped
Deploy Monitoring / Pulumi Deploy (pull_request) Skipped
Deploy Proxmox Infra / Pulumi Preview (pull_request) Successful in 1m1s
Deploy k8s Infra / Pulumi Preview (pull_request) Successful in 54s
Deploy k8s Apps / Pulumi Preview (pull_request) Successful in 34s
Deploy Monitoring / Pulumi Preview (pull_request) Successful in 43s
Skip the refresh on automatic deploys. A refresh that finds a VM missing
drops it from state, and the following up would create a blank replacement.
2026-11-22 18:42:30 +01:00
kasun
344f748b84
enhancement(proxmox-infra): protect resources and stop update reboots
...
Prepare the stack for deploying on merge. Protect templates, DHCP mappings
and the Ansible container, and stop in-place updates from rebooting k3s VMs.
2026-11-22 18:42:30 +01:00
claude-bot Bot
84cf39e7d9
Merge pull request 'Chore: Add merge skill for the commit-to-merge workflow' ( #50 ) from chore/add-merge-skill into main
2026-11-22 18:29:07 +01:00
kasun
afc9fd36d7
chore: add merge skill for the commit-to-merge workflow
2026-11-22 18:26:42 +01:00
claude-bot Bot
3e6c8188da
Merge pull request 'Chore: Allow common read-only commands in Claude settings' ( #49 ) from chore/allow-readonly-commands into main
2026-11-22 18:26:28 +01:00
claude-bot Bot
4c3a2b4226
Merge pull request 'Feature: Add Ansible control node LXC' ( #48 ) from feature/add-ansible-control-node into main
2026-11-22 18:26:16 +01:00
kasun
c40fc0caac
chore: allow common read-only commands in Claude settings
2026-11-22 18:18:43 +01:00
kasun
49fd2ba307
feature(proxmox-infra): add Ansible control node LXC
...
Deploy Proxmox Infra / Pulumi Deploy (pull_request) Skipped
Deploy Proxmox Infra / Pulumi Preview (pull_request) Successful in 1m1s
Fix the container's MAC so its pfSense DHCP reservation exists before
first boot. Otherwise the first lease could come from the dynamic pool.
2026-11-22 18:08:02 +01:00
claude-bot Bot
85ce271fd6
Merge pull request 'Enhancement: Protect VM templates from deletion' ( #47 ) from enhancement/protect-vm-templates into main
2026-11-22 03:26:42 +01:00
kasun
7548402542
enhancement(proxmox-infra): protect VM templates from deletion
Deploy Proxmox Infra / Pulumi Deploy (pull_request) Skipped
Deploy Proxmox Infra / Pulumi Preview (pull_request) Successful in 1m7s
2026-11-22 03:25:16 +01:00
claude-bot Bot
9e0ce35712
Merge pull request 'Enhancement: Protect k3s VMs from accidental replacement' ( #46 ) from enhancement/protect-k3s-vms into main
2026-11-22 03:10:09 +01:00
kasun
c1e409780d
enhancement(proxmox-infra): protect k3s VMs from replacement
...
Deploy Proxmox Infra / Pulumi Deploy (pull_request) Skipped
Deploy Proxmox Infra / Pulumi Preview (pull_request) Successful in 1m0s
A stale state can make Pulumi plan new VMs for machines that already exist. Protection makes such an update fail instead of being applied.
2026-11-22 03:08:44 +01:00
claude-bot Bot
5a2d32ea84
Merge pull request 'Bug: Stop bootstrap from re-running k3s install on live nodes' ( #45 ) from bug/stop-bootstrap-reruns into main
2026-11-22 02:59:35 +01:00
kasun
e3fab0e151
bug(k8s-bootstrap): stop re-running install commands on live nodes
...
Deploy k8s Bootstrap / Bootstrap k3s Cluster (pull_request) Skipped
Deploy k8s Bootstrap / Pulumi Preview (pull_request) Successful in 40s
Bootstrap commands used VM IDs as triggers, so renumbering VMs would re-run the unpinned k3s installer on every node and append duplicate fstab entries. Treat them as run-once and re-run them explicitly after recreating a VM. Also start master-2 through pve-esprimo, where it now lives.
2026-11-22 02:58:30 +01:00
claude-bot Bot
a1867b18c8
Merge pull request 'Bug: Stop permanent disk speed diffs on k3s VMs' ( #43 ) from bug/ignore-disk-speed-diff into main
2026-11-22 02:27:45 +01:00
kasun
71b0f3ce7d
bug(proxmox-infra): ignore permanent disk speed diff
...
Deploy Proxmox Infra / Pulumi Deploy (pull_request) Skipped
Deploy Proxmox Infra / Pulumi Preview (pull_request) Successful in 1m2s
The Pulumi bridge applies the provider's internal default for the disk speed block, but Proxmox stores nothing when no limit is set, so every preview shows a change that can never settle. Ignore the field per disk because the wildcard form is reported not to work with this provider.
2026-11-22 02:25:59 +01:00
claude-bot Bot
d0600b9153
Merge pull request 'Chore: Let Claude Code commit, push and open PRs without a prompt' ( #40 ) from chore/allow-git-write-commands into main
2026-11-21 15:57:10 +01:00
kasun
7acf83e68d
chore: keep the permission prompt for merging PRs
2026-11-21 15:56:49 +01:00
kasun
088cb5add1
chore: allow Claude Code to commit, push and open PRs without a prompt
...
CLAUDE.md already requires an explicit request before committing or opening a PR, so the extra permission prompt only repeated that approval.
2026-11-21 15:54:45 +01:00
kasun
b04ab52fd2
Merge pull request 'Bug: Prevent Longhorn disks filling up after node outages' ( #39 ) from bug/longhorn-storage-exhaustion into main
...
Deploy k8s Infra / Pulumi Preview (push) Skipped
Deploy k8s Infra / Pulumi Deploy (push) Successful in 1m4s
Reviewed-on: #39
2026-11-21 15:52:36 +01:00
kasun
ff2b565677
bug(k8s-infra): prevent Longhorn disks filling up after node outages
...
Deploy k8s Infra / Pulumi Deploy (pull_request) Skipped
Deploy k8s Infra / Pulumi Preview (pull_request) Successful in 51s
Orphaned replica data and a large snapshot left no room for a second Prometheus replica, so the volume faulted when its only replica failed. Clean up orphans and system snapshots, trim volumes daily, and lower the free-space reserve to 10% because longhorn-extra is a dedicated disk. Align the UI default with the StorageClass at 3 replicas so volumes keep two copies during a node reboot.
2026-11-21 15:49:07 +01:00
claude-bot Bot
4b22f4ad11
Feature: Expose the Longhorn UI at longhorn.<domain> behind basic auth
Deploy k8s Infra / Pulumi Preview (push) Skipped
Deploy k8s Infra / Pulumi Deploy (push) Successful in 48s
2026-11-21 02:41:43 +01:00
kasun
020b277a04
feature(k8s-infra): expose the Longhorn UI behind Traefik basic auth
...
Deploy k8s Infra / Pulumi Deploy (pull_request) Skipped
Deploy k8s Infra / Pulumi Preview (pull_request) Successful in 47s
The Longhorn UI has no login of its own and can delete volumes, so it is only reachable through a Traefik basicAuth middleware. Credentials come from the new longhornUiUser/longhornUiPassword config secrets; the hostname uses the new domain config.
2026-11-21 02:26:44 +01:00
claude-bot Bot
ba53cbc465
Merge pull request 'Bug: Fail heimdall over to another worker within ~2 minutes of node loss' ( #37 ) from bug/heimdall-failover into main
Deploy k8s Apps / Pulumi Preview (push) Skipped
Deploy k8s Apps / Pulumi Deploy (push) Successful in 43s
2026-11-20 23:40:05 +01:00
kasun
b4d27c6546
bug(k8s-apps): fail heimdall over within ~30s of node loss
...
Deploy k8s Apps / Pulumi Deploy (pull_request) Skipped
Deploy k8s Apps / Pulumi Preview (pull_request) Successful in 47s
Default 300s not-ready/unreachable tolerations kept the pod bound to a dead node for ~5 min. Lower both to 30s, and switch to Recreate so a single-replica RWO pod never waits on a Multi-Attach during rollouts. Verified by stopping worker-2: pod running on worker-3 ~2 min later.
The existing Deployment's defaulted rollingUpdate block was removed once with kubectl patch so the API server accepts Recreate.
2026-11-20 23:37:37 +01:00
claude-bot Bot
481ff9e7ac
Merge pull request 'Chore: Overhaul Claude Code setup and join k3s nodes via the control-plane VIP' ( #35 ) from chore/overhaul-claude-code-setup into main
Deploy k8s Infra / Pulumi Preview (push) Skipped
Deploy k8s Apps / Pulumi Preview (push) Skipped
Deploy Monitoring / Pulumi Preview (push) Skipped
Deploy k8s Infra / Pulumi Deploy (push) Successful in 49s
Deploy k8s Apps / Pulumi Deploy (push) Successful in 46s
Deploy Monitoring / Pulumi Deploy (push) Successful in 46s
2026-11-20 22:14:58 +01:00
claude-bot Bot
5865c38ea7
Merge pull request 'Bug: Pin cert-manager to the deployed chart version' ( #36 ) from bug/pin-cert-manager into main
Deploy k8s Infra / Pulumi Preview (push) Skipped
Deploy k8s Infra / Pulumi Deploy (push) Successful in 47s
2026-11-20 22:06:11 +01:00
kasun
4f90febc89
bug(k8s-infra): pin cert-manager to the deployed chart version
...
Deploy k8s Infra / Pulumi Deploy (pull_request) Skipped
Deploy k8s Infra / Pulumi Preview (pull_request) Successful in 42s
Without a version every pulumi up installed the newest chart, so any merge touching 03-k8s-infra silently upgraded cert-manager. Pinned to v1.21.1, the version running in the cluster; upgrades now happen on purpose.
2026-11-20 22:04:01 +01:00
kasun
739e0ff111
docs: correct cluster size, Longhorn replicas and config keys in README
Deploy Proxmox Infra / Pulumi Deploy (pull_request) Skipped
Deploy k8s Bootstrap / Bootstrap k3s Cluster (pull_request) Skipped
Deploy k8s Infra / Pulumi Deploy (pull_request) Skipped
Deploy k8s Apps / Pulumi Deploy (pull_request) Skipped
Deploy Monitoring / Pulumi Deploy (pull_request) Skipped
Deploy Proxmox Infra / Pulumi Preview (pull_request) Successful in 2m15s
Deploy k8s Bootstrap / Pulumi Preview (pull_request) Successful in 37s
Deploy k8s Infra / Pulumi Preview (pull_request) Successful in 48s
Deploy k8s Apps / Pulumi Preview (pull_request) Successful in 39s
Deploy Monitoring / Pulumi Preview (pull_request) Successful in 39s
2026-11-20 21:48:24 +01:00
kasun
897813a916
docs: trim CLAUDE.md files to what the code doesn't show
...
Following the Claude Code memory docs: drop architecture lists, generic commands and CI details Claude can read from the code, keep the reasons behind decisions, and fix the outdated provider and pfSense SDK statements.
2026-11-20 21:48:20 +01:00
kasun
5cd50c31ff
chore: require approval for commits and guard the kubeconfig
...
Claude committed after a yes that was only meant for an edit, and once edited the local kubeconfig on its own. Commits now prompt, and kubeconfig/token edits are denied or prompt instead of relying on CLAUDE.md alone.
2026-11-20 21:48:14 +01:00
kasun
098c1c93c2
chore: add PR access, typecheck stop hook and commit-msg hook
...
Rules in CLAUDE.md can be forgotten; hooks can't. Reads are now free,
live changes still ask, and PRs go through the claude-bot account since
gh doesn't work with Gitea.
2026-11-20 21:21:40 +01:00
kasun
7c2a37abdb
docs: add live-infra rule and verification steps to CLAUDE.md
...
The guard hook only sees shell commands, so file edits to live systems
(like the local kubeconfig) need a written rule.
2026-11-20 20:06:11 +01:00
kasun
9a884acc22
chore: add stack-review and explain-diff skills
2026-10-03 00:17:14 +02:00
kasun
812d1ba1c5
docs: move setup runbooks and the control-plane VIP decision into docs
...
The pfSense and TrueNAS procedures are for people, so they no longer load as Claude context. The stack CLAUDE.md files keep only what the code cannot show.
2026-10-03 00:17:14 +02:00
kasun
c08f9df9af
chore: add typecheck script to every stack
...
Gives Claude and CI a pass/fail check that does not need the Pulumi backend.
2026-10-03 00:17:14 +02:00
kasun
dac1a98029
chore: add shared Claude Code permissions and live-infra guard hook
...
Live-infrastructure commands were pre-approved in a local allowlist. Deploys, cluster mutations and SSH now always prompt, and a PreToolUse hook catches the same commands when they are wrapped.
2026-10-03 00:17:14 +02:00
kasun
90c3d37e74
Merge pull request 'Feature/control plane vip via haproxy' ( #34 ) from feature/control-plane-vip-via-haproxy into main
2026-10-03 00:02:12 +02:00
kasun
19bf92d6bc
docs(k8s-bootstrap): document control-plane VIP and pfSense HAProxy setup
...
Deploy k8s Bootstrap / Bootstrap k3s Cluster (pull_request) Skipped
Deploy k8s Bootstrap / Pulumi Preview (pull_request) Successful in 40s
The VIP and HAProxy frontend/backend aren't exposed by the pfsense
provider, so they must be created by hand before this stack is deployed.
2026-10-02 23:52:32 +02:00
kasun
afac1f338f
feature(k8s-bootstrap): join nodes and export kubeconfig via control-plane VIP
...
Every join and the exported kubeconfig previously pointed at master1Ip,
so losing master-1 cut off API access even with etcd quorum intact. Use
controlPlaneVipAddress (a pfSense IP Alias fronted by HAProxy across all
three masters) instead, add it as a TLS SAN on master-1, and wait for
the VIP's /healthz before any other node joins.
The VIP is set up manually on pfSense rather than via a second
kube-vip/ARP VIP: API access is too critical to depend on the same
failover mechanism that serves LoadBalancer Services.
Also strips trailing whitespace from the Longhorn disk mount script.
2026-10-02 23:52:32 +02:00