test(configmap): mask the token value annotation in the ArgoCD UI/CLI#1221
test(configmap): mask the token value annotation in the ArgoCD UI/CLI#1221dkarpele wants to merge 1 commit into
Conversation
|
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: The full list of commands accepted by this bot can be found here. DetailsNeeds approval from an approver in each of these files:Approvers can indicate their approval by writing |
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Enterprise Run ID: ⛔ Files ignored due to path filters (1)
📒 Files selected for processing (2)
🔗 Linked repositories identifiedCodeRabbit considers these linked repositories for cross-repo context during reviews:
🚧 Files skipped from review as they are similar to previous changes (2)
📝 WalkthroughWalkthroughThis change updates three Go module dependencies and adds an OpenShift Ginkgo E2E test that verifies sensitive annotation values remain masked in Argo CD synchronization and diff output. ChangesGo dependency updates
Sensitive annotation masking coverage
Estimated code review effort: 3 (Moderate) | ~20 minutes Suggested reviewers: 🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
|
Hi @dkarpele. Thanks for your PR. I'm waiting for a redhat-developer member to verify that this patch is reasonable to test. If it is, they should reply with Tip We noticed you've done this a few times! Consider joining the org to skip this step and gain Once the patch is verified, the new status will be reflected by the I understand the commands that are listed here. DetailsInstructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. |
|
/ok-to-test |
|
/test all |
2b0cf84 to
e1c2b6b
Compare
|
/test all |
There was a problem hiding this comment.
Actionable comments posted: 2
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Inline comments:
In
`@test/openshift/e2e/ginkgo/parallel/1-132_validate_sensitive_annotation_masking_test.go`:
- Around line 124-139: Update the ArgoCD CLI login flow around RunArgoCDCLI so
adminPassword cannot appear in logs when --config precedes login. Prefer
reordering the arguments to place login first if supported; otherwise harden
RunArgoCDCLI to detect login regardless of argument order and redact the
password before logging.
- Around line 181-207: Capture and assert the errors returned by both
RunArgoCDCLI calls in the refresh and app diff steps. Update the refresh path
before the Synced Consistently check and the diff path before inspecting
diffOutput so either command failure fails the test, while preserving the
existing token-output assertion.
🪄 Autofix (Beta)
Fix all unresolved CodeRabbit comments on this PR:
- Push a commit to this branch (recommended)
- Create a new PR with the fixes
ℹ️ Review info
⚙️ Run configuration
Configuration used: Repository YAML (base), Organization UI (inherited)
Review profile: CHILL
Plan: Enterprise
Run ID: 3716ee4b-d0ce-4c5b-861e-756615f98874
⛔ Files ignored due to path filters (1)
go.sumis excluded by!**/*.sum
📒 Files selected for processing (2)
go.modtest/openshift/e2e/ginkgo/parallel/1-132_validate_sensitive_annotation_masking_test.go
🔗 Linked repositories identified
CodeRabbit considers these linked repositories for cross-repo context during reviews:
argoproj-labs/argocd-operator(manual)
… on OpenShift Co-authored-by: Claude <noreply@anthropic.com> Signed-off-by: dkarpele <karpelevich@gmail.com>
e1c2b6b to
1b20da5
Compare
|
/test all |
This PR has temporarilly changes in
go.modandtest/openshift/e2e/ginkgo/parallel/1-132_validate_sensitive_annotation_masking_test.go.github.com/argoproj-labs/argocd-operator v0.0.0-20260715184606-28cf63dec3bbthat will be replaced with master commit when feat(configmap): mask the token value annotation in the ArgoCD UI/CLI on OpenShift argoproj-labs/argocd-operator#2284 is mergedUPD: done
will be replaced with
UPD: done
test/examples/dockercfg-token-secret/secret.yamlto master test(e2e): prepare secret for e2e test 1-132_validate_sensitive_annotation_masking_test #1222UPD: done
What type of PR is this?
/kind failing-test
What does this PR do / why we need it:
E2e Test for argoproj-labs/argocd-operator#2284: feat(configmap): mask the token value annotation in the ArgoCD UI/CLI on OpenShift
Have you updated the necessary documentation?
Which issue(s) this PR fixes:
https://redhat.atlassian.net/browse/GITOPS-10509
Fixes #?
Test acceptance criteria:
How to test changes / Special notes to the reviewer:
Summary by CodeRabbit
Bug Fixes
Tests
Chores