diff --git a/docs/runbooks/build-the-sensitive-tier-host.md b/docs/runbooks/build-the-sensitive-tier-host.md index 13c17443..2c9149ce 100644 --- a/docs/runbooks/build-the-sensitive-tier-host.md +++ b/docs/runbooks/build-the-sensitive-tier-host.md @@ -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:`, 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 | diff --git a/scripts/render-config.sh b/scripts/render-config.sh index 715a180e..b898ca37 100755 --- a/scripts/render-config.sh +++ b/scripts/render-config.sh @@ -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 @@ -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}" diff --git a/scripts/seed-validation-env.sh b/scripts/seed-validation-env.sh index 80aa9fc8..6cb90b12 100755 --- a/scripts/seed-validation-env.sh +++ b/scripts/seed-validation-env.sh @@ -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 diff --git a/secrets/sensitive.example.yaml b/secrets/sensitive.example.yaml index 1fed2b62..45d746b7 100644 --- a/secrets/sensitive.example.yaml +++ b/secrets/sensitive.example.yaml @@ -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 diff --git a/secrets/sensitive.sops.yaml b/secrets/sensitive.sops.yaml index 475e3bb3..2bf68f7d 100644 --- a/secrets/sensitive.sops.yaml +++ b/secrets/sensitive.sops.yaml @@ -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/aLG9wrRTiu8G4nzunMm3h2E8DLm0whygw5uU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MUq+zGLJWSHqhX099HbWHiTpuPHnYfs2aqeFPS/7YWOFzf7GksmY48vtKSEz8Spa4Z3uYK5qNGEZVo4yPnmmuycmPjL4jH63AYTVivT9Kz7KChLHWFcfunID1ZpCoQULv5NyH89GVk5RwgsyhEMqIlDgBGQXNWiKin0Q+tN/8LH7oNqFLHD//6ExkIFxtV2wBkBo8yEaYgMlbGTAiFmZRxhHIKt718qDvvo+/Zi0ecF+CXTQozVHBdHVzVKc7wBWb77zewkBCuR9AprDDJ7Jvo9m5etz9drF5sMWMyyE2tJnUMoPnkE0rlte0sp4/XOao3i2wFTgPQ+KxmVLDtDyWmN/H1ns+9W1UWM0O22sMUaZ3sZssDttnmoSRHKJ1PozZGhT1GXVO/BAP3GhroBZyKIGg=,iv:A5pznIXxJn6s67J2kKMBU+5IVR7OgDpwBDKY3R4Foys=,tag:TLEuyqRI9RLwgevYYMJ/WA==,type:str] sops: kms: [] gcp_kms: [] @@ -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 diff --git a/stacks/sensitive/README.md b/stacks/sensitive/README.md index ab885547..2be9d729 100644 --- a/stacks/sensitive/README.md +++ b/stacks/sensitive/README.md @@ -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 @@ -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`. diff --git a/stacks/sensitive/compose.yaml b/stacks/sensitive/compose.yaml index 3c142213..abec7dbf 100644 --- a/stacks/sensitive/compose.yaml +++ b/stacks/sensitive/compose.yaml @@ -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 diff --git a/stacks/sensitive/glance/glance.yml b/stacks/sensitive/glance/glance.yml index c546f143..e7c6f3c5 100644 --- a/stacks/sensitive/glance/glance.yml +++ b/stacks/sensitive/glance/glance.yml @@ -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 diff --git a/stacks/sensitive/glance/pages/home.yml b/stacks/sensitive/glance/pages/home.yml index af02dc32..d46f1062 100644 --- a/stacks/sensitive/glance/pages/home.yml +++ b/stacks/sensitive/glance/pages/home.yml @@ -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 @@ -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 }}
{{/* A figure only with evidence: Watchdog firing for the alert @@ -108,6 +114,8 @@
CONTAINERS
+ {{ if $down }} +

Down: {{ $down }}

{{ end }} {{ if not $watchdog }}

Watchdog silent: nothing here is current.

{{ end }} {{ end }} diff --git a/stacks/sensitive/glance/pages/maintenance.yml b/stacks/sensitive/glance/pages/maintenance.yml index c4841246..c487ac8a 100644 --- a/stacks/sensitive/glance/pages/maintenance.yml +++ b/stacks/sensitive/glance/pages/maintenance.yml @@ -278,9 +278,10 @@ {{ end }} - # 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 @@ -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 diff --git a/stacks/sensitive/glance/pages/read.yml b/stacks/sensitive/glance/pages/read.yml index 3a6c9ae6..55fe37e2 100644 --- a/stacks/sensitive/glance/pages/read.yml +++ b/stacks/sensitive/glance/pages/read.yml @@ -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 diff --git a/stacks/sensitive/glance/pages/sports.yml b/stacks/sensitive/glance/pages/sports.yml index bcb20757..f788bae3 100644 --- a/stacks/sensitive/glance/pages/sports.yml +++ b/stacks/sensitive/glance/pages/sports.yml @@ -1,9 +1,10 @@ -# Sports & Markets. The tickers are GLANCE_MARKETS, shown here -# in full with their charts. The teams the operator follows are GLANCE_TEAMS -# and come first; under them, the league scoreboards. Both are ESPN's public -# API, no key, one widget per league sharing the first one's template. Logos -# are left out: they would be the browser fetching from ESPN's CDN. The TSP -# fund is not on Yahoo, so it is its own widget, read from a Google Sheet. +# Sports & Markets. The tickers are GLANCE_MARKETS, shown here in full with +# their charts. The teams the operator follows are GLANCE_TEAMS and come +# first, then the tables they sit in; under them, the league scoreboards, one +# widget per league sharing the first one's template. The sports are ESPN's +# public API, no key. Logos are left out: they would be the browser fetching +# from ESPN's CDN. The TSP fund is not on Yahoo, so it is its own widget, read +# from a Google Sheet. - name: Sports & Markets slug: sports width: wide @@ -103,6 +104,82 @@ {{ end }} + # The table each followed team sits in, folded to one line until it is + # opened. A team gets one only if its GLANCE_TEAMS entry names + # "standings", ESPN's sport/league for the table; a club whose + # schedule path is soccer/all names its league here (soccer/eng.1). + # "level": 3 asks for divisions rather than conferences. The team is + # found by id or abbreviation in the deepest group that holds it, and + # rows are ordered by ESPN's rank (soccer) or playoff seed (the rest). + - type: custom-api + title: Standings + cache: 1h + options: + teams: ${GLANCE_TEAMS} + template: | + {{ $base := "https://site.api.espn.com/apis/v2/sports/" }} + {{ $any := false }} + + {{ if not $any }}

No team in GLANCE_TEAMS names "standings".

{{ end }} + - type: split-column max-columns: 2 widgets: