Skip to content

feat(k8s): argo cd's web terminal opens a shell in any pod an application manages #1585

Closed

Description

@dan-petty

Friction

Getting a shell in a cluster pod needs kubectl exec from a workstation with a kubeconfig for the cluster. Argo CD already shows every pod its Applications manage, but its web terminal is off: the argo-cd chart defaults configs.cm."exec.enabled" to false, and k8s/argocd/values.yaml does not set it.

Evidence

  • Argo CD's web terminal is disabled until argocd-cm holds exec.enabled: "true" (operator manual, Web-based Terminal).
  • The pinned chart (argo-cd 10.9.6, Argo CD v3.5.3) adds create on pods/exec to the argocd-server ClusterRole and Role only when that key renders as "true" (templates/argocd-server/clusterrole.yaml, role.yaml). helm template with the repository's values and the key set shows both rules.
  • Argo CD v3.5.3's built-in policy holds p, role:admin, exec, create, */*, allow and g, admin, role:admin (assets/builtin-policy.csv), so the admin user needs no added RBAC policy.
  • The argocd-server Deployment carries checksum/cm, so the change rolls the server, as the manual's restart step asks.
  • The argocd Application self-heals from main, so the setting has to land in git: a live patch to argocd-cm would be reverted.

Remedy

Set configs.cm."exec.enabled": "true" in k8s/argocd/values.yaml, which devops k8s deploy-stack and the self-managed argocd Application both read. Add a test in tests/test_k8s_argocd_apps.py pinning the value as the string "true", and a line in k8s/README.md naming the pod's Terminal tab.

The terminal runs as the pod's ServiceAccount. It gives role:admin no more than it already has, since an admin can sync any manifest in the homelab project.

Proposed design

Problem statement

Argo CD's web terminal is disabled by default, requiring manual configuration to enable shell access to pods managed by Applications. Users cannot easily access shells in cluster pods without setting up kubectl access and kubeconfig on their workstations.

Acceptance criteria

  • Criterion 1: The Argo CD web terminal is enabled by default in the k8s/argocd/values.yaml configuration
    Verification: Running 'helm template' with k8s/argocd/values.yaml should show 'exec.enabled: "true"' in the argocd-cm ConfigMap
  • Criterion 2: A test verifies that the exec.enabled value is set to 'true' in the Argo CD configuration
    Verification: Running 'pytest tests/test_k8s_argocd_apps.py::test_chart_pvc_and_crd_safety_values' should pass and confirm the setting
  • Criterion 3: The k8s/README.md documentation includes a reference to the Terminal tab for accessing pods
    Verification: The README.md file should contain a line mentioning the Terminal tab in Argo CD's web UI

Key questions

  • What is the current value of configs.cm."exec.enabled" in k8s/argocd/values.yaml?: The current value is not set, as it defaults to false in the argo-cd chart and is not configured in the repository's values file. [sources: k8s/argocd/values.yaml]
  • Should this change be made in a single PR?: Yes, this can be delivered in one pull request as it involves only configuration changes and tests. (proposed)

Open questions

  • What happens when exec.enabled is set to true in argocd-cm? (missing verified source)
  • How does the admin user gain access to the terminal with this setting? (missing verified source)

Fit

Fits in one pull request.

Suspected block

None.

Dependencies

None.

Activity

  1. added
    source/agent
    type/feature
    on Oct 16, 2026
  2. dan-petty commented on Oct 16, 2026

    @dan-petty
    OwnerAuthor

    Intake placed this item to the backlog: at intake only a critical fix goes into a release; a release start pulls Ready items in, P0 features first.

    • Type: type/feature. The candidate adds a new feature to enable Argo CD's web terminal.
    • Priority: P2-Medium. This improves developer experience but is not critical for core functionality.
    • Value: Medium. Provides useful access to pods for debugging, but not essential for system operation.
    • Effort: Low. Involves a simple configuration change and adds tests and documentation.
  3. added this to the v0.2.36 milestone on Oct 16, 2026
  4. added a commit that references this issue on Oct 16, 2026
    1904550
  5. dan-petty commented on Oct 16, 2026

    @dan-petty
    OwnerAuthor

    What changed

    #1586, merged into release/v0.2.36 as 1904550.

    Closes #1585

    Argo CD's web terminal is off by default. This sets configs.cm."exec.enabled": "true" in k8s/argocd/values.yaml, which both devops k8s deploy-stack and the self-managed argocd Application read, so an admin can open a shell in any pod an Application manages from the pod's Terminal tab. It works without kube API access from the workstation, because argocd-server reaches the API in-cluster.

    No RBAC policy is added. The pinned chart (argo-cd 10.9.6, Argo CD v3.5.3) grants argocd-server create on pods/exec in its ClusterRole and Role when the key renders as "true", and v3.5.3's built-in policy already holds p, role:admin, exec, create, */*, allow with g, admin, role:admin. The server Deployment's checksum/cm annotation rolls argocd-server when argocd-cm changes, which is the restart the operator manual asks for.

    4 file(s) changed.

    How it was verified

    Check runs at 158aac2:

    • Prune PR DevContainer Images: pass
    • Audit Defect PR Hardening: skipping
    • devops-cli: pass
    • bandit: pass
    • CodeQL: pass
    • Changed-Test Independence: pass
    • Tests & Coverage: pass
    • Analyze (python): pass
    • Analyze (actions): pass
    • Static Analysis: pass
    • DevContainer Image: skipping
    • Service Image: skipping
    • Dependency Freshness: skipping

    No task file.

  6. added a commit that references this issue on Oct 17, 2026
    3dd7fa6
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

    source/agenttype/feature

    Type

    No type

    Projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions