Skip to content

feat(k8s): show devops Workflows in the Argo UI #4570

Done

Description

@devops-cli-service

Update 2026-11-26 (infra move): the Argo Workflows values and Applications that deploy are in dan-petty/homelab. Application devops there renders k8s/devops directly, and #7290 deletes k8s/overlays/homelab/devops here. The Role and RoleBinding still go in k8s/devops/. The Argo server that uses them is dan-petty/homelab#335, which moves to dan-petty/homelab.


Split from dan-petty/homelab#335.

Problem: The Argo UI account cannot list Workflows or pod logs in namespace devops. The controller watches only argo-workflows, and no roadmap job runs on Argo Workflows yet. Why deferred: This part waits on the issue that lets Argo Workflows run roadmap pods in devops. Acceptance criteria: The read-only ServiceAccount has get, list and watch on Workflows and pod logs in devops. It has no create, update, patch or delete verb. A test renders the Role and RoleBinding. A live kubectl auth can-i check in the pull request confirms the same.

Proposed design

Problem statement

The Argo UI account cannot list Workflows or read pod logs in namespace devops. The controller watches only argo-workflows until #4566 moves it to devops. The chart sets server.enabled: false. This change adds a read-only Role and RoleBinding in devops for ServiceAccount argo-workflows-server. The UI server stays disabled until a later item.

Acceptance criteria

Requirement: Workflow read access

Role argo-workflows-viewer in namespace devops SHALL grant get, list and watch on resource workflows in API group argoproj.io.

Scenario: Render the Workflow rule

  • WHEN uv run devops ci --check --only k8s runs.
  • THEN The k8s check passes and the render of k8s/devops holds Role argo-workflows-viewer in namespace devops with a rule for API group argoproj.io, resource workflows and verbs get, list and watch.

Requirement: Pod read access

Role argo-workflows-viewer SHALL grant get, list and watch on resource pods in the core API group.

Scenario: Render the pod rule

  • WHEN uv run devops ci --check --only k8s runs.
  • THEN The k8s check passes and the render of k8s/devops holds a rule of Role argo-workflows-viewer for the core API group, resource pods and verbs get, list and watch.

Requirement: Pod log read access

Role argo-workflows-viewer SHALL grant get on resource pods/log in the core API group.

Scenario: Render the pod log rule

  • WHEN uv run devops ci --check --only k8s runs.
  • THEN The k8s check passes and the render of k8s/devops holds a rule of Role argo-workflows-viewer for the core API group, resource pods/log and verb get.

Requirement: No write verb

Role argo-workflows-viewer MUST grant only the verbs get, list and watch.

Scenario: Check every verb

  • WHEN uv run devops ci --check --only k8s runs.
  • THEN The k8s check passes and every verb of every rule of Role argo-workflows-viewer is get, list or watch, and no rule holds create, update, patch, delete or deletecollection.

Requirement: RoleBinding subject

RoleBinding argo-workflows-viewer in namespace devops SHALL bind Role argo-workflows-viewer to ServiceAccount argo-workflows-server in namespace argo-workflows.

Scenario: Render the RoleBinding

  • WHEN uv run devops ci --check --only k8s runs.
  • THEN The k8s check passes and the render of k8s/devops holds RoleBinding argo-workflows-viewer in namespace devops that names Role argo-workflows-viewer and one subject of kind ServiceAccount, name argo-workflows-server, namespace argo-workflows.

Requirement: Documented live check

The Argo Workflows section of k8s/README.md SHALL give the kubectl auth can-i commands that check ServiceAccount argo-workflows-server in namespace devops, including a create check that MUST answer no.

Scenario: Read the live check commands

  • WHEN A test reads the Argo Workflows section of k8s/README.md.
  • THEN The section holds kubectl auth can-i for get workflows.argoproj.io, for get pods/log and for create workflows.argoproj.io, each with --as=system:serviceaccount:argo-workflows:argo-workflows-server and -n devops, and it states that the create check must answer no.

Requirement: Pending a person after the merge

After the merge, a person MUST record the live kubectl auth can-i check for ServiceAccount argo-workflows-server in namespace devops.

Scenario: Record the live check

  • WHEN A person runs kubectl auth can-i get workflows.argoproj.io --as=system:serviceaccount:argo-workflows:argo-workflows-server -n devops, kubectl auth can-i get pods/log --as=system:serviceaccount:argo-workflows:argo-workflows-server -n devops and kubectl auth can-i create workflows.argoproj.io --as=system:serviceaccount:argo-workflows:argo-workflows-server -n devops after the merge.
  • THEN The merged pull request records yes for the two get checks and no for the create check.

Existing Tool Considered

No alternatives check has run. Argo Workflows is the open, maintained tool, and the argo-helm chart argo-workflows 2.0.18 installs it. The chart gives the UI and its Kubernetes RBAC model. It lacks a read-only Role and RoleBinding in namespace devops for its server ServiceAccount argo-workflows-server; its server RBAC object is in namespace argo-workflows, and this repository sets server.enabled: false. This change adds two YAML objects, one kustomization entry, one test and one README section. It builds no code of its own.

Key questions

  • Which chart version, release and namespace does Application argo-workflows install, and which ServiceAccount runs its server pod?: Chart argo-workflows 2.0.18 comes from https://argoproj.github.io/argo-helm. Release argo-workflows installs it in namespace argo-workflows. The server pod uses ServiceAccount argo-workflows-server in namespace argo-workflows. The RoleBinding subject therefore names namespace argo-workflows, not devops. With server.enabled: false the chart renders no server pod. A RoleBinding may name a ServiceAccount that does not exist yet. [sources: k8s/argocd/apps/argo-workflows.yaml:11-22, k8s/argo-workflows/values.yaml:29-30]
  • Which verbs does the read-only Role need for pods and pod logs?: Grant get, list and watch on pods. Grant get on pods/log. (best practice) [sources: k8s/devops/roadmap-service/role.yaml:34-41, tests/gate/k8s_checks/runner.py:231-232]
    • Chosen: get, list and watch on pods; get on pods/log. The UI lists and watches the pods of a Workflow and reads the log of one named pod. The existing Role reads pods/log with get.
    • Rejected: get, list and watch on pods/log. A client reads the log of one named pod. No code lists logs, and the existing Role grants get only.
  • Which resources does the Role cover?: The Role covers workflows in API group argoproj.io, and pods and pods/log in the core group. It holds no rule for workflowtemplates, cronworkflows, events or secrets. (best practice) [sources: k8s/devops/roadmap-service/role.yaml:34-41, docs/adr/0008-argo-workflows-run-the-roadmap-jobs-after-a-measured-go.md:18]
    • Chosen: workflows, pods and pods/log. The issue shows the Workflows page and its logs. The project gives a component only the resources it reads.
    • Rejected: also workflowtemplates, cronworkflows, events and workflowtaskresults. The issue names Workflows and pod logs. Each extra resource widens a read grant this page does not need.
  • Should the Role grant write verbs?: No. It grants only get, list and watch. (best practice) [sources: k8s/agents/clusterrolebinding.yaml:1, k8s/devops/roadmap-service/role.yaml:19-41, docs/adr/0008-argo-workflows-run-the-roadmap-jobs-after-a-measured-go.md:18]
    • Chosen: Read-only Role. The UI displays Workflows and logs. The project binds its agent identity to the read-only view ClusterRole.
    • Rejected: Read-write Role. A write verb would let the UI account change or delete Workflows. The UI needs none.
  • Where do the Role and RoleBinding live?: The Role and RoleBinding live in k8s/devops/argo-workflows-viewer.yaml. k8s/devops/kustomization.yaml lists the file. Application devops renders k8s/overlays/homelab/devops, which includes k8s/devops. (best practice) [sources: k8s/devops/kustomization.yaml:3-15, k8s/overlays/homelab/devops/kustomization.yaml:4-5, k8s/argocd/apps/devops.yaml:17-23]
    • Chosen: k8s/devops/argo-workflows-viewer.yaml. The two objects are objects of namespace devops. Application devops renders k8s/overlays/homelab/devops, which includes k8s/devops, and the k8s gate check renders k8s/devops.
    • Rejected: k8s/argo-workflows/. Application argo-workflows installs the chart into namespace argo-workflows. A devops Role there lands in the wrong namespace, and the devops render does not carry it.
  • Does this change enable the Argo Workflows UI server?: No. server.enabled stays false. The change adds the RBAC only. (best practice) [sources: k8s/argo-workflows/values.yaml:29-30, k8s/README.md:773]
    • Chosen: Add the RBAC only. The issue's criteria name the Role, the RoleBinding and the live check. The server needs a Service, an ingress, an auth mode and replicas of its own.
    • Rejected: Enable argo-server in this change. It widens the change to the server Deployment, its Service, its ingress and its authentication. The issue names none of them.
  • How does the pull request confirm the live permissions?: A person runs kubectl auth can-i with --as=system:serviceaccount:argo-workflows:argo-workflows-server -n devops for get workflows.argoproj.io, get pods/log and create workflows.argoproj.io. The person records the output in the merged pull request. The same commands go in the Argo Workflows section of k8s/README.md. An offline test checks them. (best practice) [sources: docs/adr/0008-argo-workflows-run-the-roadmap-jobs-after-a-measured-go.md:42, k8s/README.md:788-789]
    • Chosen: A person runs the check and records the output. The tests run offline. Only a live kubectl auth can-i check proves the Role. The install check of k8s/README.md already gives the kubectl auth can-i ... --as=... shape for argo-workflows-executor.
    • Rejected: A pull request check runs it. The checks of the repository read the rendered manifests and hold no cluster credential.
  • Which issue must finish before this change?: feat(k8s): let Argo Workflows run roadmap pods in devops #4566 is the engine step of tracker feat(roadmap): move Service work to Workflows and Valkey #4517. ADR 0021 records that it runs the controller with --namespaced --managed-namespace devops. It moves the Workflows to devops and gives the controller a Role there. dan-petty/homelab#335 is the tracker this issue is split from, not a prerequisite. (best practice) [sources: docs/adr/0021-the-roadmap-service-is-a-webhook-router-cluster-pods-run-the-roadmap-jobs-and-valkey-holds-their-shared-state.md:114, docs/adr/0021-the-roadmap-service-is-a-webhook-router-cluster-pods-run-the-roadmap-jobs-and-valkey-holds-their-shared-state.md:314, docs/adr/0008-argo-workflows-run-the-roadmap-jobs-after-a-measured-go.md:50]

Fit

Fits in one pull request.

Suspected block

None.

Dependencies

#4566

Activity

  1. added
    source/agent
    type/feature
    scope/k8s
    status/new
    value/medium
    effort/low
    on Nov 11, 2026
  2. devops-cli-service commented on Nov 11, 2026

    @devops-cli-service
    ContributorAuthor

    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 change gives read-only visibility in the UI and waits on dan-petty/devops-cli#4566, so it is not urgent.
    • Value: Medium. People can then see devops Workflow runs and pod logs in the Argo UI without kubectl.
    • Effort: Low. The change needs one Role, one RoleBinding and a render test.
    • Related: dan-petty/homelab#335, which asks for a different change. The candidate is split from dan-petty/homelab#335; dan-petty/homelab#335 exposes the Argo UI and the candidate grants that UI account read access in devops.
  3. devops-cli-service commented on Nov 11, 2026

    @devops-cli-service
    ContributorAuthor

    Refine cannot set this item to Ready at 818ac6f while the items below stay open. The next refine round looks at the item again when they close, or when a person replies in a comment or edits the body.

    The next refine round also looks at the item again when a commit on the default branch changes one of these files: k8s/argo-workflows/values.yaml.

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

    @devops-cli-service
    ContributorAuthor

    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.

  5. devops-cli-service commented on Nov 25, 2026

    @devops-cli-service
    ContributorAuthor

    Next step: the open items close, or a person replies in a comment or edits the body. See Dependencies in the section Proposed design of the body.

  6. dan-petty commented on Nov 27, 2026

    @dan-petty
    Owner

    dan-petty/homelab#526 (for dan-petty/homelab#335) holds this item: Role argo-workflows-ui in devops grants get, list and watch on Workflows, WorkflowTemplates, CronWorkflows, pods and events, and get on pods/log, with no write verb. A live test of the build gave yes for list Workflows and no for create, update, patch and delete (kubectl auth can-i). The Role lives in k8s/argo-workflows/rbac-server.yaml of homelab, not in k8s/devops/, because Application argo-workflows-manifests owns the access of Argo Workflows in devops. After that pull request merges and syncs, this item is done.

  7. dan-petty commented on Nov 27, 2026

    @dan-petty
    Owner

    Done by dan-petty/homelab#526 (merged b93edf8, synced 2026-11-27). Role argo-workflows-ui in devops (k8s/argo-workflows/rbac-server.yaml of homelab) grants the read verbs only. Live: kubectl auth can-i as system:serviceaccount:argo-workflows:argo-workflows-ui gives yes for list Workflows and get pods/log in devops, and no for create, patch and delete of Workflows and for get Secrets. Through the UI the token lists the Workflows of devops (200), and a submit gets 403. Proof: https://github.com/dan-petty/homelab/issues/335

  8. removed
    status/new
    on Nov 27, 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/lowpriority/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