Skip to content

feat(k8s): show roadmap health from the Service API #4602

Open

Description

@dan-petty

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 customapi widget on http://roadmap-service.devops.svc.cluster.local:8000/api/v1/roadmap/health with Authorization: Bearer {{HOMEPAGE_FILE_ROADMAP_API_TOKEN}}. It shows status and the halt and hold fields.
  • devops k8s push-secrets writes the named read token startpage into a Secret in namespace startpage, mounted as a file.
  • roadmap-service-ingress admits startpage on 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 startpage read 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 k8s runs on the tree with the new rule
  • THEN the check passes, because the k8s row renders the devops application with the startpage peer 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 k8s runs on the start page tree of dan-petty/homelab
  • THEN the check passes, because the k8s row renders the startpage application 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 k8s runs 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 --plan reads the environment tree of dan-petty/homelab
  • THEN it lists startpage/roadmap-api-token with key ROADMAP_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 k8s runs 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_TOKEN and 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 k8s runs 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 status and 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 k8s runs on the tree
  • THEN the check passes, and the k8s row renders the k8s/devops/roadmap-service Ingress with /webhooks/github as 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-token after 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 shows status and 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 customapi widget, which the cluster start page already uses. The project records Homepage as the start page in ADR 0039, and docs/DESIGN.md names Homepage as the start page target. The alternatives block of 2026-11-26 records the verdict in-use for gethomepage/homepage and its Covers: 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 customapi widget. 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-roadmap state 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 customapi widget of Homepage already covers.
  • 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-secrets writes 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 of k8s/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 startpage read-token Secret use?: Secret startpage/roadmap-api-token in namespace startpage, key ROADMAP_API_TOKEN, from keyring entry startpage_read_token with a urlsafe generator. The row is an environment row of k8s/cluster-secrets.toml in dan-petty/homelab, which the loader appends before the product rows; the Service's read token for the name startpage (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-ingress admits pods in namespace startpage on TCP 8000. The start page perimeter, which lives with the start page in dan-petty/homelab, admits the same egress to roadmap-service on 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 startpage on every port. It admits more than the one read needs.
    • Rejected: No policy change. The default-deny perimeter of namespace devops refuses 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 startpage in dan-petty/homelab, and the environment-freeze check refuses a branch that changes an environment path, which is every file under k8s outside k8s/devops and k8s/overlays/homelab/devops. So k8s/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 the k8s/devops/roadmap-service rule and the Markdown of k8s/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-token cluster-secret row live?: In k8s/cluster-secrets.toml of dan-petty/homelab, not in src/devops_cli/k8s/cluster_secrets.py. The loader takes the environment rows from that file and appends the product rows of CLUSTER_SECRETS, and namespace startpage is 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 records GET /api/v1/roadmap/health as 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:

  1. Pull request of dan-petty/homelab: the Roadmap Service customapi tile with the health URL, the bearer header from HOMEPAGE_FILE_ROADMAP_API_TOKEN and the Grafana link; the token key mounted as a file in the start page Deployment; the start page egress rule to roadmap-service on TCP 8000; and the startpage/roadmap-api-token row of k8s/cluster-secrets.toml.
  2. Pull request of this repository: the startpage peer on TCP 8000 in k8s/devops/roadmap-service/networkpolicy.yaml and the person step in the Cluster Secrets section of k8s/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.py
  • tests/gate/k8s_checks/environment_freeze.py

Activity

  1. added
    source/agent
    on Nov 11, 2026
  2. added
    type/feature
    scope/k8s
    status/new
    value/medium
    effort/medium
    on Nov 11, 2026
  3. dan-petty commented on Nov 11, 2026

    @dan-petty
    OwnerAuthor

    Intake placed this item to the backlog: intake puts every new item in the backlog. A person plans the milestones.

    • Type: type/feature. The feat prefix of the title gives the type.
    • Scope: scope/k8s. The (k8s) scope of the title gives the scope.
    • Priority: P2-Medium. It adds a visibility widget that depends on other items landing first and does not block core workflow.
    • Value: Medium. It surfaces halt and hold state on the start page, reducing the need to open Grafana for a quick check.
    • Effort: Medium. It spans a widget config, a secret push, ingress and network-policy rules, and tests, but each piece is small.
    • Related: feat(k8s): the roadmap service runs in the cluster's devops namespace, reachable from outside only on /webhooks/github #1083, which asks for a different change. 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.
  4. added
    priority/p2-medium
    on Nov 11, 2026
  5. devops-cli-service commented on Nov 13, 2026

    @devops-cli-service
    Contributor

    Alternatives check: covers

    Reason: The searches surfaced Homepage, an open, actively maintained dashboard whose customapi widget 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: showing status and the halt/hold fields from /api/v1/roadmap/health on 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)

    • License: GPL-3.0
    • Last activity: 2026-11-12
    • Maintained: yes

    Covers:

    • customapi widget renders a JSON API's fields (status, halt and hold fields) on a service tile
    • per-widget custom headers, so the Authorization: Bearer read token is sent by the widget
    • file-backed variables (HOMEPAGE_FILE_*) read a value from a mounted file instead of the repository or an inline env value
    • a failed request or wrong token shows as a widget error rather than a blank page
    • tile links out to the Grafana dashboard for the deeper view

    Lacks:

    • the cluster-side pieces: writing the startpage read token Secret via devops k8s push-secrets and mounting it as a file
    • the roadmap-service-ingress admission of startpage on 8000 and the matching egress rule in the start-page perimeter, with their network-policy tests
    • the in-cluster read API itself (/api/v1/roadmap/health with OpenAPI), which the issue lists as a dependency
    • the person step in k8s/README.md that creates the read token

    Tools considered:

    Searches run:

    • gethomepage homepage custom API widget authorization bearer token file variable, results: 5
    • Homepage dashboard customapi widget JSON API fields, results: 5
    • homepage gethomepage customapi widget documentation, results: 5
    • gethomepage homepage file-backed environment variables HOMEPAGE_FILE_ docker secrets, results: 5
    • "customapi" homepage widget gethomepage.dev, results: 5
    • homepage startpage customapi widget example mappings, results: 5
    • gethomepage.dev widgets customapi, results: 5
    • github gethomepage homepage customapi widget service widget docs, results: 5
    • gethomepage homepage github repository, results: 5
    • homepage dashboard custom api widget, results: 5

    Sources:

    Checked on 2026-11-13. A person decides what this means for the item. The check changes no label and closes no issue.

  6. devops-cli-service commented on Nov 14, 2026

    @devops-cli-service
    Contributor

    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.

    • Who makes the startpage read token, and when? (a person decides)
    • The alternatives check found that https://github.com/gethomepage/homepage covers this item. Adopt the tool, or keep the item and give the reason. (a person decides)
  7. devops-cli-service commented on Nov 20, 2026

    @devops-cli-service
    Contributor

    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:

    • homepage customapi widget JSON API bearer token, results: 5
    • gethomepage customapi widget documentation headers mappings, results: 5
    • gethomepage.dev customapi widget, results: 5
    • "customapi" widget homepage dashboard custom API, results: 5

    Sources:

  8. devops-cli-service commented on Nov 20, 2026

    @devops-cli-service
    Contributor

    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.

  9. devops-cli-service commented on Nov 26, 2026

    @devops-cli-service
    Contributor

    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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    effort/mediumpriority/p2-mediumscope/k8ssource/agentstatus/newtype/featurevalue/medium

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions