Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion docs/runbooks/build-the-sensitive-tier-host.md
Original file line number Diff line number Diff line change
Expand Up @@ -409,7 +409,7 @@ what each key is for. The values:
| `GLANCE_PROMETHEUS_TOKEN` | The estate's reader token, `INGEST_TOKEN_READER` in `secrets/observability.sops.yaml` | No. `secrets/observability.sops.yaml` holds the original |
| `GLANCE_MINIFLUX_FEVER_KEY` | The MD5 of `glance:<fever password>`, once Miniflux is up and its user `glance` exists — the steps are beside the key in the example file ([ADR-0098](../adr/0098-add-glance-as-the-operators-start-page-beside-homepage.md)) | The Fever password and the `glance` login, both generated |
| `GLANCE_TSP_SHEET_ID`, `GLANCE_GOOGLE_API_KEY` | The link-shared sheet of TSP prices and a Google API key restricted to the Sheets API, for the TSP widget on Sports & Markets — the steps are beside them in the example file | The key is in the operator's Google Cloud project; the sheet in their Drive |
| `GLANCE_MARKETS`, `GLANCE_BOOKMARKS`, `GLANCE_VIDEO_TABS`, `GLANCE_REDDIT_TABS`, `GLANCE_TEAMS` | The operator's own lists, one line of JSON each, in the shape `secrets/sensitive.example.yaml` gives ([ADR-0100](../adr/0100-grow-glance-into-a-homelab-page-and-keep-the-operators-lists-in-sops.md)). Not credentials | No |
| `GLANCE_MARKETS`, `GLANCE_BOOKMARKS`, `GLANCE_VIDEO_TABS`, `GLANCE_REDDIT_TABS`, `GLANCE_TEAMS`, `GLANCE_PODCASTS` | The operator's own lists, one line of JSON each, in the shape `secrets/sensitive.example.yaml` gives ([ADR-0100](../adr/0100-grow-glance-into-a-homelab-page-and-keep-the-operators-lists-in-sops.md)). Not credentials | No |
| `NTFY_ALERTMANAGER_TOKEN` | the pinned image's `ntfy token generate` — the command is beside the key | No. The monitoring host's `ALERTMANAGER_NTFY_TOKEN` is the other copy |
| `NTFY_ALERTMANAGER_PASSWORD_HASH` | `make gen-secret`, then `make hash-password` on it | No — the password is thrown away; this user logs in by token |
| `NTFY_PHONE_PASSWORD_HASH` | `make hash-password` | **The password** — each phone's ntfy app logs in with it |
Expand Down
3 changes: 2 additions & 1 deletion scripts/render-config.sh
Original file line number Diff line number Diff line change
Expand Up @@ -599,6 +599,7 @@ COMPOSE_VARS=(
GLANCE_VIDEO_TABS
GLANCE_REDDIT_TABS
GLANCE_TEAMS
GLANCE_PODCASTS
NTFY_ALERTMANAGER_PASSWORD_HASH
NTFY_PHONE_PASSWORD_HASH
NTFY_ALERTMANAGER_TOKEN
Expand Down Expand Up @@ -705,7 +706,7 @@ chmod 600 "${ENV_FILE}"
for var in "${COMPOSE_VARS[@]}"; do
[[ -n "${!var:-}" ]] || continue
case "${var}" in
GLANCE_MARKETS | GLANCE_BOOKMARKS | GLANCE_VIDEO_TABS | GLANCE_REDDIT_TABS | GLANCE_TEAMS)
GLANCE_MARKETS | GLANCE_BOOKMARKS | GLANCE_VIDEO_TABS | GLANCE_REDDIT_TABS | GLANCE_TEAMS | GLANCE_PODCASTS)
[[ "${!var}" != *"'"* ]] \
|| die "${var} contains a single quote, which its .env line cannot carry — remove it in SOPS"
printf "%s='%s'\n" "${var}" "${!var}"
Expand Down
3 changes: 2 additions & 1 deletion scripts/seed-validation-env.sh
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,8 @@ STACK="${REPO_ROOT}/stacks/${2:-observability}"
echo "GLANCE_BOOKMARKS='[{\"title\":\"Example #1\",\"links\":[{\"title\":\"Example\",\"url\":\"https://example.com\"}]}]'"
echo "GLANCE_VIDEO_TABS='[{\"type\":\"videos\",\"title\":\"Example\",\"channels\":[\"UCR-DXc1voovS8nhAvccRZhg\"]}]'"
echo "GLANCE_REDDIT_TABS='[{\"type\":\"reddit\",\"subreddit\":\"homelab\"}]'"
echo "GLANCE_TEAMS='[{\"name\":\"Example\",\"path\":\"football/nfl\",\"id\":\"sea\"}]'"
echo "GLANCE_TEAMS='[{\"name\":\"Example\",\"path\":\"football/nfl\",\"id\":\"sea\",\"standings\":\"football/nfl\",\"level\":3}]'"
echo "GLANCE_PODCASTS='[{\"url\":\"https://example.com/feed.xml\",\"title\":\"Example\",\"limit\":3}]'"
# ntfy validates these at start and exits on a malformed one, so a boot of
# it (check_hardened_boot.sh) needs them well-formed: a real bcrypt hash —
# of the string "validation-only", from the pinned image's `ntfy user
Expand Down
11 changes: 9 additions & 2 deletions secrets/sensitive.example.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -340,12 +340,19 @@ GLANCE_GOOGLE_API_KEY: change-me-to-a-key-restricted-to-the-sheets-api
# sport/league (basketball/nba, baseball/mlb,
# hockey/nhl, football/college-football, …; any soccer
# team is soccer/all) and id its team id or
# abbreviation, from the team's espn.com URL.
# abbreviation, from the team's espn.com URL. Add
# "standings" (ESPN's sport/league for its table, e.g.
# soccer/eng.1 for a Premier League club) to show the
# table it sits in; "level":3 picks divisions.
# GLANCE_PODCASTS the Read page's Listen list, one feed per show:
# [{"url":"https://…/feed.xml","title":"Show",
# "limit":3}]. limit caps that show's episodes.
GLANCE_MARKETS: '[{"symbol":"SPY","name":"S&P 500"}]'
GLANCE_BOOKMARKS: '[{"title":"Daily","links":[{"title":"Gmail","url":"https://mail.google.com"}]}]'
GLANCE_VIDEO_TABS: '[{"type":"videos","title":"Homelab","channels":["UCR-DXc1voovS8nhAvccRZhg"]}]'
GLANCE_REDDIT_TABS: '[{"type":"reddit","subreddit":"worldnews"}]'
GLANCE_TEAMS: '[{"name":"Seahawks","path":"football/nfl","id":"sea"}]'
GLANCE_TEAMS: '[{"name":"Seahawks","path":"football/nfl","id":"sea","standings":"football/nfl","level":3}]'
GLANCE_PODCASTS: '[{"url":"https://example.com/feed.xml","title":"Example","limit":3}]'

# linkding (#144, ADR-0061). The superuser created on first start, and only
# then, as PAPERLESS_ADMIN_PASSWORD is: a later change here does not reach the
Expand Down
7 changes: 4 additions & 3 deletions secrets/sensitive.sops.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,8 @@ GLANCE_GOOGLE_API_KEY: ENC[AES256_GCM,data:mM15yavKXHqJ0qRJVVewoG5zC/P9L3oCfc4RN
MQTT_HA_PASSWORD: ENC[AES256_GCM,data:zET6fk1csjCNFtJCys8nBFsic0Um7CVi,iv:iiXQrpyhz4o81zGsC95YFfibMdY6JUAIfWpfYBR+T+w=,tag:9/brP1ATceaAL9AOPzVA0Q==,type:str]
MQTT_RING_PASSWORD: ENC[AES256_GCM,data:FanU7jvscjrueyn8c6t+r4zbdM1qBOba,iv:a4zJgsnIaSIMc/YubI9vEao208d5ZQZ3adjObH/E6As=,tag:lgcBQNUWP/fEvSuSZwn0NA==,type:str]
WALL_HA_TOKEN: ENC[AES256_GCM,data:5ePw/y9huCKlumjDoifRECIyDKyTSKfCsMbfM/bTuCeFP6re+kQrNbXWQQXrp9upwJyH+cMGPEYPsiUNPco19DtF1IyLdTAWVVMijrKvKSV+DoQGWuNwVz63VWeKvezX4CmJN5qqWO7pX4swnJuRB+oChLO5VTZMxcuw5r5Kg75FNTluZnhsF9/aOjqQFfijZQpfol58vXWbqgbY4j0nVP9zdiDdHrBreoOGZEZQIMXQWOnCq9DS,iv:QQ2wLrPPTQ9ka0mLofZE+k9fdbv12t8i/Fxm9tDtlp8=,tag:7SwrsqZyAX7yo6WkTs2nDg==,type:str]
GLANCE_TEAMS: ENC[AES256_GCM,data:Jp2JfnWYIuAsG57/GudiTqhAmrtVAeqU4wUQi+JT3bixEzbtRadnf1QQGBLsHE7IdST1K9DJHZTPTfz3jYbjJWMmovD3sTjB2neoUKxAcHQmKt+89OHKIni4xH5ROJxcFgrtJu4E/hkS5P0mZAN5QcyKrAOCHjzAMcACh6cBEBhmUI9t8p8iLUTubHqNye/VY73MTZ/2xqftIm1l3rLeAgCv3K3h+TH8MNi/+Xc53vxwvb4S3nPXl0BB/aLG9wrRTiu8G4nzunMm3h2E8DLm0whygw5uUHpSuBNtNF9TvSC2UT4oyZzaK+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nYfs2aqeFPS/7YWOFzf7GksmY48vtKSEz8Spa4Z3uYK5qNGEZVo4yPnmmuycmPjL4jH63AYTVivT9Kz7KChLHWFcfunID1ZpCoQULv5NyH89GVk5RwgsyhEMqIlDgBGQXNWiKin0Q+tN/8LH7oNqFLHD//6ExkIFxtV2wBkBo8yEaYgMlbGTAiFmZRxhHIKt718qDvvo+/Zi0ecF+CXTQozVHBdHVzVKc7wBWb77zewkBCuR9AprDDJ7Jvo9m5etz9drF5sMWMyyE2tJnUMoPnkE0rlte0sp4/XOao3i2wFTgPQ+KxmVLDtDyWmN/H1ns+9W1UWM0O22sMUaZ3sZssDttnmoSRHKJ1PozZGhT1GXVO/BAP3GhroBZyKIGg=,iv:A5pznIXxJn6s67J2kKMBU+5IVR7OgDpwBDKY3R4Foys=,tag:TLEuyqRI9RLwgevYYMJ/WA==,type:str]
sops:
kms: []
gcp_kms: []
Expand All @@ -149,8 +150,8 @@ sops:
cWFUOUk2ajZjLzJ3akI4b2NVa2x6WFUKCfpLOW4BYcdPB6/oUKS91hKK0bQ0ma8k
aLfyl0VnZz/iBAOImN/7l2sZPV/XY0lilPMjWWh4yGK27uDKhvDDtA==
-----END AGE ENCRYPTED FILE-----
lastmodified: "2026-11-27T03:40:19Z"
mac: ENC[AES256_GCM,data:cDktHU2e/a4vHXxxG/FLDTDMBKzP0q6VktlGZdxSE0y/LZTRtOxApbj+4SWbhIdh7NCyJuMmJEHI23RXDV3kQnD1e+V2eWFkXiSuLmrCvKYoB8GyO/4EoMnsKVPL4EF4ccCwXBP1RBpIqwtu1yZ1ikWewQ1Ohe1VU3dzrd2zNYQ=,iv:UwIJdG0rxVv087LqW/9g3OiQ9jhzqCKE/lOuc73SuBo=,tag:5Ig3r4qqax0sCZQ0Q//Tpg==,type:str]
lastmodified: "2026-11-27T05:24:13Z"
mac: ENC[AES256_GCM,data:3EHL+RN23IWiA3O3ltkxAkmq+UhZaewQZkFzKsaUwmRbP0xbtHLAkCxY6asD4CKqYg29yUCWfgWI70LZ3EQjm8DBqe9ujDjavP0lRCJQ2o4gNQ4UpPWD/kEAGX7aysOhj13Y5NQlWVuc78mTIoDHcMygut74+6QMZJZoclj7yJg=,iv:xunQwunILIdzwShHIJ42spdbyXk9ke5VQHVehlFcE9E=,tag:7mkMxmmbYAdAaxP8ZrNabQ==,type:str]
pgp: []
unencrypted_suffix: _unencrypted
version: 3.9.4
14 changes: 8 additions & 6 deletions stacks/sensitive/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -621,11 +621,13 @@ everything:

- **Home** (`home.yml`): the ticker strip, search, bookmarks, the time and
weather, the estate in brief, the year and a random fact. Short on purpose.
- **Read** (`read.yml`): Following, the Reddit tabs, Hacker News, Lobsters
and trending repositories.
- **Read** (`read.yml`): Following, the Reddit tabs, Listen (the podcasts
in `GLANCE_PODCASTS`, a few episodes per show), Hacker News, Lobsters and
trending repositories.
- **Watch** (`watch.yml`): the YouTube tabs at full width, as a grid.
- **Sports & Markets** (`sports.yml`): the teams in `GLANCE_TEAMS`, each
with its record, last result and next game; NBA, NFL, MLB and NHL scores
with its record, last result and next game, and the table each sits in;
NBA, NFL, MLB and NHL scores
from ESPN; the full ticker list with charts; and the TSP L 2060 fund with a
year's sparkline.
- **Homelab** (`homelab.yml`): a headline strip, the Estate panel, uptime
Expand Down Expand Up @@ -676,9 +678,9 @@ is a file under `pages/`, an `$include` line in `glance.yml` and a mount in

A home timeline has no feed, and nor do Instagram, Facebook or X.
- **Your own lists are in SOPS, not in these files.** Tickers, bookmarks,
YouTube tabs, subreddits and followed teams are `GLANCE_MARKETS`,
`GLANCE_BOOKMARKS`, `GLANCE_VIDEO_TABS`, `GLANCE_REDDIT_TABS` and
`GLANCE_TEAMS` in `secrets/sensitive.sops.yaml`, each one line of JSON that
YouTube tabs, subreddits, followed teams and podcasts are
`GLANCE_MARKETS`, `GLANCE_BOOKMARKS`, `GLANCE_VIDEO_TABS`,
`GLANCE_REDDIT_TABS`, `GLANCE_TEAMS` and `GLANCE_PODCASTS` in `secrets/sensitive.sops.yaml`, each one line of JSON that
Glance substitutes into the pages. To change one:
`make secrets-edit STACK=sensitive`, edit the line, keep it on one line
with no single quote inside, then `make up STACK=sensitive`.
Expand Down
1 change: 1 addition & 0 deletions stacks/sensitive/compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -1781,6 +1781,7 @@ services:
GLANCE_VIDEO_TABS: ${GLANCE_VIDEO_TABS:?set in secrets/sensitive.sops.yaml}
GLANCE_REDDIT_TABS: ${GLANCE_REDDIT_TABS:?set in secrets/sensitive.sops.yaml}
GLANCE_TEAMS: ${GLANCE_TEAMS:?set in secrets/sensitive.sops.yaml}
GLANCE_PODCASTS: ${GLANCE_PODCASTS:?set in secrets/sensitive.sops.yaml}
volumes:
# Each config file on its own, not the directory: a single-file mount
# is pinned by check_mounted_config.py, so `make up` recreates Glance
Expand Down
9 changes: 5 additions & 4 deletions stacks/sensitive/glance/glance.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,11 @@
#
# WHAT IS NOT IN THESE FILES, ON PURPOSE. This repository is public, and the
# operator's own lists — tickers, bookmarks, YouTube channels, subreddits,
# teams — say more about a person than about a homelab. They are one-line JSON
# values in secrets/sensitive.sops.yaml (GLANCE_MARKETS, GLANCE_BOOKMARKS,
# GLANCE_VIDEO_TABS, GLANCE_REDDIT_TABS, GLANCE_TEAMS), and Glance substitutes them as
# ${…}. Followed feeds live in Miniflux under its user `glance`. The stack
# teams, podcasts — say more about a person than about a homelab. They are
# one-line JSON values in secrets/sensitive.sops.yaml (GLANCE_MARKETS,
# GLANCE_BOOKMARKS, GLANCE_VIDEO_TABS, GLANCE_REDDIT_TABS, GLANCE_TEAMS,
# GLANCE_PODCASTS), and Glance substitutes them as ${…}.
# Followed feeds live in Miniflux under its user `glance`. The stack
# README says how to edit both.
#
# Every fetch is SERVER-SIDE, from trinity over Winterfell's existing *Allow
Expand Down
16 changes: 12 additions & 4 deletions stacks/sensitive/glance/pages/home.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,8 @@
- size: small
widgets:
# The estate in one line each, from the same reader-proxy queries the
# Homelab page uses; the detail is there.
# Homelab page uses; the detail is there. A site that is down is
# named under the figures, so the page says which without a click.
- type: custom-api
title: Estate
title-url: /homelab
Expand Down Expand Up @@ -74,9 +75,14 @@
{{ if eq (.String "metric.alertname") "Watchdog" }}{{ $watchdog = true }}
{{ else if or (eq $sev "warning") (eq $sev "critical") }}{{ $faults = add $faults 1 }}{{ end }}
{{ end }}
{{ $pAll := 0 }}{{ $pDown := 0 }}
{{ range $probes.JSON.Array "data.result" }}
{{ $pAll = add $pAll 1 }}{{ if eq (.String "value.1") "0" }}{{ $pDown = add $pDown 1 }}{{ end }}
{{ $pAll := 0 }}{{ $pDown := 0 }}{{ $down := "" }}
{{ range sortByString "metric.name" "asc" ($probes.JSON.Array "data.result") }}
{{ $pAll = add $pAll 1 }}
{{ if eq (.String "value.1") "0" }}
{{ $pDown = add $pDown 1 }}
{{ if $down }}{{ $down = concat $down ", " }}{{ end }}
{{ $down = concat $down (.String "metric.name") }}
{{ end }}
{{ end }}
<div class="flex justify-between text-center">
{{/* A figure only with evidence: Watchdog firing for the alert
Expand Down Expand Up @@ -108,6 +114,8 @@
<div class="size-h6">CONTAINERS</div>
</div>
</div>
{{ if $down }}
<p class="size-h6 color-negative margin-top-10">Down: {{ $down }}</p>{{ end }}
{{ if not $watchdog }}
<p class="color-negative margin-top-10">Watchdog silent: nothing here is current.</p>{{ end }}
{{ end }}
Expand Down
28 changes: 25 additions & 3 deletions stacks/sensitive/glance/pages/maintenance.yml
Original file line number Diff line number Diff line change
Expand Up @@ -278,9 +278,10 @@
{{ end }}
</ul>

# New releases of the software this estate pins. Dependabot opens the
# PR; this is the heads-up. Unauthenticated GitHub API, once per six
# hours per repository.
# New releases of the software this estate pins: the services, not the
# lint and build tools. Dependabot opens the PR; this is the heads-up.
# Unauthenticated GitHub API, once per six hours per repository: 32
# requests against the anonymous 60 an hour.
- type: releases
cache: 6h
show-source-icon: false
Expand All @@ -297,3 +298,24 @@
- prometheus/prometheus
- grafana/grafana
- grafana/loki
- actualbudget/actual
- AdguardTeam/AdGuardHome
- advplyr/audiobookshelf
- alexjustesen/speedtest-tracker
- binwiederhier/ntfy
- grafana/alloy
- mealie-recipes/mealie
- navidrome/navidrome
- prometheus/alertmanager
- prometheus/blackbox_exporter
- requarks/wiki
- sissbruecker/linkding
- smallstep/certificates
- SpecterOps/BloodHound
- Stirling-Tools/Stirling-PDF
- tsightler/ring-mqtt
- usememos/memos
- valkey-io/valkey
- Velocidex/velociraptor
- wazuh/wazuh
- zeek/zeek
14 changes: 14 additions & 0 deletions stacks/sensitive/glance/pages/read.yml
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,20 @@
# ---------------------------------------------------------------------
- size: small
widgets:
# The podcasts, read straight from their feeds rather than through
# Miniflux, so a daily show cannot push the weekly ones out: each
# feed gives at most its own `limit` episodes. GLANCE_PODCASTS is one
# {"url","title","limit"} per show. They are not also followed in
# Miniflux: Fever hands Following only the newest 50 items, and a
# newly added podcast's back catalogue would be all 50. This list
# style has no artwork, so the browser fetches nothing for it.
- type: rss
title: Listen
cache: 1h
limit: 30
collapse-after: 8
feeds: ${GLANCE_PODCASTS}

- type: hacker-news
limit: 20
collapse-after: 8
Expand Down
Loading