Skip to content

feat(sensitive): Glance shows the fullest disk, its own version, and reads GitHub with a token - #1796

Merged
Gerrrt merged 1 commit into
mainfrom
glance-disk-token-update
Nov 28, 2026
Merged

Gerrrt merged 1 commit into
mainfrom
glance-disk-token-update

Conversation

@Gerrrt

@Gerrrt Gerrrt commented Nov 28, 2026

Copy link
Copy Markdown
Owner

What changed

  • Home, Estate panel: a line under the figures for each host's fullest real disk, from Prometheus (node_filesystem_*, excluding tmpfs, overlay, fuse and NFS mounts). Below 70% it names only the fullest one. From 70% it lists every host at or above that, and from 90% it turns red. Those are the levels where HostDiskFillingUp and HostDiskCritical can fire.
  • Maintenance, new Glance card: the image tag cAdvisor reports for sensitive-glance on trinity, compared with GitHub's latest glanceapp/glance release, with a link to the release notes when trinity is behind.
  • Maintenance, releases list: now sends GLANCE_GITHUB_TOKEN, as the Glance card does.
  • GLANCE_GITHUB_TOKEN: a fine-grained token for public repositories with no permissions. It is wired the same way as the other Glance secrets: compose.yaml, render-config.sh, seed-validation-env.sh, sensitive.example.yaml with the steps to create one, the runbook's table, and the stack README. The encrypted value is in secrets/sensitive.sops.yaml.
  • docs/security.md: the Glance bullet said it held two credentials, but it holds six. It now names each one and what it can read, and the list of hosts Glance fetches from adds Google Sheets and the podcasts' own feeds.

Why

  • Without a token, GitHub allows 60 requests an hour for the whole house's address, and the releases list alone makes 32 every six hours. A test render today got 403 for that reason. With the token, GitHub allows 5,000 an hour.
  • A full root disk on eden once stopped work. Home now names the fullest disk without needing a click.

Blast radius

The Glance container on trinity only: two page files and one environment variable. compose.yaml requires GLANCE_GITHUB_TOKEN, so make up STACK=sensitive refuses to run without it; it is in SOPS in this PR. When the token expires, both GitHub widgets say "GitHub answered 401", and nothing else is affected.

Verification

  • python3 scripts/check_docs.py passes. ./scripts/lint.sh passes, with 11 tools skipped locally because Docker isn't available there; CI runs them.
  • Rendered both pages in a throwaway Glance on trinity, using the same image, network and CA as the live container:
    • Home's Estate panel shows "Fullest disk: prometheus 46%".
    • The Glance card read the running version from Prometheus. GitHub refused it 401 with an empty token, and 403 anonymously because the hour's 60 requests were used up. The case where the token works is checked after the deploy.
  • Confirmed the token is in SOPS without printing it, and the setter script checked it against GitHub's rate-limit endpoint before saving it.

🤖 Generated with Claude Code

…reads GitHub with a token

Home's Estate panel names each host's fullest real disk, red from 90%.
Maintenance gains a Glance card comparing the running image with the latest
release, and both GitHub widgets send a no-permission token, so they no
longer share the house's anonymous 60 requests an hour.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@Gerrrt
Gerrrt enabled auto-merge (squash) November 28, 2026 05:17
@Gerrrt
Gerrrt merged commit bb57ef7 into main Nov 28, 2026
9 checks passed
@Gerrrt
Gerrrt deleted the glance-disk-token-update branch November 28, 2026 05:31
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