infra/.claude/skills/archived
Viktor Barzin 82b7866bc9 [claude-agent-service] Remove orphaned DevVM SSH key wiring
## Context

The remote-executor pattern that SSHed into the DevVM (10.0.10.10) to run
`claude -p` was fully migrated to the in-cluster service
`claude-agent-service.claude-agent.svc:8080/execute` in commits 42f1c3cf and
99180bec (2026-04-18). Five parallel codebase audits (GH Actions, Woodpecker
+ scripts, K8s CronJobs/Deployments, n8n, local scripts/hooks/docs) confirmed
zero remaining SSH+claude sites.

This commit removes two cleanup artifacts left behind by that migration.

## This change

1. Deletes `.claude/skills/archived/setup-remote-executor.md` — the archived
   skill doc for the obsolete SSH-based pattern. Already in `archived/`,
   harmless but noise; deleting prevents anyone copy-pasting the old approach.

2. Removes `kubernetes_secret.ssh_key` from
   `stacks/claude-agent-service/main.tf`. The Secret was created from the
   `devvm_ssh_key` field at Vault `secret/ci/infra` but was never mounted
   into the agent pod. The pod's `git-init` init container uses HTTPS +
   `$GITHUB_TOKEN` exclusively and force-rewrites every `git@github.com:`
   and `https://github.com/` URL via `git config url.insteadOf`, so no
   downstream `git` invocation could fall through to SSH even if it tried.

3. Removes the now-orphaned `data "vault_kv_secret_v2" "ci_secrets"` block —
   the SSH key resource was its only consumer.

## What is NOT in this change

- The `devvm_ssh_key` field at Vault `secret/ci/infra` stays in place.
  Removing it requires read/modify/put of the full secret and the upside
  is one unused Vault key. Not worth it without strong justification.
- DevVM host decommission is out of scope (separate audit needed for
  non-Claude users of the host).
- Pre-existing `terraform fmt` warnings at lines 464-505 (CronJob alignment)
  left untouched per no-adjacent-refactor rule.

## Test plan

### Automated

- `terraform fmt -check stacks/claude-agent-service/main.tf` — only the
  pre-existing lines 464-505 are flagged; no new fmt warnings introduced
  by these deletions.

### Manual verification

1. `cd infra/stacks/claude-agent-service && ../../scripts/tg apply`
2. Expect exactly one resource destroyed: `kubernetes_secret.ssh_key`.
   The `ci_secrets` data source removal is plan-time only; does not appear
   in resource counts.
3. `kubectl -n claude-agent get secret ssh-key` → `NotFound`.
4. `kubectl -n claude-agent get pod` → both pods Running, no restart events.
5. Submit a synthetic agent job via HTTP API to confirm pipeline still works:
   curl -X POST http://claude-agent-service.claude-agent.svc.cluster.local:8080/execute
   with a minimal prompt; expect job completes with `exit_code=0`.

Closes: code-bck

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-04-18 13:31:15 +00:00
..
authentik authentik: cleanup unused resources + add invitation enrollment flow [ci skip] 2026-03-13 22:21:10 +00:00
authentik-oidc-kubernetes [ci skip] archive 28 unused skills, add runbook index to CLAUDE.md, add cluster-health agent 2026-03-06 23:17:40 +00:00
bluestacks-burp-interception [ci skip] archive 28 unused skills, add runbook index to CLAUDE.md, add cluster-health agent 2026-03-06 23:17:40 +00:00
clickhouse-k8s-nfs-system-log-bloat [ci skip] archive 28 unused skills, add runbook index to CLAUDE.md, add cluster-health agent 2026-03-06 23:17:40 +00:00
coturn-k8s-without-hostnetwork [ci skip] archive 28 unused skills, add runbook index to CLAUDE.md, add cluster-health agent 2026-03-06 23:17:40 +00:00
crowdsec-agent-registration-failure [ci skip] archive 28 unused skills, add runbook index to CLAUDE.md, add cluster-health agent 2026-03-06 23:17:40 +00:00
fastapi-svelte-gpu-webui [ci skip] archive 28 unused skills, add runbook index to CLAUDE.md, add cluster-health agent 2026-03-06 23:17:40 +00:00
grafana-stale-datasource-cleanup [ci skip] archive 28 unused skills, add runbook index to CLAUDE.md, add cluster-health agent 2026-03-06 23:17:40 +00:00
helm-release-troubleshooting [ci skip] archive 28 unused skills, add runbook index to CLAUDE.md, add cluster-health agent 2026-03-06 23:17:40 +00:00
ingress-factory-migration [ci skip] archive 28 unused skills, add runbook index to CLAUDE.md, add cluster-health agent 2026-03-06 23:17:40 +00:00
iterative-plan-review-with-subagents [ci skip] claudeception: extract 2 skills from today's session 2026-03-07 15:46:36 +00:00
k8s-container-image-caching [ci skip] archive 28 unused skills, add runbook index to CLAUDE.md, add cluster-health agent 2026-03-06 23:17:40 +00:00
k8s-gpu-no-nvidia-devices [ci skip] archive 28 unused skills, add runbook index to CLAUDE.md, add cluster-health agent 2026-03-06 23:17:40 +00:00
k8s-hpa-scaling-storm [ci skip] archive 28 unused skills, add runbook index to CLAUDE.md, add cluster-health agent 2026-03-06 23:17:40 +00:00
k8s-nfs-mount-troubleshooting [ci skip] archive 28 unused skills, add runbook index to CLAUDE.md, add cluster-health agent 2026-03-06 23:17:40 +00:00
kubelet-static-pod-manifest-update [ci skip] archive 28 unused skills, add runbook index to CLAUDE.md, add cluster-health agent 2026-03-06 23:17:40 +00:00
local-llm-gpu-selection [ci skip] archive 28 unused skills, add runbook index to CLAUDE.md, add cluster-health agent 2026-03-06 23:17:40 +00:00
loki-helm-deployment-pitfalls [ci skip] archive 28 unused skills, add runbook index to CLAUDE.md, add cluster-health agent 2026-03-06 23:17:40 +00:00
music-assistant-librespot-wrong-account [ci skip] archive 28 unused skills, add runbook index to CLAUDE.md, add cluster-health agent 2026-03-06 23:17:40 +00:00
nextcloud-calendar [ci skip] archive 28 unused skills, add runbook index to CLAUDE.md, add cluster-health agent 2026-03-06 23:17:40 +00:00
nfsv4-idmapd-uid-mapping [ci skip] archive 28 unused skills, add runbook index to CLAUDE.md, add cluster-health agent 2026-03-06 23:17:40 +00:00
openclaw-k8s-deployment [ci skip] archive 28 unused skills, add runbook index to CLAUDE.md, add cluster-health agent 2026-03-06 23:17:40 +00:00
pfsense-dnsmasq-interface-binding [ci skip] archive 28 unused skills, add runbook index to CLAUDE.md, add cluster-health agent 2026-03-06 23:17:40 +00:00
pfsense-nat-rule-creation [ci skip] archive 28 unused skills, add runbook index to CLAUDE.md, add cluster-health agent 2026-03-06 23:17:40 +00:00
proxmox-vm-disk-expansion-pitfalls [ci skip] archive 28 unused skills, add runbook index to CLAUDE.md, add cluster-health agent 2026-03-06 23:17:40 +00:00
python-filename-sanitization [ci skip] archive 28 unused skills, add runbook index to CLAUDE.md, add cluster-health agent 2026-03-06 23:17:40 +00:00
sops-age-secrets-migration [ci skip] claudeception: extract 2 skills from today's session 2026-03-07 15:46:36 +00:00
terraform-state-identity-mismatch [ci skip] archive 28 unused skills, add runbook index to CLAUDE.md, add cluster-health agent 2026-03-06 23:17:40 +00:00
traefik-helm-configuration [ci skip] archive 28 unused skills, add runbook index to CLAUDE.md, add cluster-health agent 2026-03-06 23:17:40 +00:00
traefik-rewrite-body-troubleshooting [ci skip] archive 28 unused skills, add runbook index to CLAUDE.md, add cluster-health agent 2026-03-06 23:17:40 +00:00