Skip to content

feat(k8s): the cluster secret push stores the GitHub App ID, installation ID and private key of the Argo CD deployments app in argocd-notifications-secret #2000

Closed

Description

@dan-petty

Friction

  • Argo CD's own GitHub notifier needs a GitHub App ID, an installation ID and a private key. No setting, keyring key or cluster Secret entry holds them today.
  • The notifier configuration cannot merge first. A notification service that fails to build stops every notification that the controller sends. So the Secret must hold the App values before service.github merges.

Evidence

Checked at main a752a14.

Existing tool considered

  • Argo CD's GitHub notifier (notifications-engine pkg/services/github.go) reads appID, installationID and privateKey. These values feed it.
  • The cluster secret push table already has SettingSource and keyring sources. This change adds rows and keys, and no new push code.

Proposed remedy

Acceptance criteria

  • argocd.github_app_private_key is in SECRET_CONFIG_OPTIONS and KEYRING_KEYS. The two ID settings are plain settings on ArgoCDConfig.
  • Row argocd/argocd-notifications-secret (stack infra, no restart target) has three entries. github-appID and github-installationID come from the settings (SettingSource), and github-privateKey comes from the keyring with no generator. All three are optional, so a missing one is skipped with a warning.
  • Tested over the keyring and cluster fakes: a three-line PEM-shaped keyring value reaches the Secret byte for byte. --plan and --dry-run name the keys without values, and --dry-run makes no request.
  • The Cluster Secrets table in k8s/README.md lists the three rows.
  • No new test reaches the network, and each call phase stays under 1 s.
  • uv run devops ci passes.

Source: #1387

Proposed design

Problem statement

Argo CD's GitHub notifier needs three values: a GitHub App ID, an installation ID, and a private key. No setting, keyring key, or cluster Secret entry holds them today. The notifier configuration cannot merge until the Secret holds these values, because a notification service that fails to build stops every notification the controller sends.

Acceptance criteria

  • Criterion 1: argocd.github_app_private_key is in SECRET_CONFIG_OPTIONS and KEYRING_KEYS. The two ID settings are plain settings on ArgoCDConfig.
    Verification: Inspect src/devops_cli/config/options.py and src/devops_cli/config/settings.py for the three entries. Run uv run devops config set argocd.github_app_id 12345 and confirm it stores without a hidden prompt.
  • Criterion 2: Row argocd/argocd-notifications-secret (stack infra, no restart target) has three optional entries: github-appID and github-installationID from SettingSource, github-privateKey from the keyring with no generator.
    Verification: Inspect src/devops_cli/k8s/cluster_secrets.py for the row and its three entries. Confirm each entry has optional=True and no generator on the keyring entry.
  • Criterion 3: A three-line PEM-shaped keyring value reaches the Secret byte for byte. --plan and --dry-run name the keys without values. --dry-run makes no request.
    Verification: Run the new tests over the keyring and cluster fakes. Confirm the Secret data matches the keyring value exactly. Confirm --plan output shows key names but not values. Confirm --dry-run makes zero network calls.
  • Criterion 4: The Cluster Secrets table in k8s/README.md lists the three new entries under argocd/argocd-notifications-secret.
    Verification: Read k8s/README.md and confirm the table has a row for argocd/argocd-notifications-secret with keys github-appID, github-installationID, and github-privateKey.
  • Criterion 5: No new test reaches the network, and each call phase stays under 1 s.
    Verification: Run uv run pytest tests/ -x --timeout=1 and confirm no test opens a network socket and no test exceeds 1 s per phase.
  • Criterion 6: uv run devops ci passes.
    Verification: Run uv run devops ci in a clean environment and confirm exit code 0.

Key questions

Fit

Fits in one pull request.

Suspected block

None.

Dependencies

None.

Activity

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

    @dan-petty
    OwnerAuthor

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

    • Type: type/feature. The candidate adds new functionality to store GitHub App values in a cluster secret.
    • Priority: P2-Medium. The change is needed to enable Argo CD's GitHub notifier but does not block other work.
    • Value: High. The change allows Argo CD to send notifications using a GitHub App identity.
    • Effort: Medium. The change requires adding new settings, keyring entries, and cluster secret rows with tests.
  3. dan-petty commented on Oct 28, 2026

    @dan-petty
    OwnerAuthor

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

  4. added
    priority/p2-medium
    status/ready
    effort/medium
    value/high
    on Oct 28, 2026
  5. removed
    status/ready
    on Oct 30, 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/mediumpriority/p2-mediumsource/agenttype/featurevalue/high

    Type

    No type

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions