Skip to content

docs(sensitive): edit secrets from a worktree, not trinity's deploy checkout - #1821

Merged
Gerrrt merged 2 commits into
mainfrom
gerrrt/secrets-edit-from-a-worktree
Nov 29, 2026
Merged

Gerrrt merged 2 commits into
mainfrom
gerrrt/secrets-edit-from-a-worktree

Conversation

@Gerrrt

@Gerrrt Gerrrt commented Nov 29, 2026

Copy link
Copy Markdown
Owner

What changed

Docs only. Nothing in the running lab changes. The The tree is dirty section of docs/runbooks/converge-the-host.md now covers the usual case on trinity: secrets/sensitive.sops.yaml with an edit still waiting for its pull request. It shows how to run make secrets-edit from a git worktree instead. stacks/sensitive/README.md gets the same advice in a sentence where it introduces the secrets file. docs/changelog.md records the two refusals.

Why

ScheduledJobFailed{homelab_job="converge-sensitive", instance="trinity"} fired at about 05:26 UTC on 2026-11-27 and 05:30 on 2026-11-28. Both times the error was "the deployment checkout has uncommitted changes", and the only changed file was secrets/sensitive.sops.yaml. The reflog shows Glance secrets edits made in ~/code/Gerrrt/HomeLab that went out as #1779 and #1796. Each run cleared the next hour, after the merge and a pull. Editing from a worktree keeps the deployment checkout clean while the pull request is open, so the alert doesn't fire.

Blast radius

None. These are three Markdown files, and no config, rule or script changes.

  • No change to network segmentation or firewall rules
  • No new port published to a VLAN that could not already reach the service
  • No credential added outside secrets/*.sops.yaml

Verification

  • On trinity, sops -d of the deployment checkout's secrets/sensitive.sops.yaml with /tmp as the working directory succeeded, with output discarded. The age key is per user, so make secrets-edit works from a worktree. I did not do an actual edit from a worktree.

  • python scripts/check_docs.py: docs OK.

  • ./scripts/lint.sh in a throwaway --depth 1 clone of this branch on prometheus (removed afterwards): lint passed, nothing skipped.

  • make validate passes (not run; docs only, so CLAUDE.md's minimum is the two checks above)

  • Deployed to the lab and confirmed working (nothing to deploy)

  • Docs updated (docs/, service README, or docs/roadmap.md)

🤖 Generated with Claude Code

…heckout

converge-sensitive refused on 2026-11-27 and 2026-11-28 at about 05:30 UTC
because secrets/sensitive.sops.yaml was mid-edit in the deployment checkout,
and ScheduledJobFailed fired each time. Say how to run make secrets-edit
from a worktree instead, in the converge runbook and the stack README.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@Gerrrt
Gerrrt enabled auto-merge (squash) November 29, 2026 02:11
…rom-a-worktree

# Conflicts:
#	docs/changelog.md
@Gerrrt
Gerrrt merged commit e8d37d7 into main Nov 29, 2026
9 checks passed
@Gerrrt
Gerrrt deleted the gerrrt/secrets-edit-from-a-worktree branch November 29, 2026 02:29
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