diff --git a/docs/runbooks/build-the-sensitive-tier-host.md b/docs/runbooks/build-the-sensitive-tier-host.md index 0af79554..13c17443 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` | 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` | 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 498fea03..715a180e 100755 --- a/scripts/render-config.sh +++ b/scripts/render-config.sh @@ -598,6 +598,7 @@ COMPOSE_VARS=( GLANCE_BOOKMARKS GLANCE_VIDEO_TABS GLANCE_REDDIT_TABS + GLANCE_TEAMS NTFY_ALERTMANAGER_PASSWORD_HASH NTFY_PHONE_PASSWORD_HASH NTFY_ALERTMANAGER_TOKEN @@ -704,7 +705,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_MARKETS | GLANCE_BOOKMARKS | GLANCE_VIDEO_TABS | GLANCE_REDDIT_TABS | GLANCE_TEAMS) [[ "${!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 5c0083ad..80aa9fc8 100755 --- a/scripts/seed-validation-env.sh +++ b/scripts/seed-validation-env.sh @@ -88,6 +88,7 @@ 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\"}]'" # 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 1ccb2b4b..1fed2b62 100644 --- a/secrets/sensitive.example.yaml +++ b/secrets/sensitive.example.yaml @@ -319,7 +319,7 @@ GLANCE_GOOGLE_API_KEY: change-me-to-a-key-restricted-to-the-sheets-api # Glance's own lists (ADR-0100). NOT credentials. They are here because this # repository is public and they describe a person: what they watch, read, # invest in and log in to. Each is ONE LINE of JSON, which Glance substitutes -# into pages/home.yml as YAML. Keep each on one line, in single quotes, and +# into the pages as YAML. Keep each on one line, in single quotes, and # never put a single quote inside: secrets-env.sh strips the outer quotes and # unescapes nothing. `make up STACK=sensitive` after an edit. # @@ -333,11 +333,19 @@ GLANCE_GOOGLE_API_KEY: change-me-to-a-key-restricted-to-the-sheets-api # "Tech","channels":["UC…"]}]. A channel's id is the # `UC…` in its page source ("externalId"). # GLANCE_REDDIT_TABS one reddit widget per tab: [{"type":"reddit", -# "subreddit":"worldnews"}]. +# "subreddit":"worldnews"}]. A tab can merge several +# subreddits as "a+b" and name itself with "title". +# GLANCE_TEAMS the teams Sports & Markets follows: [{"name":"Seahawks", +# "path":"football/nfl","id":"sea"}]. path is ESPN's +# 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. 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"}]' # 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 c42424b2..475e3bb3 100644 --- a/secrets/sensitive.sops.yaml +++ b/secrets/sensitive.sops.yaml @@ -117,13 +117,14 @@ GLANCE_PROMETHEUS_TOKEN: ENC[AES256_GCM,data:SVWcpKq+bT+n1kPsmDS04drjoMabcEYoLdy GLANCE_MINIFLUX_FEVER_KEY: ENC[AES256_GCM,data:pXtN/Jvs9/eLQ1ZCtuECDO+d54xMk4zO6N/YT+qTaBE=,iv:ujCwDGUBfjGdnkN6fk3Qv9GmYvrLjsjl9n7RNHQtuDs=,tag:6sfUDJzxuDGWuhtIncGfGQ==,type:str] GLANCE_MARKETS: ENC[AES256_GCM,data:C9xXwxvkcwryBKtQ8Fyl9k143MbJUSh9jGk4Scoctg/DmGjEsk8BiJEB21vUxEGe+qmkwixQSWBoxBpPhcdW8rV5bJZZo9eP65obAnYudolego/VMEI9j1j7bJdBHvj5inZeAZ7nPUk5fr23NiCM6B7JKRDMcOChTyoJ5hZdD4/2Ei4694jRWArvPsPOzWyK7a0+iuSla4VHrrZKfggaUUTavfCnHDoNDZ7tDhzvuI1aSVQmk8GwRkpIgh437s0J/gKvaBviPh2IK1DTHGmnuCTLiE9y+ZdjOU98FWD3HeXWedG2eCKfzqqcODY5tTZpr5XmkG7Fr8c6C4JJOkSVFw+8cFre5ZhY7EmewdwMC4t6YjAxCO4XDYDIG6Vz31c2LyNx4L36xWuKB5HDI54f73BJRrw+7tacC4Xx69HzaiD00KU4ACPCXNJFXYDHqYHElBtiHF6aAIK65L8iwvCVSGmE/1SVj6OWA4VlYOEOAubts3I3lSRRJmBHXwKg+EapWhTukWpIhfbC7AQRfSI1JYamKrDWtT5zF5JZWl0ORo269gJ9DA==,iv:IG3grILNDa7IoAscs82zlUtFASZM/oz2rn/CY/rzs10=,tag:1qGmz8RaK124d3KmO3e7Yg==,type:str] GLANCE_BOOKMARKS: ENC[AES256_GCM,data:5zLRreQj3JTcyEK0+05XIpIOPG2tLdSkpQqWZV4olzbIQw8+RS0bkmMcbXdWqxIwg5aGrvKeVY9VBKaJvPu4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LCy2a+lixka9ybXlm8I6pba544++3PNmtCuOY5hxSt7l5oD4MOb/3j9/VoDpLSDWylnWWoExbFzSzL01/iEO1sP1dWo1G8gyeU2ov8MxjSa0Z16Gc/SCrPweTkQzMknEiMo36qieQ6WxPUHXp40/kZWtPktIiVl7kGHCQ1fnc3mmFmB6l8vA8DkpmJyXumyflW7cqEdbu8HjdNsb5HIYHz03mMR6QPurWJjCL9WqP+nkG/n6s4RMKsrJ74Tuum2HiAKtv5ARu/Gu5VDtcOkzKgyVDcYHV7cFuI4+luL0ghomJJH7GDdveFpgj+cXkMWmbV4ImaKcULV40V1A928s4nc5Wat1U7Pwg==,iv:z3eq6A2CShK3wujGg1rnXBNlSVun0jqdVgSWmFqHwk0=,tag:2+Zrdl3tuebqYDepN3DPYw==,type:str] GLANCE_TSP_SHEET_ID: ENC[AES256_GCM,data:MKjn3KO8V2ab6Bhz6LhUMrWLpk8jlO1q6jKgL+iJ/+JIA7AzWSmMJMA+yF4=,iv:pIkW3h/TU82xqHvxOQT7DeO/nzIjZLsAqBXT6pxZzGc=,tag:6jCrC4rNAdcHT1Y0cDlEww==,type:str] GLANCE_GOOGLE_API_KEY: ENC[AES256_GCM,data:mM15yavKXHqJ0qRJVVewoG5zC/P9L3oCfc4RNEFruQkFvEa+Aag3,iv:SGfAQ0GJFOCKU9ymTuSka19qMoCOa8FGKvMSi2DCpf0=,tag:WW6BFfq6gqt3668YNNRMIw==,type:str] 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[A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Byn/CGyVDf5U3IsAPSN1HpXmDSJaYQFqkXJ/ViSx56KTaXXCar7/gBiA/acOHtmYlNmYdhTCuTtPDzjvLUCyCyjeg5/wv2HPoJPC3cjp9WhG0n2CxqPcdlwLiE+aW3PsIL8+gHYbqRf6MNrpoa/NiR+3sF4q,iv:pZFgoPp4BLad5THrYsvneZ1/7xk+7qzQtK0Kl/T/2Gg=,tag:DYWExcQFQBHtqWEZ67L5EQ==,type:str] sops: kms: [] gcp_kms: [] @@ -148,8 +149,8 @@ sops: cWFUOUk2ajZjLzJ3akI4b2NVa2x6WFUKCfpLOW4BYcdPB6/oUKS91hKK0bQ0ma8k aLfyl0VnZz/iBAOImN/7l2sZPV/XY0lilPMjWWh4yGK27uDKhvDDtA== -----END AGE ENCRYPTED FILE----- - lastmodified: "2026-11-26T06:06:55Z" - mac: ENC[AES256_GCM,data:C4CwKh6WAnhiR6VTFBTY0unSuij3wQdfOx70lHMkn8MiYjOcntqv0RX/Z26eEeU8tCg0wvLfiWWeofU6lR5i6Kc0ntRSL0JpoxYfulfTS22c2+LbEanZReuS/ogwkvyy6f3jJuqGOnx2lIPg8fyF0qkTLZofbL1c0Xz2BlV0Hjs=,iv:uUUIlHlCIW6bGUlJe+znlNB16/jICrZXI/ONLTOEJBA=,tag:Z7hMhwaaEtJqUlfI+HgITA==,type:str] + 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] pgp: [] unencrypted_suffix: _unencrypted version: 3.9.4 diff --git a/stacks/sensitive/README.md b/stacks/sensitive/README.md index 938e90d7..ab885547 100644 --- a/stacks/sensitive/README.md +++ b/stacks/sensitive/README.md @@ -624,8 +624,9 @@ everything: - **Read** (`read.yml`): Following, the Reddit tabs, Hacker News, Lobsters and trending repositories. - **Watch** (`watch.yml`): the YouTube tabs at full width, as a grid. -- **Sports & Markets** (`sports.yml`): NBA, NFL, MLB and NHL scores from - ESPN, the full ticker list with charts, and the TSP L 2060 fund with a +- **Sports & Markets** (`sports.yml`): the teams in `GLANCE_TEAMS`, each + with its record, last result and next game; 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 badges, hosts, every console by category, the household monitor and @@ -675,10 +676,10 @@ 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 and subreddits are `GLANCE_MARKETS`, `GLANCE_BOOKMARKS`, - `GLANCE_VIDEO_TABS` and `GLANCE_REDDIT_TABS` in - `secrets/sensitive.sops.yaml`, each one line of JSON that Glance - substitutes into `pages/home.yml`. To change one: + 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 + 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`. `secrets/sensitive.example.yaml` shows the shape of each. diff --git a/stacks/sensitive/compose.yaml b/stacks/sensitive/compose.yaml index 16593773..3c142213 100644 --- a/stacks/sensitive/compose.yaml +++ b/stacks/sensitive/compose.yaml @@ -1774,12 +1774,13 @@ services: GLANCE_GOOGLE_API_KEY: ${GLANCE_GOOGLE_API_KEY:?set in secrets/sensitive.sops.yaml} GLANCE_TSP_SHEET_ID: ${GLANCE_TSP_SHEET_ID:?set in secrets/sensitive.sops.yaml} # The operator's own lists, one-line JSON that Glance substitutes into - # pages/home.yml (ADR-0100). Not credentials: in SOPS because this + # the pages (ADR-0100). Not credentials: in SOPS because this # repository is public and they describe a person. GLANCE_MARKETS: ${GLANCE_MARKETS:?set in secrets/sensitive.sops.yaml} GLANCE_BOOKMARKS: ${GLANCE_BOOKMARKS:?set in secrets/sensitive.sops.yaml} 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} 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 5b7c6786..c546f143 100644 --- a/stacks/sensitive/glance/glance.yml +++ b/stacks/sensitive/glance/glance.yml @@ -14,10 +14,10 @@ # they merge in. # # WHAT IS NOT IN THESE FILES, ON PURPOSE. This repository is public, and the -# operator's own lists — tickers, bookmarks, YouTube channels, subreddits — -# 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), and Glance substitutes them as +# 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 # README says how to edit both. # @@ -41,6 +41,11 @@ document: # page once it is five minutes old, but only while the tab is visible and # nothing is being typed into, and at once when a stale tab is shown again. # Inline, so the browser still fetches nothing but this page. + # + # The second script is for Sports & Markets' "My teams": the container has + # no time zones (Alpine, no tzdata), so a template can only write a kickoff + # in UTC. It writes the ISO time into data-kickoff, and this rewrites each + # one in the browser's own zone as widgets arrive. textContent, never HTML. head: | + branding: hide-footer: true diff --git a/stacks/sensitive/glance/pages/sports.yml b/stacks/sensitive/glance/pages/sports.yml index bc446334..bcb20757 100644 --- a/stacks/sensitive/glance/pages/sports.yml +++ b/stacks/sensitive/glance/pages/sports.yml @@ -1,8 +1,9 @@ # Sports & Markets. The tickers are GLANCE_MARKETS, shown here -# in full with their charts. The scoreboards 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. +# 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. - name: Sports & Markets slug: sports width: wide @@ -10,6 +11,98 @@ # --------------------------------------------------------------------- - size: full widgets: + # One line per followed team: its record, the last result and the + # next game, or the score while one is on. GLANCE_TEAMS lists them as + # {"name","path","id"}, where path is ESPN's sport/league and id its + # team id or abbreviation (secrets/sensitive.example.yaml has the + # shape). A soccer team's path is soccer/all, which spans every + # competition, and ESPN gives its results and its fixtures as two + # schedules, so it asks twice; every other team's one schedule holds + # the whole season. Kickoff is UTC here: the page head's script + # writes it in the browser's own time zone. + - type: custom-api + title: My teams + cache: 5m + options: + teams: ${GLANCE_TEAMS} + template: | + {{ $base := "https://site.api.espn.com/apis/site/v2/sports/" }} + + - type: split-column max-columns: 2 widgets: