Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: API server should not attempt to read secrets in all namespaces #20950

Merged
merged 2 commits into from
Nov 26, 2024

Conversation

alexmt
Copy link
Collaborator

@alexmt alexmt commented Nov 25, 2024

Followup for #20161

The #20162 fixes the issue by giving cluster-level secret permissions, but only if Argo CD is installed in a cluster-level mode.

PR fixes the root cause of #20161: API server incorrectly attempting to read secrets from all namespaces. Also reverts #20162 since API server should not really have permissions to list everything in a whole cluster.

…ng apps

Signed-off-by: Alexander Matyushentsev <AMatyushentsev@gmail.com>
@alexmt alexmt requested a review from a team as a code owner November 25, 2024 19:40
Copy link

bunnyshell bot commented Nov 25, 2024

❌ Preview Environment deleted from Bunnyshell

Available commands (reply to this comment):

  • 🚀 /bns:deploy to deploy the environment

@alexmt alexmt requested a review from crenshaw-dev November 25, 2024 19:40
@alexmt alexmt changed the title API server should not attempt to read secrets in all namespaces fix: API server should not attempt to read secrets in all namespaces Nov 25, 2024
Copy link
Member

@gdsoumya gdsoumya left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@alexmt alexmt merged commit 7f6340f into argoproj:master Nov 26, 2024
31 of 32 checks passed
@blakepettersson
Copy link
Member

/cherry-pick release-2.13

gcp-cherry-pick-bot bot pushed a commit that referenced this pull request Nov 26, 2024
…20950)

* fix: api server is trying to list cluster wide secrets while generating apps

Signed-off-by: Alexander Matyushentsev <AMatyushentsev@gmail.com>

* Revert "fix: Fix argocd appset generate failure due to missing clusterrole (#20162)"

This reverts commit fad534b.

---------

Signed-off-by: Alexander Matyushentsev <AMatyushentsev@gmail.com>
gdsoumya pushed a commit that referenced this pull request Nov 26, 2024
…20950) (#20960)

* fix: api server is trying to list cluster wide secrets while generating apps



* Revert "fix: Fix argocd appset generate failure due to missing clusterrole (#20162)"

This reverts commit fad534b.

---------

Signed-off-by: Alexander Matyushentsev <AMatyushentsev@gmail.com>
Co-authored-by: Alexander Matyushentsev <AMatyushentsev@gmail.com>
@alexmt alexmt deleted the app-set-generate-cluster-list branch November 26, 2024 15:57
adriananeci pushed a commit to adriananeci/argo-cd that referenced this pull request Dec 4, 2024
…rgoproj#20950)

* fix: api server is trying to list cluster wide secrets while generating apps

Signed-off-by: Alexander Matyushentsev <AMatyushentsev@gmail.com>

* Revert "fix: Fix argocd appset generate failure due to missing clusterrole (argoproj#20162)"

This reverts commit fad534b.

---------

Signed-off-by: Alexander Matyushentsev <AMatyushentsev@gmail.com>
Signed-off-by: Adrian Aneci <aneci@adobe.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

5 participants