Skip to content

fix(image-updater): Privilege escalation via IMAGE_UPDATER_WATCH_NAMESPACES on namespace-scoped ArgoCD instances - #2425

Merged
chengfang merged 2 commits into
argoproj-labs:release-0.20from
dkarpele:dk-backport-1511-1.22
Nov 23, 2026
Merged

chengfang merged 2 commits into
argoproj-labs:release-0.20from
dkarpele:dk-backport-1511-1.22

Conversation

@dkarpele

@dkarpele dkarpele commented Nov 18, 2026 •

Copy link
Copy Markdown
Contributor

What type of PR is this?

/kind bug

What does this PR do / why we need it:
backport redhat-developer/gitops-operator@aa128e5

argocd-operator/controllers/argocd/image_updater.go was copied from master https://github.com/redhat-developer/gitops-operator but the commits below were removed:

2 other changes compared to master:

  • argocd-operator/controllers/argocd/image_updater.go: expandImageUpdaterWatchNamespaces: glob.REGEXP replaced with glob.EXACT
  • argocd-operator/controllers/argocd/custommapper.go: imageUpdaterWatchNSMapper : glob.REGEXP replaced with glob.EXACT

Have you updated the necessary documentation?

  • Documentation update is required by this PR.
  • Documentation has been updated.

Which issue(s) this PR fixes:

Fixes #?
GITOPS-12077
How to test changes / Special notes to the reviewer:

…SPACES on namespace-scoped ArgoCD instances

Signed-off-by: dkarpele <karpelevich@gmail.com>
@coderabbitai

coderabbitai Bot commented Nov 18, 2026 •

Copy link
Copy Markdown
Contributor

Important

Review skipped

Auto reviews are disabled on base/target branches other than the default branch.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: defaults
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: e6e48dba-08cc-4d03-b2e5-755bf00f6d38

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • Trigger review
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

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.

Share

assert.True(t, *deployment.Spec.Template.Spec.AutomountServiceAccountToken)

Signed-off-by: dkarpele <karpelevich@gmail.com>
@codecov-commenter

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 75.21368% with 58 lines in your changes missing coverage. Please review.
⚠️ Please upload report for BASE (release-0.20@db82fdc). Learn more about missing BASE report.

Files with missing lines Patch % Lines
controllers/argocd/image_updater.go 77.11% 30 Missing and 16 partials ⚠️
controllers/argocd/util.go 0.00% 7 Missing ⚠️
controllers/argocd/custommapper.go 84.00% 2 Missing and 2 partials ⚠️
controllers/argocd/argocd_controller.go 0.00% 1 Missing ⚠️
Additional details and impacted files
@@               Coverage Diff               @@
##             release-0.20    #2425   +/-   ##
===============================================
  Coverage                ?   59.73%           
===============================================
  Files                   ?       87           
  Lines                   ?    20995           
  Branches                ?        0           
===============================================
  Hits                    ?    12541           
  Misses                  ?     7078           
  Partials                ?     1376           
Flag Coverage Δ
unit-tests 59.73% <75.21%> (?)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@chengfang
chengfang merged commit eed79a8 into argoproj-labs:release-0.20 Nov 23, 2026
8 checks passed
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.

3 participants