Repository navigation
Description
Update 2026-11-26 (infra move): The start page and its Secret rows belong to dan-petty/homelab.
This item keeps the product part: admit namespace startpage in the roadmap Service ingress policy, its checks and the person step in k8s/README.md. The tile, token mount, egress rule and cluster-secrets.toml row are the homelab follow-up. This repository has no k8s/startpage/, and step 17 (#7290) removes k8s/overlays/.
Follow-up: dan-petty/homelab#272.
Problem or Motivation
The start page shows the roadmap Service only through recorded Prometheus series. The identity halt, the GraphQL hold and the state of valkey-roadmap are not series. The read API /api/v1/roadmap/health reports them.
Proposed Solution & Architectural Design
- The Roadmap Service tile gets a
customapiwidget onhttp://roadmap-service.devops.svc.cluster.local:8000/api/v1/roadmap/healthwithAuthorization: Bearer {{HOMEPAGE_FILE_ROADMAP_API_TOKEN}}. It showsstatusand the halt and hold fields. devops k8s push-secretswrites the named read tokenstartpageinto a Secret in namespacestartpage, mounted as a file.roadmap-service-ingressadmitsstartpageon 8000, and the start page perimeter admits that egress.- No Ingress and no Access application: the API is in the cluster only. The tile links to the Grafana dashboard.
- The person step that makes the token is in
k8s/README.md.
Target Subsystem
Kubernetes & Minikube Automation (k8s/devops/roadmap-service/; the start page is in dan-petty/homelab).
Existing Tool Considered
Homepage customapi widget and file-backed variables (open tool). Cost: about 100,000 tokens and 1.5 hours, plus the person step; about 5,000 tokens a month to keep; about 20,000 tokens to fix.
Acceptance Criteria
- The tile shows the health status after the sync.
- A wrong token shows an error on the tile, not a blank page.
- The network policy tests cover the new rules.
- No token value is in the repository.
Dependencies
- "feat(k8s): show cluster health widgets on the start page".
- "feat(service): serve a read-only roadmap API with OpenAPI".
- Person step: the
startpageread token.
Source: #4517
Alternatives check of 2026-11-26: in-use.
The repository already uses this tool.
Tool: gethomepage/homepage (https://github.com/gethomepage/homepage), GPL-3.0, last activity 2026-11-26, maintained.
Reason: The issue already names Homepage's customapi widget, which the start page uses (ADR 0039 chose Homepage); the read API's JSON fields, bearer header, file-backed token and error display are all widget features.
Covers:
- customapi widget renders fields of a JSON HTTP API
- Per-widget Authorization bearer header from a file-backed variable
- Failed request shows an error on the tile
- Tile link to the Grafana dashboard
Lacks:
- No Secret generation or keyring push
- No NetworkPolicy ingress or egress rules
- No mount of the token file into the pod
Proposed design
Problem statement
The start page shows the Roadmap Service only through recorded Prometheus series. The identity halt, the GraphQL hold and the state of valkey-roadmap are not series; the in-cluster read API /api/v1/roadmap/health reports them, and no tile shows them. This item puts those fields on the Roadmap Service tile through Homepage's customapi widget, which reads the API with a startpage read token from a mounted Secret file. The start page tree and the environment Secret rows live in dan-petty/homelab (ADR 0039), so the tile, the token mount, the start page egress rule and the startpage/roadmap-api-token row land in a pull request there, while the pull request of this repository adds the startpage peer to roadmap-service-ingress and the person step to the Cluster Secrets section of k8s/README.md. The API stays in the cluster with no Ingress route and no Cloudflare Access application.
Acceptance criteria
Requirement: The roadmap-service policy admits the start page read
roadmap-service-ingress SHALL admit pods of namespace startpage on TCP 8000.
Scenario: The policy render holds the start page peer
- WHEN
uv run devops ci --check --only k8sruns on the tree with the new rule - THEN the check passes, because the k8s row renders the
devopsapplication with thestartpagepeer on TCP 8000 and prints no error
Requirement: The start page tile reads the health API
The start page SHALL give the Roadmap Service tile a Homepage customapi widget that reads http://roadmap-service.devops.svc.cluster.local:8000/api/v1/roadmap/health with an Authorization: Bearer header from HOMEPAGE_FILE_ROADMAP_API_TOKEN and links to the roadmap Grafana dashboard.
Scenario: The start page application renders with the health tile
- WHEN
uv run devops ci --check --only k8sruns on the start page tree of dan-petty/homelab - THEN the check passes, because the k8s row renders the
startpageapplication once and prints no render error for the new widget
Requirement: The read token comes from a mounted file
The widget MUST take its bearer token from the file-backed variable HOMEPAGE_FILE_ROADMAP_API_TOKEN, which the start page pod mounts from a key of the startpage token Secret.
Scenario: The start page Deployment mounts the token key as a file
- WHEN
uv run devops ci --check --only k8sruns on the start page tree of dan-petty/homelab - THEN the check passes and the k8s row prints no error for the start page Deployment
Requirement: The push writes the read-token Secret
devops k8s push-secrets SHALL write the startpage read token into Secret startpage/roadmap-api-token under key ROADMAP_API_TOKEN, from an environment row of k8s/cluster-secrets.toml whose source is keyring entry startpage_read_token and whose generator makes the value when the keyring has none.
Scenario: The plan lists the new Secret row
- WHEN
uv run devops k8s push-secrets --planreads the environment tree of dan-petty/homelab - THEN it lists
startpage/roadmap-api-tokenwith keyROADMAP_API_TOKEN, the keyring source, the generator and the start page Deployment as the restarted workload, and prints no value
Requirement: No token value is in the repository
The repository MUST hold no value of the startpage read token.
Scenario: The start page tree names only the file-backed variable
- WHEN
uv run devops ci --check --only k8sruns on the start page tree of dan-petty/homelab and on the cluster-secret table - THEN the check passes and each rendered start page object that carries the bearer header names
HOMEPAGE_FILE_ROADMAP_API_TOKENand holds no token value
Requirement: A refused token shows an error
A refused read token MUST show as an error on the Roadmap Service tile and MUST NOT leave the start page blank.
Scenario: The tile holds no fallback that hides an error
- WHEN
uv run devops ci --check --only k8sruns on the start page tree of dan-petty/homelab - THEN the check passes and the rendered tile holds the URL, the header and the field mappings, with no fallback value for
statusand no option that suppresses a widget error
Requirement: The health API stays in the cluster
The health API MUST have no Ingress route and no Cloudflare Access application.
Scenario: The roadmap-service Ingress routes only the webhook
- WHEN
uv run devops ci --check --only k8sruns on the tree - THEN the check passes, and the k8s row renders the
k8s/devops/roadmap-serviceIngress with/webhooks/githubas its only path and prints no error
Requirement: Pending a person after the merge
The merged change MUST get the startpage read token into the cluster before the start page pod reads it.
Scenario: A person pushes the read token after the merge
- WHEN a person runs
uv run devops k8s push-secrets --only startpage/roadmap-api-tokenafter the merges - THEN the command writes the Secret from keyring entry
startpage_read_token, restarts the start page Deployment and prints no value, and the Roadmap Service tile showsstatusand the halt and hold fields after the next sync
Existing Tool Considered
Homepage (gethomepage/homepage, GPL-3.0, maintained) is in use, as ADR 0039 chose it for the cluster start page; this item uses its customapi widget for the Roadmap Service tile and pays no build cost, because it writes no widget code. The alternatives block of 2026-11-26 records the verdict in-use, and its Lacks: list holds what the tool does not cover, which the rest of this change supplies.
Key questions
- Which tool renders the Roadmap Service health tile?: The Homepage
customapiwidget, which the cluster start page already uses. The project records Homepage as the start page in ADR 0039, anddocs/DESIGN.mdnames Homepage as the start page target. The alternatives block of 2026-11-26 records the verdictin-useforgethomepage/homepageand itsCovers:list holds the widget features this tile needs. (best practice) [sources: docs/adr/0039-homepage-is-the-cluster-start-page.md:31, docs/DESIGN.md:260]- Chosen: Homepage
customapiwidget. The project chose Homepage for the start page, and the widget renders a JSON API's fields on a tile with a per-widget bearer header and shows a failed request as an error. The start page already uses it. - Rejected: Prometheus exporter and chart tile. The identity halt, the GraphQL hold and the
valkey-roadmapstate are not series. The read API reports them, and no exporter shows them. - Rejected: A start page component that the project builds. It builds code that the
customapiwidget of Homepage already covers.
- Chosen: Homepage
- How does the read token reach the widget with no value in the repository?: The widget reads the file-backed variable
HOMEPAGE_FILE_ROADMAP_API_TOKEN, and the start page pod mounts the token Secret key as a file at that path.devops k8s push-secretswrites the Secret from the keyring, and the row carries a generator, so no value enters the repository; the person step is documented in the Cluster Secrets section ofk8s/README.md. (best practice) [sources: k8s/README.md:818, openspec/specs/cluster-secrets-loader/spec.md:30, SECURITY.md:64]- Chosen: A mounted Secret file with the file-backed variable. The repository is public. The file keeps the value out of the manifests, the ConfigMap and the process environment, as the MCP token precedent does for the Service.
- Rejected: An inline value in the widget configuration. It puts the token value into the repository.
- Rejected: A plain environment variable from a Secret key. The file-backed variable matches the form of the widget and keeps the value out of the environment.
- What name, key and source does the
startpageread-token Secret use?: Secretstartpage/roadmap-api-tokenin namespacestartpage, keyROADMAP_API_TOKEN, from keyring entrystartpage_read_tokenwith aurlsafegenerator. The row is an environment row ofk8s/cluster-secrets.tomlin dan-petty/homelab, which the loader appends before the product rows; the Service's read token for the namestartpage(ADR 0029) reads the same keyring entry, as the MCP token is written to two Secrets, so one push keeps the client and the API in step. (best practice) [sources: src/devops_cli/k8s/cluster_secrets.py:472, src/devops_cli/k8s/cluster_secrets.py:500, docs/adr/0029-the-roadmap-service-serves-a-read-only-api.md:66, SECURITY.md:64]- Chosen: One keyring entry, a generator and one value for both Secrets. The client and the API read the same value, and the value is made once. No agent writes it, and the environment row follows the loader's environment-then-product order.
- Rejected: A literal token for each client. It puts a value in the repository, and two literals drift.
- Rejected: Adopt the live Secret value with no generator. The first push has no live value to adopt, so the pod that reads the missing Secret does not start.
- Which policy admits the health read?: A rule in
roadmap-service-ingressadmits pods in namespacestartpageon TCP 8000. The start page perimeter, which lives with the start page in dan-petty/homelab, admits the same egress toroadmap-serviceon TCP 8000. (best practice) [sources: k8s/devops/roadmap-service/networkpolicy.yaml:14, k8s/devops/roadmap-service/service.yaml:10, docs/adr/0039-homepage-is-the-cluster-start-page.md:34]- Chosen: A named ingress rule on TCP 8000 plus the matching egress rule. The Service answers on 8000, and each policy names its clients by label. The read gets the one port that it needs.
- Rejected: A rule for namespace
startpageon every port. It admits more than the one read needs. - Rejected: No policy change. The default-deny perimeter of namespace
devopsrefuses the read.
- Does the health API get an Ingress route and a Cloudflare Access application?: No. ADR 0029 keeps the read API in the cluster only, the roadmap-service Ingress publishes only
/webhooks/github, and the Service is a ClusterIP on 8000. The tile reads the API over the pod network and links to the Grafana dashboard for the deeper view. (best practice) [sources: docs/adr/0029-the-roadmap-service-serves-a-read-only-api.md:62, k8s/devops/roadmap-service/ingress.yaml:18, k8s/devops/roadmap-service/service.yaml:10]- Chosen: In-cluster only, with a link to the Grafana dashboard. The tile reads the API over the pod network. An Ingress would expose the halt and hold fields through the tunnel and would need an Access policy.
- Rejected: An Ingress host with a Cloudflare Access application. It adds a public route and an Access policy for a read that only the start page makes.
- Where does the start page tree live, and does it exist at this commit?: It does not exist in this repository. ADR 0039 places the start page directory of the environment tree and Application
startpagein dan-petty/homelab, and theenvironment-freezecheck refuses a branch that changes an environment path, which is every file underk8soutsidek8s/devopsandk8s/overlays/homelab/devops. Sok8s/startpage/cannot be added here; the tile, the mount and the start page egress rule land in a pull request of dan-petty/homelab, and this repository keeps thek8s/devops/roadmap-servicerule and the Markdown ofk8s/README.md. [sources: docs/adr/0039-homepage-is-the-cluster-start-page.md:33, tests/gate/k8s_checks/environment_freeze.py:26, tests/gate/k8s_checks/environment_freeze.py:38] - Where does the
startpage/roadmap-api-tokencluster-secret row live?: Ink8s/cluster-secrets.tomlof dan-petty/homelab, not insrc/devops_cli/k8s/cluster_secrets.py. The loader takes the environment rows from that file and appends the product rows ofCLUSTER_SECRETS, and namespacestartpageis an environment namespace. [sources: src/devops_cli/k8s/cluster_secrets.py:472, src/devops_cli/k8s/cluster_secrets.py:500, openspec/specs/cluster-secrets-loader/spec.md:30] - Does the health API exist at this commit?: No route is in
src/devops_cli/server/yet. ADR 0029 recordsGET /api/v1/roadmap/healthas the read API's health route, and the dependency feat(service): serve a read-only roadmap API with OpenAPI #4586 delivers the API, so this item consumes it and adds no server code. [sources: docs/adr/0029-the-roadmap-service-serves-a-read-only-api.md:34, docs/adr/0029-the-roadmap-service-serves-a-read-only-api.md:84]
Fit
Needs splitting into 2 items:
- Pull request of dan-petty/homelab: the Roadmap Service
customapitile with the health URL, the bearer header fromHOMEPAGE_FILE_ROADMAP_API_TOKENand the Grafana link; the token key mounted as a file in the start page Deployment; the start page egress rule toroadmap-serviceon TCP 8000; and thestartpage/roadmap-api-tokenrow ofk8s/cluster-secrets.toml. - Pull request of this repository: the
startpagepeer on TCP 8000 ink8s/devops/roadmap-service/networkpolicy.yamland the person step in the Cluster Secrets section ofk8s/README.md.
Suspected block
The start page tile, the token mount, the start page egress rule and the environment Secret row wait on a pull request of dan-petty/homelab, which holds the start page tree and the environment k8s/cluster-secrets.toml (ADR 0039).
Dependencies
dan-petty/homelab#339, #4586
Watched files
A commit on the default branch that changes one of these files starts the next refine round.
src/devops_cli/server/app.pytests/gate/k8s_checks/environment_freeze.py
Activity
dan-petty commentedon Nov 11, 2026
Intake placed this item to the backlog: intake puts every new item in the backlog. A person plans the milestones.
featprefix of the title gives the type.(k8s)scope of the title gives the scope.It adds a visibility widget that depends on other items landing first and does not block core workflow.It surfaces halt and hold state on the start page, reducing the need to open Grafana for a quick check.It spans a widget config, a secret push, ingress and network-policy rules, and tests, but each piece is small.Both concern the roadmap Service in the K8s cluster, but dan-petty/devops-cli#1083 deploys and restricts the Service while this candidate adds a start-page widget that reads its health API.devops-cli-service commentedon Nov 13, 2026
Alternatives check: covers
Reason: The searches surfaced Homepage, an open, actively maintained dashboard whose
customapiwidget reads an arbitrary JSON endpoint with per-widget headers and maps the returned fields onto a tile, and the issue itself already names that widget plus Homepage's file-backed variables as the tool to use. That is exactly the need: showingstatusand the halt/hold fields from/api/v1/roadmap/healthon the Roadmap Service tile with a mounted read token; the remaining work is project-specific plumbing (Secret push, ingress and network-policy rules, tests), not another tool.Tool: gethomepage/homepage (https://github.com/gethomepage/homepage)
Covers:
customapiwidget renders a JSON API's fields (status, halt and hold fields) on a service tileAuthorization: Bearerread token is sent by the widgetHOMEPAGE_FILE_*) read a value from a mounted file instead of the repository or an inline env valueLacks:
startpageread token Secret viadevops k8s push-secretsand mounting it as a fileroadmap-service-ingressadmission ofstartpageon 8000 and the matching egress rule in the start-page perimeter, with their network-policy tests/api/v1/roadmap/healthwith OpenAPI), which the issue lists as a dependencyk8s/README.mdthat creates the read tokenTools considered:
Searches run:
Sources:
Checked on 2026-11-13. A person decides what this means for the item. The check changes no label and closes no issue.
devops-cli-service commentedon Nov 14, 2026
Refine cannot set this item to Ready at 0410772 until a person answers the questions below. Reply in a comment or edit the body, and the next refine round looks at the item again.
startpageread token, and when? (a person decides)https://github.com/gethomepage/homepagecovers this item. Adopt the tool, or keep the item and give the reason. (a person decides)devops-cli-service commentedon Nov 20, 2026
The result in the alternatives block of the issue body changed. Before this check:
covers, tool https://github.com/gethomepage/homepage. A person decides what the new result means for the item.Searches (4)
Tools considered:
Searches run:
Sources:
devops-cli-service commentedon Nov 20, 2026
Next step: the open items close, or a person replies in a comment or edits the body. See Dependencies and Watched files in the section Proposed design of the body.
devops-cli-service commentedon Nov 26, 2026
Next step: a person splits the item, or replies in a comment or edits the body to keep one item. See Fit and Watched files in the section Proposed design of the body.