Skip to content

feat(k8s): push the Argo CD notifier App's IDs and key - #2608

Merged
dan-petty merged 2 commits into
mainfrom
feat/2000-argocd-notifier-app-secret
Oct 29, 2026
Merged

dan-petty merged 2 commits into
mainfrom
feat/2000-argocd-notifier-app-secret

Conversation

@dan-petty

Copy link
Copy Markdown
Owner

Argo CD's GitHub notifier needs a GitHub App ID, an installation ID and a private key. No setting, keyring entry or cluster Secret held them, and the notifier configuration (#1393) cannot merge before the Secret holds them.

  • Two plain settings, argocd.github_app_id and argocd.github_app_installation_id, and the managed credential argocd.github_app_private_key.
  • Row argocd/argocd-notifications-secret (stack infra, no restart) with the optional keys github-appID, github-installationID and github-privateKey. The notifier refers to them as $<key>.
  • A setting with no value names devops config set <key> in the push's warning.
  • The Argo CD values set notifications.secret.create: false, so the push is the one owner of the Secret. The homelab project ignores it as an orphan.

Closes #2000

Change: openspec/changes/archive/2026-10-29-2000-argocd-notifier-app-secret/

Argo CD's GitHub notifier needs a GitHub App ID, an installation ID and a
private key, and no setting, keyring entry or cluster Secret held them.

- `ArgoCDConfig` gets the plain settings `argocd.github_app_id` and
  `argocd.github_app_installation_id`, and the managed credential
  `argocd.github_app_private_key` holds the App's PEM key.
- The cluster Secret table gets row `argocd/argocd-notifications-secret`
  (stack `infra`, no restart) with the optional keys `github-appID`,
  `github-installationID` and `github-privateKey`.
- A setting with no value names `devops config set <key>` in the push's
  warning.
- The Argo CD values set `notifications.secret.create: false`, so the
  push is the one owner of the Secret, and the `homelab` project ignores
  it as an orphan.
@dan-petty

Copy link
Copy Markdown
Owner Author

Test and check evidence:

devops k8s push-secrets --only argocd/argocd-notifications-secret --dry-run on this branch (no request; the context name is replaced):

Dry run: no request was made. A push would make these requests, in order:
  1. keyring read devops-cli/keyring-unlock-probe
  2. kubectl get namespace argocd --ignore-not-found -o name --context <context>
  3. kubectl get secret/argocd-notifications-secret -n argocd --ignore-not-found -o json --context <context>  [only if every selected namespace exists]
  4. keyring read devops-cli/argocd_github_app_private_key  [only if every selected namespace exists]
  ...
               "github-appID": "<base64 of setting argocd.github_app_id, left out when it has none>",
               "github-installationID": "<base64 of setting argocd.github_app_installation_id, left out when it has none>",
               "github-privateKey": "<base64 of keyring argocd_github_app_private_key, left out when it has none>"

--plan on the live cluster (no value is stored yet, so each key would be skipped):

argocd/argocd-notifications-secret: github-appID (setting argocd.github_app_id) would skip, github-installationID (setting argocd.github_app_installation_id) would skip, github-privateKey (keyring argocd_github_app_private_key) would skip; would restart: none
argocd/argocd-notifications-secret github-appID: setting argocd.github_app_id has no value; set it with `devops config set argocd.github_app_id`

Pending a person:

  1. devops config set argocd.github_app_id <id>
  2. devops config set argocd.github_app_installation_id <id>
  3. devops config set argocd.github_app_private_key --from-file <key.pem>
  4. devops k8s push-secrets --only argocd/argocd-notifications-secret
  5. Review the diff in tuicr (tuicr -r origin/main..HEAD).

@dan-petty
dan-petty marked this pull request as ready for review October 29, 2026 03:12
@dan-petty
dan-petty merged commit a408dee into main Oct 29, 2026
16 checks passed
@dan-petty
dan-petty deleted the feat/2000-argocd-notifier-app-secret branch October 29, 2026 03:12
dan-petty pushed a commit that referenced this pull request Oct 29, 2026
🤖 I have created a release *beep* *boop*
---


##
[0.14.0](v0.13.2...v0.14.0)
(2026-10-29)


### Features

* **argo:** apps status checks each pinned image against its registry
([#2605](#2605))
([6933005](6933005)),
closes [#1997](#1997)
* **k8s:** push the Argo CD notifier App's IDs and key
([#2608](#2608))
([a408dee](a408dee))
* **release:** an urgent fix merges the release pull request
([#2596](#2596))
([20e8ac4](20e8ac4))
* **roadmap:** a webhook event runs intake of its one issue
([#2607](#2607))
([cf9f02c](cf9f02c)),
closes [#2009](#2009)
* **roadmap:** devops roadmap intake-eval scores duplicates
([#2601](#2601))
([22146d6](22146d6))


### Code Refactoring

* **ai:** three in-process caches use cachetools
([#2611](#2611))
([0c30d2a](0c30d2a)),
closes [#1993](#1993)

---
This PR was generated with [Release
Please](https://github.com/googleapis/release-please). See
[documentation](https://github.com/googleapis/release-please#release-please).

Co-authored-by: dan-petty-release[bot] <346998822+dan-petty-release[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

1 participant