Skip to content

feat(k8s): deploy Homepage as the cluster start page #4598

Done

Description

@dan-petty

Problem or Motivation

The cluster has about 21 Ingress objects and more UIs with no Ingress. No page lists the service UIs. A person must remember each host name. The owner asked on 2026-11-11 for a cluster start page with links to all services.

Proposed Solution & Architectural Design

  • Deploy Homepage (gethomepage.dev) as the start page. It finds links from Kubernetes Ingress and Traefik IngressRoute annotations by itself, and its configuration is YAML, so Argo CD owns it.
  • An ADR records the choice and the tools compared.
  • Directory k8s/startpage/: the Namespace entry in k8s/namespaces.yaml (Pod Security restricted, Prune=false,Delete=false), ServiceAccount, ClusterRole, ClusterRoleBinding, ConfigMap homepage, Deployment homepage (1 replica), Service, NetworkPolicy and the Ingress, in one directory for both deploy paths.
  • The upstream image, pinned by digest. Renovate proposes new digests.
  • Application startpage: project homelab, tracks main, prune and selfHeal; the project gets destination startpage. CONST_K8S_ARGOCD_HOMELAB_APPLICATIONS_BY_STACK["infra"] and MANIFESTS_BY_STACK name it.
  • Ingress host start.example.com in git; deploy-stack replaces the placeholder. Owner decision 2026-11-11: the host name is start on the homelab domain. The wildcard tunnel route, DNS record and Access application cover the new host, so no Cloudflare change.
  • Env values: MY_POD_IP from the pod IP, HOMEPAGE_ALLOWED_HOSTS = $(MY_POD_IP):3000,start.example.com, HOMEPAGE_VAR_DOMAIN = example.com (deploy-stack sets the real domain).
  • settings.yaml: five groups (Platform, AI, Observability, Dev tools, Roadmap), statusStyle: dot, disableUpdateCheck: true (the pod sends no request outside the cluster). kubernetes.yaml: mode: cluster, ingress: true, traefik: true.
  • Security: runAsNonRoot, user and group 1000, no privilege escalation, all capabilities dropped, seccompProfile: RuntimeDefault; try readOnlyRootFilesystem with emptyDir volumes. One ClusterRole with get and list on namespaces, pods, nodes, ingresses, ingressroutes and metrics.k8s.io; no Secrets and no write verb. NetworkPolicy startpage-default-perimeter: ingress from Traefik on 3000; egress to DNS and the API server on 6443 (ipBlock with the metadata address excluded).
  • The Feasibility section records the literal environment value check: Homepage lists pods in all namespaces, and a pod object holds each literal env[].value. The check of 2026-11-11 (names and value shapes only) found no secret.
  • k8s/README.md gets a "Start page" section, the host and the new Application count. Run deploy-stack with --argocd-revision before the merge, because the change adds a host.

Target Subsystem

Kubernetes & Minikube Automation (k8s/startpage/, k8s/argocd/, src/devops_cli/config/constants.py).

Existing Tool Considered

Homepage, the only maintained tool of those compared that discovers links from Ingress and IngressRoute annotations. Open tool, no build. Cost: about 400,000 tokens and 6 hours to integrate, about 20,000 tokens a month to keep (digest updates, scan findings), about 50,000 tokens to fix.

Acceptance Criteria

  • devops argo cd apps status startpage is Synced and Healthy.
  • The page loads at the start host through Access.
  • kubectl -n startpage get deploy homepage -o yaml | grep example.com prints nothing after deploy-stack.
  • The pod passes Pod Security restricted; the namespace is in tests/commands/k8s/test_k8s_network_policies.py.
  • The pod sends no request outside the cluster.

Dependencies

  • "feat(k8s): set the homelab domain in container env values".
  • Owner decision 2026-11-11: the host is start. Skip the apex redirect for now: do not route or redirect the apex domain (owner, 2026-11-11).

Source: #4517

Alternatives check of 2026-11-20: in-use.
The repository already uses this tool.
Tool: gethomepage/homepage (https://github.com/gethomepage/homepage), GPL-3.0, last activity 2026-11-20, maintained.
Reason: Searches and the repository facts confirm Homepage, the tool the issue already names, is a maintained self-hosted dashboard that builds the service link list from Ingress and Traefik IngressRoute annotations; only the repository's own Kubernetes and Argo CD objects are extra work.

Covers:

  • Link discovery from Ingress and Traefik IngressRoute annotations
  • YAML groups, bookmarks and status dots
  • Self-hosted image a digest can pin
  • custom.css and theme hook for design tokens

Lacks:

  • Namespace, RBAC, NetworkPolicy and Ingress objects
  • deploy-stack host and env value substitution
  • Argo CD Application, project destination and stack registration
  • Pod Security restricted hardening out of the box

Proposed design

Problem statement

The cluster has about 21 Ingress objects and more service UIs with no Ingress. No page lists them, so a person must remember each host name. This change deploys Homepage as the cluster start page at the start host. Homepage builds the link list from the Ingress and Traefik IngressRoute annotations, and Argo CD owns its manifests in k8s/startpage/. The page takes its colors from the design tokens of the design spec.

Acceptance criteria

Requirement: startpage-namespace

The environment tree SHALL declare namespace startpage with Pod Security restricted at the enforce, warn and audit levels and the annotation argocd.argoproj.io/sync-options: Prune=false,Delete=false.

Scenario: namespace entry

  • WHEN a test reads k8s/namespaces.yaml.
  • THEN it finds one Namespace startpage with the three pod-security.kubernetes.io/* labels set to restricted and the sync-options annotation Prune=false,Delete=false.

Requirement: restricted-pod

Every container of the Homepage Deployment MUST meet Pod Security restricted.

Scenario: pod security context

  • WHEN a test reads the Deployment of k8s/startpage/.
  • THEN each container sets runAsNonRoot: true, runAsUser and runAsGroup 1000, allowPrivilegeEscalation: false, drops ALL capabilities, sets seccompProfile.type: RuntimeDefault and readOnlyRootFilesystem: true, and the pod mounts an emptyDir at each path that the image writes.

Requirement: pinned-image

The Deployment MUST name the upstream Homepage image by an exact version and a digest.

Scenario: image reference

  • WHEN a test reads the container image of the Deployment.
  • THEN the image ends with @sha256: and a 64-character hexadecimal digest.

Requirement: read-only-rbac

The ClusterRole MUST grant only get and list, on namespaces, pods, nodes, ingresses, ingressroutes.traefik.io and metrics.k8s.io, and MUST NOT grant any verb on Secrets.

Scenario: role rules

  • WHEN a test reads the ClusterRole, the ClusterRoleBinding and the ServiceAccount of k8s/startpage/.
  • THEN every rule holds the verbs get and list only, the resources name namespaces, pods, nodes, ingresses, ingressroutes and the metrics resources, no rule names secrets, and the binding names the ServiceAccount of the namespace.

Requirement: startpage-perimeter

The NetworkPolicy MUST admit ingress only from Traefik on TCP 3000 and egress only to CoreDNS on 53 and the API server on 6443.

Scenario: perimeter peers

  • WHEN a test reads k8s/startpage/networkpolicy.yaml.
  • THEN the ingress rule names the Traefik pod selector of kube-system on TCP 3000, the egress holds DNS to kube-system on UDP and TCP 53 and one ipBlock 0.0.0.0/0 on TCP 6443 with 169.254.169.254/32 in except, and no rule admits a public address.

Requirement: host-placeholder

The Ingress host MUST be start.example.com in git, and deploy-stack MUST set the configured domain on it and on the two container environment values.

Scenario: host substitution

  • WHEN a test reads the Ingress, the Deployment and CONST_K8S_ARGOCD_HOMELAB_APPLICATIONS_BY_STACK.
  • THEN the Ingress host holds start.example.com, HOMEPAGE_ALLOWED_HOSTS holds $(MY_POD_IP):3000,start.example.com, HOMEPAGE_VAR_DOMAIN holds example.com, and the startpage Application is in the infra tuple of the constant.

Requirement: startpage-application

Argo CD Application startpage SHALL track main with prune and selfHeal in project homelab with destination startpage, and the stack tables SHALL name its directory.

Scenario: application registration

  • WHEN a test reads k8s/argocd/apps/startpage.yaml, the project destinations, MANIFESTS_BY_STACK and the Argo CD invariants.
  • THEN the Application sets automated.prune and automated.selfHeal to true, project homelab lists startpage as a destination, and MANIFESTS_BY_STACK["infra"] names the startpage directory.

Requirement: homepage-settings

The Homepage configuration SHALL hold the five groups, statusStyle: dot, disableUpdateCheck: true, color: stone and no theme key, and kubernetes.yaml SHALL set mode: cluster, ingress: true and traefik: true.

Scenario: settings and kubernetes files

  • WHEN a test reads settings.yaml and kubernetes.yaml of k8s/startpage/.
  • THEN the group names are Platform, AI, Observability, Dev tools and Roadmap, the three settings hold their values, no theme key exists, and kubernetes.yaml holds the three values.

Requirement: token-styles

custom.css MUST take every color from the design tokens and MUST hold no color literal.

Scenario: css color source

  • WHEN a test reads k8s/startpage/custom.css, the ast-grep rule css-color-literal and CONST_AST_GREP_SCAN_ROOTS.
  • THEN every color value of the file is a token variable, the files of the rule hold k8s/startpage/custom.css, and the scan roots hold k8s/startpage.

Requirement: text-contrast

Each text pair of the start page MUST reach a contrast ratio of 4.5:1 or more in the light and the dark theme.

Scenario: contrast of the token pairs

  • WHEN a test resolves the token values of each theme and the mapping in custom.css.
  • THEN each text pair that custom.css maps reports a contrast ratio of 4.5 or more.

Requirement: token-build-coverage

The "Design Tokens" CI job MUST cover the token files of k8s/startpage/.

Scenario: job diff filter

  • WHEN a test reads the diff filter of the job and runs test_the_design_tokens_job_builds_the_tokens_only_when_a_path_of_its_filter_changes.
  • THEN the filter names k8s/startpage, and the test passes with a changed token file under that path.

Requirement: no-egress

The pod MUST send no request outside the cluster.

Scenario: no public egress

  • WHEN a test reads the NetworkPolicy and settings.yaml.
  • THEN no egress rule admits port 443 or a public address, and disableUpdateCheck is true.

Requirement: readme-start-page

k8s/README.md SHALL hold a Start page section that names the host, the Application and the step before the merge.

Scenario: readme section

  • WHEN a test reads k8s/README.md.
  • THEN a section named Start page names start.<domain>, Application startpage, and the run of deploy-stack with --argocd-revision before the merge.

Existing Tool Considered

gethomepage/homepage (https://github.com/gethomepage/homepage), GPL-3.0, last activity 2026-11-12, maintained. The alternatives check of 2026-11-13 gave the verdict in-use: the item already names this tool. It covers link discovery from Kubernetes Ingress and Traefik IngressRoute annotations, groups and bookmarks in YAML, status dots, a theme and custom.css hook, and a self-hosted image that a digest pins. It lacks the repository's own objects (Namespace, ServiceAccount, ClusterRole and binding, ConfigMap, Deployment, Service, NetworkPolicy and Ingress), the example.com host substitution that deploy-stack does, the Argo CD Application, the project destination and the stack registration, and the Pod Security restricted hardening with its perimeter. The integration costs about 400,000 tokens and 6 hours, keeping it costs about 20,000 tokens a month, and a fix costs about 50,000 tokens.

Key questions

  • How does the real homelab domain reach the Ingress host and the two container environment values?: Git holds start.example.com in the Ingress host and in HOMEPAGE_ALLOWED_HOSTS, and example.com in HOMEPAGE_VAR_DOMAIN. deploy-stack writes Kustomize patches from config.yaml onto the Application that renders them, so the startpage Application joins the infra tuple of CONST_K8S_ARGOCD_HOMELAB_APPLICATIONS_BY_STACK. (best practice) [sources: k8s/README.md:1020, src/devops_cli/config/constants.py, tests/k8s/test_k8s_argocd_overrides.py:133, tests/k8s/test_k8s_argocd_overrides.py:138]
    • Chosen: Kustomize patches that deploy-stack writes. It is the mechanism that the repository already uses for every host and every container environment value, and it keeps the real domain out of git.
    • Rejected: Kustomize replacements in git. The source object would have to hold the real domain in git, and a replacement cannot rewrite the domain inside $(MY_POD_IP):3000,start.example.com.
    • Rejected: A literal domain in the manifest. This repository is public, so it holds no homelab value.
  • How does the pod read cluster objects without a mounted Secret?: A ServiceAccount in namespace startpage is bound by a ClusterRole and a ClusterRoleBinding that grant get and list on namespaces, pods, nodes, ingresses, ingressroutes.traefik.io and the metrics.k8s.io resources, and on nothing else. The pod keeps its token because it calls the API. (best practice) [sources: k8s/agents/clusterrolebinding.yaml, k8s/README.md, tests/commands/k8s/test_k8s_network_policies.py]
    • Rejected: The built-in view ClusterRole. It grants no read on nodes, on ingressroutes.traefik.io or on the metrics.k8s.io resources.
    • Chosen: One dedicated ClusterRole with get and list. It grants the six resource kinds that the page reads and no verb on Secrets, and a test can hold its rules.
    • Rejected: No API access, with a static list of links. The page would then need an edit for each new service, which is the cost that this item removes.
  • Which egress does the perimeter allow?: DNS to kube-system on UDP and TCP 53, and the API server on TCP 6443 through an ipBlock of 0.0.0.0/0 with 169.254.169.254/32 in except. No rule admits a public address, so the pod sends no request outside the cluster. (best practice) [sources: tests/commands/k8s/test_k8s_network_policies.py, k8s/argo-workflows/networkpolicy.yaml]
    • Rejected: Public HTTPS egress. disableUpdateCheck is true, and the page sends nothing outside the cluster.
    • Rejected: A namespace-only peer for the API server. The cluster's policy engine matches pod addresses only, never the node address that the kubernetes Service resolves to.
    • Chosen: DNS and 6443, with the metadata address excepted. It is the shape that the other perimeters of the tree use, and the test that reads an ipBlock requires the metadata exception.
  • Which theme inputs does the start page take from the design spec?: settings.yaml sets color: stone and no theme key, so the theme switcher stays. custom.css maps the body, links, cards and status classes to the token variables, and configMapGenerator loads it with the other files of k8s/startpage/. (best practice) [sources: docs/DESIGN.md]
    • Chosen: color: stone with custom.css and no theme key. It is the warm-neutral palette nearest to the tokens, and an unset theme keeps the switcher that the design spec asks for.
    • Rejected: A fixed theme: dark. A fixed theme removes the switcher.
    • Rejected: The palette default with no color key. It is not the warm-neutral palette of the design tokens.
  • Do the construct gate and the design-token CI job cover k8s/startpage/ today?: No. CONST_AST_GREP_SCAN_ROOTS holds only src and tests, and the rule css-color-literal lists only src/devops_cli/design/css/**. The "Design Tokens" job checks only the folders that its diff filter names. [sources: src/devops_cli/config/constants.py, tests/gate/construct_gate.py]
  • Does deploy-stack already write the homelab domain into container environment values?: Yes. The change of feat(k8s): set the homelab domain in container env values #4542 is archived, and k8s/README.md names each env[].value of a container that holds the placeholder domain as a value that deploy-stack patches. [sources: openspec/changes/archive/2026-11-11-4542-set-the-homelab-domain-in-container/proposal.md, k8s/README.md:1020]
  • Which stack deploys the start page on a cluster without Argo CD?: Stack infra: MANIFESTS_BY_STACK["infra"] names the startpage/ kustomization directory, so devops k8s deploy-stack --stack infra applies it. (best practice) [sources: src/devops_cli/commands/k8s/stack_lifecycle.py:294, k8s/README.md:25]
    • Rejected: A new stack of its own. CONST_K8S_STACKS is a fixed tuple, and the page is part of the infrastructure.
    • Chosen: Stack infra. The page is an infrastructure service, and the stack table takes a kustomization directory.
  • Does this change add a Cloudflare object for the start host?: No. The wildcard tunnel route, the wildcard DNS record and the wildcard Access application cover the new host, so the change adds no Cloudflare object. (best practice) [sources: k8s/README.md]
    • Chosen: Use the existing wildcard route and Access application. The wildcard public hostname of the tunnel goes to Traefik, and its Access application covers each host under the domain.
    • Rejected: Add a hostname and an Access application for the start host. It duplicates the wildcard route and the wildcard application.

Fit

Fits in one pull request.

Suspected block

None.

Dependencies

#4738, #4542

Activity

  1. added
    source/agent
    on Nov 11, 2026
  2. added
    type/feature
    scope/k8s
    status/new
    value/medium
    effort/high
    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. The owner requested it on 2026-11-11, but the cluster functions without it.
    • Value: Medium. It removes the need to remember 21 host names, but the services remain reachable without it.
    • Effort: High. The body lists Namespace, RBAC, ConfigMap, Deployment, Service, NetworkPolicy, Ingress, Argo CD app, and security hardening.
    • Related: dan-petty/homelab#337, which asks for a different change. Both concern the cluster start page; the candidate deploys it, 4572 adds an Argo Workflows link to it.
  4. added
    priority/p2-medium
    on Nov 11, 2026
  5. dan-petty commented on Nov 11, 2026

    @dan-petty
    OwnerAuthor

    Scope from the design spec plan (2026-11-11)

    The design spec tracker #4735 folds its start page item into this issue. Homepage takes a Tailwind palette name and custom.css only, so the start page follows the spec through these two inputs.

    Scope added.

    • settings.yaml: color: stone, the Tailwind palette nearest to the warm-neutral tokens. Leave theme unset, so the theme switcher stays (owner decision 11 of feat(design): track the project design spec #4735). Homepage v2.7.0 has no system value, and a fixed theme removes the switcher (Homepage settings docs).
    • custom.css: the generated token CSS of feat(design): add the design tokens and their build #4738 plus about 20 lines that map the body, links, cards and status classes to token variables. Homepage switches its theme with a class on html, so the token build gets one more css/variables file entry with the selector html.dark that writes to k8s/startpage/ (configuration only; confirm the class name at deploy).
    • Load the files through configMapGenerator from k8s/startpage/ (the kustomize load restrictor blocks files outside the directory).
    • The Homepage R G B channel variables stay at the chosen Tailwind palette (no custom transform).

    Acceptance criteria added.

    • The start page renders in both Homepage themes with the token colors: a headless check reads the computed body background #ffffff (light) and #151514 (dark), and every text pair is 4.5:1 or more.
    • The CI diff of the "Design Tokens" job covers k8s/startpage/tokens-*.css.

    Dependencies added. #4738 (the token build).

  6. dan-petty commented on Nov 11, 2026

    @dan-petty
    OwnerAuthor

    Note from #4738 (pull request #4811) for this item:

    • The token build adds the file entry with the selector html.dark to a config of design/sd/, with its output in k8s/startpage/. The CI job "Design Tokens" checks only the folders that its diff step names. The test test_the_design_tokens_job_builds_the_tokens_only_when_a_path_of_its_filter_changes fails until the diff step names k8s/startpage, so add it there.
    • The ast-grep rule css-color-literal holds only src/devops_cli/design/css/** now, and the construct gate scans only src and tests. When this item adds custom.css with no color literal, add the file to the files of the rule and to CONST_AST_GREP_RULE_FILES (tests/gate/construct_gate.py), and add the folder to the scan roots.
    • docs/DESIGN.md, "Rules for each target", holds the rules of the start page.
  7. devops-cli-service commented on Nov 13, 2026

    @devops-cli-service
    Contributor

    Alternatives check: in-use

    Reason: The issue already names Homepage (gethomepage.dev), and the searches for a cluster start page tool led to the same project, gethomepage/homepage: its Kubernetes integration builds the service list from Ingress and Traefik IngressRoute annotations, and its configuration is YAML, so it covers the whole need of a self-maintaining start page. What remains in the issue is project-side integration (manifests, RBAC, NetworkPolicy, Argo CD app, host placeholder), not a missing capability of the tool.

    The item already names this tool.

    Tool: gethomepage/homepage (https://github.com/gethomepage/homepage)

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

    Covers:

    • Discovers service links from Kubernetes Ingress and Traefik IngressRoute annotations (kubernetes.yaml with mode: cluster, ingress: true, traefik: true)
    • A single start page with groups and bookmarks, configured in YAML that Argo CD can own
    • Status indicators (statusStyle: dot) and a theme/custom CSS hook for the design tokens
    • Runs as a self-hosted container image that can be pinned by digest
    • No build step; open project, so no vendor lock-in

    Lacks:

    • Ships no repository-specific manifests: the Namespace, ServiceAccount, ClusterRole/Binding, ConfigMap, Deployment, Service, NetworkPolicy and Ingress must be written in k8s/startpage/
    • Does not substitute the example.com placeholder host in the Ingress; deploy-stack must do it
    • No built-in Argo CD Application, project destination or stack registration for the new app
    • Needs the project's Pod Security restricted hardening and its own perimeter NetworkPolicy; these are not provided by the image
    • Does not redirect or route the apex domain (deliberately out of scope)

    Tools considered:

    Searches run:

    • Homepage dashboard kubernetes ingress autodiscovery links, results: 5
    • gethomepage.dev kubernetes ingress traefik ingressroute annotations automatic service discovery, results: 5
    • gethomepage kubernetes ingress widget documentation, results: 5
    • "homepage" dashboard kubernetes mode cluster ingress: true, results: 5
    • Homepage self-hosted application dashboard github gethomepage, results: 5
    • gethomepage homepage kubernetes dashboard auto discover ingress services, results: 5
    • gethomepage.dev, 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.

  8. added
    status/ready
    and removed
    status/new
    on Nov 14, 2026
  9. devops-cli-service commented on Nov 14, 2026

    @devops-cli-service
    Contributor

    Status set to Ready at 458bb1a (see proposed design in issue body).

  10. added
    owner/service
    on Nov 24, 2026
  11. devops-cli-service commented on Nov 24, 2026

    @devops-cli-service
    Contributor

    Plan state: branch feat/4598-deploy-homepage-as-the-cluster-start, draft pull request #6982. The pull request plans the item and closes no issue. The stage job and the step fix-plan edit this comment, and a comment of each run tells what the run did.

    The task groups, with the tokens of the inputs of each step, for a budget of 64000 tokens:

    1. Write the decision record of the start page: 16828 tokens

    A model review of the plan found these points. They stop no draft, and a person judges them:

    • blocker false_premise at proposal (summary): The plan puts the start page in this repository's k8s/ environment tree, but since step 11 Argo CD reads that tree from dan-petty/homelab, and the k8s row's environment-freeze check refuses every changed k8s/ path outside the two product folders. So each group's --only k8s verify fails and the change deploys nothing live. Evidence: "f"{_NAME}: {path} is an environment path, and dan-petty/homelab holds the environment.""
    • major false_premise at design (decisions): The decision to copy the token CSS by hand instead of running the build rests on the Design Tokens job refusing a copy that differs from the build. The job's diff step names only three directories, so a k8s/startpage copy that differs from the build passes. Evidence: "git diff --exit-code -- docs/assets/css src/devops_cli/design k8s/monitoring/dashboards"
    • major other at tasks (10): The new startpage platform writes two token outputs under k8s/startpage/, but test_the_design_tokens_job_builds_the_tokens_only_when_a_path_of_its_filter_changes requires every output of every design/sd config to lie under a directory of the job's diff step and pins their count at 11. Adding the filter alone leaves the test failing; the diff step and the expected count must change too. Evidence: "[str(path) for path in outputs if not any(path.is_relative_to(root) for root in checked)],"
    • major other at tasks (9): The rule glob k8s/startpage/** also covers the generated tokens-light.css and tokens-dark.css, whose hex values the css-color-literal rule reports, so the constructs row fails on the plan's own token output. The rule must name k8s/startpage/custom.css only. Evidence: "and k8s/startpage/** to CONST_DESIGN_CSS_FILES of tests/gate/construct_gate.py and to the files of .ast-grep/rules/css-color-literal.yml"
    • major spec_delta_wrong at spec k8s-network-policies (The start page perimeter admits Traefik, DNS and the API server): The delta defines one NetworkPolicy that admits both ingress and egress, which contradicts the base requirement No NetworkPolicy has both types and is refused by the k8s row's dual_type_problems. The perimeter must be split into a -ingress and a -egress policy. Evidence: "The NetworkPolicy startpage-default-perimeter MUST admit ingress only from the Traefik pods of kube-system on TCP 3000, and egress only to the DNS pods of kube-system on UDP and TCP 53 and to the API server on TCP 6443"
    • minor spec_delta_wrong at spec k8s-startpage (restricted-pod): The scenario's THEN asks for an emptyDir at each path the image writes, which no test can know; only the mounts the manifest declares are assertable. Evidence: "mounts an emptyDir at each path that the image writes"
    • major verify_form at tasks (2): The group adds a Style Dictionary platform and the two token CSS files, but its verify runs only the k8s row, which builds no token and runs no design test, so neither the platform nor the copied CSS is checked. Evidence: "uv run devops ci --check --only k8s"
    • minor false_premise at proposal (security): The security section says the start page check module fails when the perimeter admits a public egress peer, but the module's five checks read the namespace, the pod context, the image, the role and the registration and never the NetworkPolicy. Evidence: "The k8s row and the start page check module fail when a rule grants another verb, names secrets, admits a public egress peer, or drops a restricted setting."
    • minor false_premise at proposal (feasibility): The plan says every k8s path the issue names is an environment path and that the environment tree's README goes away, but the freeze check exempts Markdown, and step 17 keeps k8s/README.md and deletes only the text on the check and the rule. Evidence: "so the README of the environment tree goes away with the environment files and the plan writes no section in it."
    • minor false_premise at design (rejected): The evidence says step 15 deletes both tables, but step 15 deletes only the two CONST_K8S_ARGOCD_HOMELAB_* constants; APPLICATIONS_BY_STACK in src/devops_cli/commands/k8s/stack_lifecycle.py stays. Evidence: "deletes both tables and the override path at step 15, so a new entry would be deleted with them."
    • minor other at tasks (1): The record's Confirmation names a live command of another repository, but the ADR page requires the section to name the test, the CI row or the metric that shows the code keeps the decision. Evidence: "Confirmation with devops argo cd apps status startpage"
  12. devops-cli-service commented on Nov 24, 2026

    @devops-cli-service
    Contributor

    The stage job staged the plan of draft pull request #6982. The plan state comment of #6982 holds the branch, the task groups and the findings.

    The runs of the planner and the review made 129 model request(s), and used 11520468 input tokens and 281756 output tokens. The tool calls, in order:

    1. list_files({"directory":"k8s"})
    2. read_file({"path":"src/devops_cli/config/constants.py","start_line":1200,"end_line":1260})
    3. search_code({"text":"MANIFESTS_BY_STACK"})
    4. read_file({"path":"src/devops_cli/config/constants.py","start_line":4930,"end_line":4990})
    5. search_code({"text":"HOMEPAGE_ALLOWED_HOSTS"})
    6. search_code({"text":"startpage"})
    7. read_file({"path":"tests/k8s/test_k8s_argocd_overrides.py","start_line":100,"end_line":175})
    8. list_files({"directory":"k8s/argocd"})
    9. search_code({"text":"k8s/startpage"})
    10. list_files({"directory":"k8s/argocd/apps"})
    11. read_issue({"number":4738})
    12. read_issue({"number":4542})
    13. list_files({"directory":"design/sd"})
    14. search_code({"text":"html.dark"})
    15. read_file({"path":"design/sd/dark.json"})
    16. read_file({"path":"design/sd/light.json"})
    17. search_code({"text":"DESIGN_FILTER"})
    18. read_file({"path":"design/sd/dark-explicit.json"})
    19. read_file({"path":"tests/invariants/test_workflow_contracts.py","start_line":655,"end_line":800})
    20. research_lookup({"question":"Does gethomepage/homepage serve other files from its config directory, such as a CSS file referenced by @import from custom.css, or does it serve only custom.css?"})
    21. research_grep({"term":"custom.css"})
    22. file_symbols({"path":"tests/gate/construct_gate.py"})
    23. search_code({"text":"css-color-literal"})
    24. read_file({"path":".ast-grep/rules/css-color-literal.yml"})
    25. read_file({"path":"tests/gate/construct_gate.py","start_line":60,"end_line":135})
    26. read_file({"end_line":262,"path":"tests/gate/construct_gate.py","start_line":136})
    27. list_files({"directory":"k8s/agents"})
    28. read_file({"path":"k8s/argocd/apps/agents.yaml"})
    29. read_file({"path":"k8s/argocd/apps/projects.yaml"})
    30. read_file({"path":"k8s/argocd/apps/kustomization.yaml"})
    31. read_file({"path":"k8s/argocd/kustomization.yaml"})
    32. read_file({"path":"k8s/kustomization.yaml"})
    33. search_code({"text":"argocd/apps"})
    34. search_code({"text":"MANIFESTS_BY_STACK: "})
    35. search_code({"text":"APPLICATIONS_BY_STACK: "})
    36. read_file({"end_line":345,"path":"src/devops_cli/commands/k8s/stack_lifecycle.py","start_line":270})
    37. search_code({"text":"APPLICATIONS_BY_STACK"})
    38. search_code({"text":"homelab Applications"})
    39. read_spec({"capability":"gitops-host-overrides"})
    40. search_code({"text":"CONST_K8S_ARGOCD_HOMELAB_APPLICATIONS"})
    41. read_spec({"capability":"gitops-host-overrides","requirement":"Argo CD applies three homelab Applications server-side"})
    42. list_files({"directory":"tests/gate"})
    43. list_files({"directory":"tests/commands/k8s"})
    44. list_files({"directory":"tests"})
    45. list_files({"directory":"tests/commands/k8s"})
    46. list_files({"directory":"tests/gate"})
    47. list_files({"directory":"tests/config"})
    48. search_code({"text":"construct_gate"})
    49. list_files({"directory":"tests/gate/k8s_checks"})
    50. list_files({"directory":"tests/k8s"})
    51. read_file({"path":"design/sd/dark.json"})
    52. list_files({"directory":"tests/invariants"})
    53. file_symbols({"path":"tests/gate/construct_gate.py"})
    54. file_symbols({"path":"tests/invariants/test_construct_gate_check.py"})
    55. read_file({"path":"tests/gate/construct_gate.py","start_line":60,"end_line":215})
    56. read_file({"path":"src/devops_cli/config/constants.py","start_line":4910,"end_line":4990})
    57. read_file({"path":"tests/gate/construct_gate.py","start_line":1,"end_line":59})
    58. file_symbols({"path":"tests/gate/k8s.py"})
    59. file_symbols({"path":"tests/gate/k8s_checks/network_policies.py"})
    60. read_file({"path":"design/sd/light.json","end_line":30})
    61. read_file({"path":"tests/gate/k8s.py"})
    62. read_file({"path":"tests/gate/k8s_checks/argocd_apps.py","end_line":60})
    63. read_file({"end_line":80,"path":"tests/gate/k8s_checks/environment_freeze.py"})
    64. read_file({"end_line":60,"path":"tests/gate/k8s_checks/deploy_stack.py"})
    65. read_file({"end_line":80,"path":"tests/gate/runner.py"})
    66. git_log({"path":"tests/gate/k8s_checks/environment_freeze.py"})
    67. read_file({"path":"tests/gate/k8s_checks/environment_freeze.py","start_line":78})
    68. search_code({"text":"environment path"})
    69. search_code({"text":"APPLICATIONS_BY_STACK"})
    70. search_code({"text":"CONST_K8S_ARGOCD_HOMELAB_APPLICATIONS_BY_STACK"})
    71. read_file({"path":"openspec/changes/4530-expose-the-argo-workflows-ui-behind/proposal.md"})
    72. read_file({"path":"docs/HOMELAB_REPO_SWITCH.md","start_line":160,"end_line":200})
    73. read_file({"path":"openspec/changes/archive/2026-11-23-6820-environment-path-freeze/proposal.md"})
    74. read_file({"path":"openspec/changes/archive/2026-11-23-6820-environment-path-freeze/design.md"})
    75. read_file({"end_line":135,"path":"tests/gate/k8s_checks/network_policies.py","start_line":1})
    76. list_files({"directory":"design/tokens"})
    77. search_code({"text":"KUSTOMIZATIONS_BY_STACK"})
    78. read_file({"end_line":360,"path":"src/devops_cli/commands/k8s/stack_lifecycle.py","start_line":255})
    79. read_file({"end_line":400,"path":"src/devops_cli/commands/k8s/stack_lifecycle.py","start_line":360})
    80. read_file({"end_line":170,"path":"tests/support/k8s_tree.py"})
    81. file_symbols({"path":"tests/gate/k8s_checks/host_overrides.py"})
    82. file_symbols({"path":"tests/gate/k8s_checks/argocd_overrides.py"})
    83. read_file({"end_line":70,"path":"tests/gate/k8s_checks/host_overrides.py","start_line":20})
    84. read_file({"path":"src/devops_cli/config/constants.py","start_line":1200,"end_line":1250})
    85. read_file({"path":"tests/k8s/test_k8s_argocd_overrides.py","start_line":128,"end_line":165})
    86. search_code({"text":"DESIGN_FILTER"})
    87. list_files({"directory":"tests/commands/k8s"})
    88. list_files({"directory":"k8s"})
    89. list_files({"directory":"tests/gate/k8s_checks"})
    90. read_file({"path":"tests/gate/runner.py","start_line":1,"end_line":70})
    91. search_code({"text":"namespaces.yaml"})
    92. read_file({"path":"src/devops_cli/config/constants.py","start_line":1195,"end_line":1245})
    93. read_file({"path":"tests/gate/k8s_checks/host_overrides.py","start_line":1,"end_line":90})
    94. read_file({"path":"src/devops_cli/commands/k8s/stack_lifecycle.py","start_line":270,"end_line":330})
    95. read_file({"end_line":175,"path":"tests/k8s/test_k8s_argocd_overrides.py","start_line":100})
    96. read_file({"end_line":120,"path":"tests/gate/construct_gate.py","start_line":75})
    97. read_file({"path":"tests/gate/k8s_checks/environment_freeze.py"})
    98. search_code({"text":"pod-security.kubernetes.io/enforce"})
    99. search_code({"text":"NOT_IN_RUNNER"})
    100. search_code({"text":"design-tokens"})
    101. list_files({"directory":"tests/design"})
    102. read_file({"path":".github/workflows/ci.yml","start_line":855,"end_line":935})
    103. read_file({"end_line":720,"path":"tests/invariants/test_workflow_contracts.py","start_line":655})
    104. read_file({"end_line":120,"path":"tests/design/test_design_spec.py","start_line":1})
    105. read_file({"end_line":760,"path":"tests/invariants/test_workflow_contracts.py","start_line":720})
    106. read_file({"path":"tests/support/k8s_tree.py"})
    107. read_file({"path":"tests/gate/k8s_render.py"})
    108. list_files({"directory":"tests/k8s"})
    109. search_code({"text":"network_polic"})
    110. read_file({"path":"tests/gate/k8s_checks/deploy_stack.py"})
    111. read_file({"path":"tests/gate/k8s_checks/argocd_apps.py"})
    112. search_code({"text":"APPLICATIONS_BY_STACK"})
    113. read_file({"path":"tests/design/test_contrast.py"})
    114. search_code({"text":"k8s_checks"})
    115. read_file({"end_line":1030,"path":"k8s/README.md","start_line":1005})
    116. read_file({"end_line":105,"path":"docs/TESTING.md","start_line":88})
    117. search_code({"text":"environment-freeze"})
    118. search_code({"text":"HOMELAB_REPO_SWITCH"})
    119. read_file({"path":"tests/gate/k8s_checks/argocd_overrides.py"})
    120. search_code({"text":"CONST_K8S_ARGOCD_HOMELAB_APPLICATIONS"})
    121. read_file({"end_line":185,"path":"src/devops_cli/k8s/argocd_gate.py","start_line":130})
    122. search_code({"text":"def _host_fields"})
    123. read_file({"end_line":240,"path":"src/devops_cli/k8s/argocd_overrides.py","start_line":120})
    124. search_code({"text":"discover_argocd_applications"})
    125. search_code({"text":"_check_rendered_doc_placeholders"})
    126. callers({"symbol":"validate_applications"})
    127. read_file({"end_line":80,"path":"src/devops_cli/k8s/argocd_gate.py","start_line":50})
    128. read_file({"end_line":260,"path":"src/devops_cli/k8s/argocd_gate.py","start_line":195})
    129. read_file({"end_line":80,"path":"tests/k8s/test_k8s_argocd_gate.py","start_line":1})
    130. read_file({"path":"Makefile"})
    131. search_code({"text":"style-dictionary"})
    132. search_code({"text":"NOT_IN_RUNNER: "})
    133. read_spec({"capability":"k8s-network-policies"})
    134. read_spec({"capability":"homelab-project-destinations"})
    135. read_spec({"capability":"homelab-project-destinations","requirement":"Homelab AppProject destination namespaces"})
    136. read_spec({})
    137. read_spec({"capability":"design-tokens"})
    138. search_code({"text":"def test_"})
    139. read_file({"end_line":280,"path":"tests/k8s/test_k8s_argo_workflows.py","start_line":180})
    140. read_spec({"capability":"k8s-network-policies","requirement":"No NetworkPolicy has both types"})
    141. search_code({"text":"def dual_type_problems"})
    142. read_issue({"number":6966})
    143. read_issue({"number":6978})
    144. read_file({"end_line":285,"path":"docs/DESIGN.md","start_line":240})
    145. read_file({"path":"tests/design/test_tokens.py"})
    146. read_file({"end_line":300,"path":"tests/gate/k8s_checks/network_policies.py","start_line":230})
    147. search_code({"text":"is an environment path"})
    148. search_code({"text":"test_the_design_tokens_job_builds_the_tokens_only_when_a_path_of_its_filter_changes"})
    149. read_file({"path":"tests/gate/k8s_checks/environment_freeze.py"})
    150. read_file({"path":"tests/invariants/test_workflow_contracts.py","start_line":630,"end_line":760})
    151. read_file({"path":"tests/gate/k8s.py"})
    152. list_files({"directory":"docs/adr"})
    153. read_file({"path":"docs/adr/README.md"})
    154. read_spec({"capability":"adr-records"})
    155. file_symbols({"path":"tests/invariants/test_adr_records.py"})
    156. search_code({"text":"\"docs\":"})
    157. search_code({"text":"docs check"})
    158. read_file({"path":"tests/invariants/test_adr_records.py"})
    159. file_symbols({"path":"src/devops_cli/docs/adr_records.py"})
    160. search_code({"text":"CONST_ADR_"})
    161. read_file({"path":"src/devops_cli/docs/adr_records.py","start_line":1,"end_line":60})
    162. read_file({"path":"src/devops_cli/docs/adr_records.py","start_line":145,"end_line":200})
    163. search_code({"text":"CONST_DOCS_INVENTORY"})
    164. search_code({"text":"Step 17"})
    165. search_code({"text":"HOMELAB_REPO_SWITCH"})
    166. read_file({"path":"docs/HOMELAB_REPO_SWITCH.md","start_line":180,"end_line":300})
    167. search_code({"text":"apps status"})
    168. list_files({"directory":"src/devops_cli/commands/argo"})
    169. list_files({"directory":"tests/commands/k8s"})
    170. list_files({"directory":"tests/gate/k8s_checks"})
    171. search_code({"text":"constant_claims"})
    172. list_files({"directory":"docs/adr"})
    173. list_files({"directory":"tests/gate/k8s_checks"})
    174. read_file({"path":"src/devops_cli/docs/adr_records.py","start_line":1,"end_line":90})
    175. read_file({"path":"tests/gate/k8s_checks/environment_freeze.py","start_line":1,"end_line":80})
    176. search_code({"text":"issue:"})
    177. read_file({"path":"src/devops_cli/roadmap/adr.py","start_line":1,"end_line":80})
    178. list_files({"directory":"tests/commands/k8s"})
    179. list_files({"directory":""})
    180. list_files({"directory":"tests/commands/k8s"})
    181. list_files({"directory":"docs/adr"})
    182. list_files({"directory":"tests/gate/k8s_checks"})
    183. read_file({"path":"tests/gate/k8s_checks/environment_freeze.py"})
    184. read_file({"path":"docs/HOMELAB_REPO_SWITCH.md","start_line":170,"end_line":300})
    185. read_file({"path":"docs/HOMELAB_REPO_SWITCH.md","start_line":284,"end_line":340})
    186. read_file({"path":"tests/gate/k8s.py","start_line":1,"end_line":40})
    187. read_file({"path":"src/devops_cli/docs/adr_records.py","start_line":25,"end_line":50})
    188. read_file({"path":"docs/adr/README.md","start_line":130,"end_line":175})
    189. read_file({"path":"src/devops_cli/docs/adr_records.py","start_line":150,"end_line":260})
    190. search_code({"text":"NOT_IN_RUNNER"})
    191. read_issue({"number":6978})
    192. read_issue({"number":6966})
    193. list_files({"directory":"k8s"})
    194. search_code({"text":"startpage"})
    195. git_log({"path":"k8s/README.md"})
    196. search_code({"text":"homepage"})
    197. read_file({"path":"docs/adr/README.md","start_line":55,"end_line":140})
    198. search_code({"text":"ci test"})
    199. search_code({"text":"docs generate"})
    200. repo_map({"directory":"src/devops_cli/docs"})
    201. search_code({"text":"4598"})
    202. read_file({"path":"docs/DESIGN.md","start_line":248,"end_line":275})
    203. search_code({"text":"MANIFESTS_BY_STACK"})
    204. search_code({"text":"gethomepage.dev"})
    205. search_code({"text":"APPLICATIONS_BY_STACK"})
    206. search_code({"text":"sync_index"})
    207. search_code({"text":"NOT_IN_RUNNER: Final"})
    208. read_file({"path":"tests/docs/test_docs_adr_records.py","start_line":1,"end_line":80})
    209. search_code({"text":"def record_problems"})
    210. search_code({"text":"APPLICATIONS_BY_STACK: Final"})
    211. search_code({"text":"CONST_K8S_ARGOCD_HOMELAB_APPLICATIONS_BY_STACK"})
    212. search_code({"text":"_BY_STACK"})
    213. read_file({"path":"src/devops_cli/commands/k8s/stack_lifecycle.py","start_line":980,"end_line":1020})
    214. search_code({"text":"APPLICATIONS"})
    215. file_symbols({"path":"src/devops_cli/commands/k8s/stack_lifecycle.py"})
    216. read_file({"path":"src/devops_cli/commands/k8s/stack_lifecycle.py","start_line":1,"end_line":130})
    217. references({"name":"APPLICATIONS_BY_STACK"})
    218. read_file({"path":"src/devops_cli/commands/k8s/stack_lifecycle.py","start_line":270,"end_line":300})
    219. read_file({"path":"src/devops_cli/commands/k8s/stack_lifecycle.py","start_line":1300,"end_line":1330})
    220. search_code({"text":"NOT_IN_RUNNER"})
    221. search_code({"text":"markdown-it-py"})

    Tool calls: callers=1 (empty=0), file_symbols=10 (empty=0), git_log=2 (empty=0), list_files=32 (empty=0), read_file=92 (empty=0), read_issue=6 (empty=0), read_spec=9 (empty=0), references=1 (empty=0), repo_map=1 (empty=0), research_grep=1 (empty=1), research_lookup=1 (empty=0), search_code=65 (empty=2)

    The stage job read the open pull requests and their files in 1 GraphQL request(s).

    The plan request held these comments of the item whole: #4598 (comment), #4598 (comment), #4598 (comment), #4598 (comment), #4598 (comment).

  13. removed
    owner/service
    on Nov 24, 2026
  14. added a commit that references this issue on Nov 24, 2026
  15. added
    status/planned
    and removed
    status/ready
    on Nov 24, 2026
  16. added
    status/in-progress
    status/in-review
    and removed
    status/planned
    status/in-progress
    on Nov 25, 2026
  17. removed
    status/in-review
    on Nov 25, 2026
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/highpriority/p2-mediumscope/k8ssource/agenttype/featurevalue/medium

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions