Repository navigation
Description
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 k8sruns. - THEN The k8s check passes and the render of
k8s/devopsholds Roleargo-workflows-viewerin namespacedevopswith a rule for API groupargoproj.io, resourceworkflowsand 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 k8sruns. - THEN The k8s check passes and the render of
k8s/devopsholds a rule of Roleargo-workflows-viewerfor the core API group, resourcepodsand 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 k8sruns. - THEN The k8s check passes and the render of
k8s/devopsholds a rule of Roleargo-workflows-viewerfor the core API group, resourcepods/logand 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 k8sruns. - THEN The k8s check passes and every verb of every rule of Role
argo-workflows-viewerisget,listorwatch, and no rule holdscreate,update,patch,deleteordeletecollection.
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 k8sruns. - THEN The k8s check passes and the render of
k8s/devopsholds RoleBindingargo-workflows-viewerin namespacedevopsthat names Roleargo-workflows-viewerand one subject of kind ServiceAccount, nameargo-workflows-server, namespaceargo-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-iforget workflows.argoproj.io, forget pods/logand forcreate workflows.argoproj.io, each with--as=system:serviceaccount:argo-workflows:argo-workflows-serverand-n devops, and it states that the create check must answerno.
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 devopsandkubectl auth can-i create workflows.argoproj.io --as=system:serviceaccount:argo-workflows:argo-workflows-server -n devopsafter the merge. - THEN The merged pull request records
yesfor the two get checks andnofor 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-workflowsinstall, and which ServiceAccount runs its server pod?: Chartargo-workflows2.0.18 comes fromhttps://argoproj.github.io/argo-helm. Releaseargo-workflowsinstalls it in namespaceargo-workflows. The server pod uses ServiceAccountargo-workflows-serverin namespaceargo-workflows. The RoleBinding subject therefore names namespaceargo-workflows, notdevops. Withserver.enabled: falsethe 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 onpods/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/logwithget. - 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
getonly.
- 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
- Which resources does the Role cover?: The Role covers
workflowsin API groupargoproj.io, andpodsandpods/login the core group. It holds no rule forworkflowtemplates,cronworkflows,eventsorsecrets. (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
viewClusterRole. - Rejected: Read-write Role. A write verb would let the UI account change or delete Workflows. The UI needs none.
- Chosen: Read-only Role. The UI displays Workflows and logs. The project binds its agent identity to the read-only
- Where do the Role and RoleBinding live?: The Role and RoleBinding live in
k8s/devops/argo-workflows-viewer.yaml.k8s/devops/kustomization.yamllists the file. Applicationdevopsrendersk8s/overlays/homelab/devops, which includesk8s/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. Applicationdevopsrendersk8s/overlays/homelab/devops, which includesk8s/devops, and the k8s gate check rendersk8s/devops. - Rejected: k8s/argo-workflows/. Application
argo-workflowsinstalls the chart into namespaceargo-workflows. AdevopsRole there lands in the wrong namespace, and the devops render does not carry it.
- Chosen: k8s/devops/argo-workflows-viewer.yaml. The two objects are objects of namespace
- Does this change enable the Argo Workflows UI server?: No.
server.enabledstaysfalse. 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-iwith--as=system:serviceaccount:argo-workflows:argo-workflows-server -n devopsforget workflows.argoproj.io,get pods/logandcreate workflows.argoproj.io. The person records the output in the merged pull request. The same commands go in the Argo Workflows section ofk8s/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-icheck proves the Role. The install check ofk8s/README.mdalready gives thekubectl auth can-i ... --as=...shape forargo-workflows-executor. - Rejected: A pull request check runs it. The checks of the repository read the rendered manifests and hold no cluster credential.
- Chosen: A person runs the check and records the output. The tests run offline. Only a live
- 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 todevopsand 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]- Chosen: feat(k8s): let Argo Workflows run roadmap pods in devops #4566. feat(k8s): let Argo Workflows run roadmap pods in devops #4566 moves the controller and the Workflows to
devops. The Role and RoleBinding serve those Workflows. - Rejected: dan-petty/homelab#335. dan-petty/homelab#335 is the tracker this issue is split from, not a prerequisite.
- Chosen: feat(k8s): let Argo Workflows run roadmap pods in devops #4566. feat(k8s): let Argo Workflows run roadmap pods in devops #4566 moves the controller and the Workflows to
Fit
Fits in one pull request.
Suspected block
None.
Activity
devops-cli-service 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.The change gives read-only visibility in the UI and waits on dan-petty/devops-cli#4566, so it is not urgent.People can then see devops Workflow runs and pod logs in the Argo UI without kubectl.The change needs one Role, one RoleBinding and a render test.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.devops-cli-service commentedon Nov 11, 2026
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.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 25, 2026
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.
dan-petty commentedon Nov 27, 2026
dan-petty/homelab#526 (for dan-petty/homelab#335) holds this item: Role
argo-workflows-uiindevopsgrants get, list and watch on Workflows, WorkflowTemplates, CronWorkflows, pods and events, and get onpods/log, with no write verb. A live test of the build gaveyesfor list Workflows andnofor create, update, patch and delete (kubectl auth can-i). The Role lives ink8s/argo-workflows/rbac-server.yamlof homelab, not ink8s/devops/, because Applicationargo-workflows-manifestsowns the access of Argo Workflows indevops. After that pull request merges and syncs, this item is done.dan-petty commentedon Nov 27, 2026
Done by dan-petty/homelab#526 (merged b93edf8, synced 2026-11-27). Role
argo-workflows-uiindevops(k8s/argo-workflows/rbac-server.yamlof homelab) grants the read verbs only. Live:kubectl auth can-iassystem:serviceaccount:argo-workflows:argo-workflows-uigivesyesfor list Workflows and getpods/logindevops, andnofor create, patch and delete of Workflows and for get Secrets. Through the UI the token lists the Workflows ofdevops(200), and a submit gets 403. Proof: https://github.com/dan-petty/homelab/issues/335