Skip to content

docs(openspec): plan #2576 retry argo cd token on 401 - #3002

Merged
dan-petty merged 1 commit into
mainfrom
fix/2576-a-token-that-argo-cd-refuses
Nov 1, 2026
Merged

dan-petty merged 1 commit into
mainfrom
fix/2576-a-token-that-argo-cd-refuses

Conversation

@devops-cli-service

Copy link
Copy Markdown
Contributor

Plans #2576

This change adds a shared helper in argo/credentials.py that wraps Argo CD API calls. On HTTP 401, it mints a new token with the stored admin password, stores it, and retries the request once. When no password is stored, or the retry also fails, it raises ArgoError with a message naming argocd.token. Other HTTP errors raise ArgoError with the status code. The commands cd_apps_list, cd_apps_sync, and cd_apps_status use this helper instead of raw raise_for_status, so every Argo CD API error is a DevOpsCLIError that the exit seam reports as one line.

Change: openspec/changes/2576-a-token-that-argo-cd-refuses/

@devops-cli-service
devops-cli-service Bot marked this pull request as ready for review November 1, 2026 10:57
@dan-petty
dan-petty merged commit 1267327 into main Nov 1, 2026
18 checks passed
@dan-petty
dan-petty deleted the fix/2576-a-token-that-argo-cd-refuses branch November 1, 2026 11:48
dan-petty added a commit that referenced this pull request Nov 1, 2026
…3080)

Plan #2576 came from the Service in pull request #3002. An evaluation on
2026-11-01 found defects in it. This pull request fixes the plan in
place. It changes only the change folder
`openspec/changes/2576-a-token-that-argo-cd-refuses/`.

The corrected plan:
- Retries one time on HTTP 401 when the admin password is stored, and
ends with one clear message in each other case.
- Has three behavior groups with real test paths and tests written
first.
- Puts the spec delta in the right capability,
`argo-sync-rollouts-teardown`.
- Has a Feasibility section with command output.
- Names the callers left out of scope, so the follow-up is exact.

Plans #2576
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant