Repository navigation
Closed
Labels
effort/mediumEffort Mediumpriority/p2-mediumPriority P2: standard worksource/agentFiled by an agenttype/featureType feature: a new functionvalue/highValue High: the delivery of the item matters much
Description
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.githubmerges.
Evidence
Checked at main a752a14.
ArgoCDConfigholds onlyurl(src/devops_cli/config/settings.py:188-190).SECRET_CONFIG_OPTIONS(src/devops_cli/config/options.py:233) andKEYRING_KEYS(:251) hold no Argo CD key.CLUSTER_SECRETS(src/devops_cli/k8s/cluster_secrets.py:161) has noargocd/argocd-notifications-secretrow.- notifications-engine
NewAPI(pkg/api/api.go) returns the first service factory error. The controller then logs "Failed to get api" and skips each Application. - feat(config): devops config set stores a multi-line secret, such as a pem private key, from a file or stdin, never from argv or a one-line prompt #1962 is merged:
devops config setstores a multi-line secret, such as a PEM private key, from a file or standard input. - feat(k8s): argo cd records each single-source github application's deploy outcome as a github deployment on the synced commit, through its own deployments-only github app #1387 lists this change as its PR 1. After the split, feat(k8s): argo cd records each single-source github application's deploy outcome as a github deployment on the synced commit, through its own deployments-only github app #1387 only tracks its child issues, and no pull request closes feat(k8s): argo cd records each single-source github application's deploy outcome as a github deployment on the synced commit, through its own deployments-only github app #1387 itself. So this candidate asks for a change that no other issue holds.
Existing tool considered
- Argo CD's GitHub notifier (notifications-engine
pkg/services/github.go) readsappID,installationIDandprivateKey. These values feed it. - The cluster secret push table already has
SettingSourceand keyring sources. This change adds rows and keys, and no new push code.
Proposed remedy
- Add the plain settings
argocd.github_app_idandargocd.github_app_installation_idonArgoCDConfig. Neither ID is a credential. - Add the managed credential
argocd.github_app_private_key(keyringargocd_github_app_private_key). - Add the row
argocd/argocd-notifications-secret(stackinfra, no restart target) with three optional entries:github-appIDandgithub-installationIDfrom the settings, andgithub-privateKeyfrom the keyring with no generator. If feat(k8s): argo cd's notifications controller posts the devops application's deploys and every failed sync to mattermost's deploys channel #1393 has added the row already, add only the entries. - Add the README rows and tests.
Acceptance criteria
-
argocd.github_app_private_keyis inSECRET_CONFIG_OPTIONSandKEYRING_KEYS. The two ID settings are plain settings onArgoCDConfig. - Row
argocd/argocd-notifications-secret(stackinfra, no restart target) has three entries.github-appIDandgithub-installationIDcome from the settings (SettingSource), andgithub-privateKeycomes 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.
--planand--dry-runname the keys without values, and--dry-runmakes no request. - The Cluster Secrets table in
k8s/README.mdlists the three rows. - No new test reaches the network, and each call phase stays under 1 s.
-
uv run devops cipasses.
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
- What are the setting names for the two GitHub App IDs?: argocd.github_app_id and argocd.github_app_installation_id, as plain settings on ArgoCDConfig. (proposed)
- What is the keyring key for the private key?: argocd_github_app_private_key, stored as a managed credential in SECRET_CONFIG_OPTIONS and KEYRING_KEYS. (proposed)
- What is the Secret name and which stack owns it?: argocd/argocd-notifications-secret, stack infra, no restart target. (proposed)
- Are the three entries required or optional?: All three are optional. A missing value is skipped with a warning. (proposed)
- What are the entry key names in the Secret?: github-appID, github-installationID, and github-privateKey, matching the names Argo CD's GitHub notifier reads. [sources: k8s/README.md]
- Does feat(config): devops config set stores a multi-line secret, such as a pem private key, from a file or stdin, never from argv or a one-line prompt #1962 (multi-line secret storage) need to be merged first?: No. feat(config): devops config set stores a multi-line secret, such as a pem private key, from a file or stdin, never from argv or a one-line prompt #1962 is already merged. devops config set stores a multi-line secret such as a PEM private key from a file or standard input. [sources: src/devops_cli/config/options.py]
- Does this issue depend on feat(k8s): argo cd's notifications controller posts the devops application's deploys and every failed sync to mattermost's deploys channel #1393?: No hard dependency. If feat(k8s): argo cd's notifications controller posts the devops application's deploys and every failed sync to mattermost's deploys channel #1393 has already added the row, this issue adds only the three entries. If it has not, this issue adds the row and the entries. (proposed)
Fit
Fits in one pull request.
Suspected block
None.
Dependencies
None.
Metadata
Metadata
Assignees
Labels
effort/mediumEffort Mediumpriority/p2-mediumPriority P2: standard worksource/agentFiled by an agenttype/featureType feature: a new functionvalue/highValue High: the delivery of the item matters much
Type
Projects
- StatusShow more project fieldsReady
- StatusShow more project fieldsNew
Activity
dan-petty commentedon Oct 23, 2026
Intake placed this item to the backlog: intake puts every new item in the backlog. A person plans the milestones on the board.
The candidate adds new functionality to store GitHub App values in a cluster secret.The change is needed to enable Argo CD's GitHub notifier but does not block other work.The change allows Argo CD to send notifications using a GitHub App identity.The change requires adding new settings, keyring entries, and cluster secret rows with tests.dan-petty commentedon Oct 28, 2026
Status set to Ready at bb46660 (see proposed design in issue body).