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: remove Egress NetworkPolicy for argocd-redis and argocd-redis-ha-haproxy #18367

Merged
merged 2 commits into from
May 22, 2024

Conversation

mayzhang2000
Copy link
Contributor

Checklist:

  • Either (a) I've created an enhancement proposal and discussed it with the community, (b) this is a bug fix, or (c) this does not need to be in the release notes.
  • The title of the PR states what changed and the related issues number (used for the release note).
  • The title of the PR conforms to the Toolchain Guide
  • I've included "Closes [ISSUE #]" or "Fixes [ISSUE #]" in the description to automatically close the associated issue.
  • I've updated both the CLI and UI to expose my feature, or I plan to submit a second PR with them.
  • Does this PR require documentation updates?
  • I've updated documentation as required by this PR.
  • I have signed off all my commits as required by DCO
  • I have written unit and/or e2e tests for my change. PRs without these are unlikely to be merged.
  • My build is green (troubleshooting builds).
  • My new feature complies with the feature status guidelines.
  • I have added a brief description of why this PR is necessary and/or what this PR solves.
  • Optional. My organization is added to USERS.md.
  • Optional. For bug fixes, I've indicated what older releases this fix should be cherry-picked into (this may or may not happen depending on risk/complexity).

yyzxw and others added 2 commits May 22, 2024 16:46
Signed-off-by: xiaowu.zhu <xiaowu.zhu@daocloud.io>
Signed-off-by: May Zhang <may_zhang@intuit.com>
@mayzhang2000 mayzhang2000 requested review from a team as code owners May 22, 2024 18:40
Copy link

codecov bot commented May 22, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 45.68%. Comparing base (bc53266) to head (3b2f5d3).
Report is 472 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master   #18367      +/-   ##
==========================================
- Coverage   45.68%   45.68%   -0.01%     
==========================================
  Files         353      353              
  Lines       46947    46965      +18     
==========================================
+ Hits        21447    21454       +7     
- Misses      22761    22772      +11     
  Partials     2739     2739              

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

@todaywasawesome
Copy link
Contributor

Rather than changing network policy could we move the init container to something that already has access like Argo CD itself?

@leoluz
Copy link
Collaborator

leoluz commented May 22, 2024

Rather than changing network policy could we move the init container to something that already has access like Argo CD itself?

@todaywasawesome This is an interesting idea and in theory it should work. However all our tests were done with the init container defined as part of Redis itself. I'm not sure if switching it to the Argo CD pods would be the best strategy at this point as it could introduce more edge cases.
cc @mayzhang2000

@todaywasawesome
Copy link
Contributor

I don't want to hold it up so I think we should move ahead and take it as an enhancement to move it later. Modifying the policy will get people unblocked but I think it's a security issue to give access for what should be a once in a lifetime execution.

@todaywasawesome
Copy link
Contributor

On a side note I think the docs are excellent here @mayzhang2000

@crenshaw-dev crenshaw-dev merged commit d73eb8f into argoproj:master May 22, 2024
28 checks passed
@crenshaw-dev
Copy link
Member

/cherry-pick release-2.11

@crenshaw-dev
Copy link
Member

/cherry-pick release-2.10

gcp-cherry-pick-bot bot pushed a commit that referenced this pull request May 22, 2024
…-haproxy (#18367)

* fix: runing local failed

Signed-off-by: xiaowu.zhu <xiaowu.zhu@daocloud.io>

* fix: Redis egress removal

Signed-off-by: May Zhang <may_zhang@intuit.com>

---------

Signed-off-by: xiaowu.zhu <xiaowu.zhu@daocloud.io>
Signed-off-by: May Zhang <may_zhang@intuit.com>
Co-authored-by: yyzxw <1020938856@qq.com>
@crenshaw-dev
Copy link
Member

/cherry-pick release-2.9

Copy link

Cherry-pick failed with Merge error d73eb8f7fd5bbe73cb32705e2803e0fdda60e649 into temp-cherry-pick-318a71-release-2.10

Copy link

Cherry-pick failed with Merge error d73eb8f7fd5bbe73cb32705e2803e0fdda60e649 into temp-cherry-pick-318a71-release-2.9

crenshaw-dev pushed a commit that referenced this pull request May 22, 2024
…-haproxy (#18367) (#18372)

* fix: runing local failed



* fix: Redis egress removal



---------

Signed-off-by: xiaowu.zhu <xiaowu.zhu@daocloud.io>
Signed-off-by: May Zhang <may_zhang@intuit.com>
Co-authored-by: May Zhang <may_zhang@intuit.com>
Co-authored-by: yyzxw <1020938856@qq.com>
@pramodsetlur
Copy link

I think I am hitting this (timeout) issue on v2.8.19. Is there a plan to release this as a patch to v2.8?

$ k logs -f argocd-redis-ha-haproxy-75449b8544-nk4t4 secret-init
Checking for initial Redis password in secret foundry/argocd-redis at key auth. 
time="2024-05-23T00:05:40Z" level=fatal msg="Post \"https://250.7.132.1:443/api/v1/namespaces/foundry/secrets\": dial tcp 250.7.132.1:443: i/o timeout"

@agnut92
Copy link

agnut92 commented May 23, 2024

When will this fix be available in release?

ishitasequeira pushed a commit that referenced this pull request May 23, 2024
rumstead pushed a commit to rumstead/argo-cd that referenced this pull request Jun 6, 2024
…-haproxy (argoproj#18367)

* fix: runing local failed

Signed-off-by: xiaowu.zhu <xiaowu.zhu@daocloud.io>

* fix: Redis egress removal

Signed-off-by: May Zhang <may_zhang@intuit.com>

---------

Signed-off-by: xiaowu.zhu <xiaowu.zhu@daocloud.io>
Signed-off-by: May Zhang <may_zhang@intuit.com>
Co-authored-by: yyzxw <1020938856@qq.com>
Signed-off-by: rumstead <37445536+rumstead@users.noreply.github.com>
mkieweg pushed a commit to mkieweg/argo-cd that referenced this pull request Jun 11, 2024
…-haproxy (argoproj#18367)

* fix: runing local failed

Signed-off-by: xiaowu.zhu <xiaowu.zhu@daocloud.io>

* fix: Redis egress removal

Signed-off-by: May Zhang <may_zhang@intuit.com>

---------

Signed-off-by: xiaowu.zhu <xiaowu.zhu@daocloud.io>
Signed-off-by: May Zhang <may_zhang@intuit.com>
Co-authored-by: yyzxw <1020938856@qq.com>
Hariharasuthan99 pushed a commit to AmadeusITGroup/argo-cd that referenced this pull request Jun 16, 2024
…-haproxy (argoproj#18367)

* fix: runing local failed

Signed-off-by: xiaowu.zhu <xiaowu.zhu@daocloud.io>

* fix: Redis egress removal

Signed-off-by: May Zhang <may_zhang@intuit.com>

---------

Signed-off-by: xiaowu.zhu <xiaowu.zhu@daocloud.io>
Signed-off-by: May Zhang <may_zhang@intuit.com>
Co-authored-by: yyzxw <1020938856@qq.com>
jsolana pushed a commit to jsolana/argo-cd that referenced this pull request Jul 24, 2024
…-haproxy (argoproj#18367)

* fix: runing local failed

Signed-off-by: xiaowu.zhu <xiaowu.zhu@daocloud.io>

* fix: Redis egress removal

Signed-off-by: May Zhang <may_zhang@intuit.com>

---------

Signed-off-by: xiaowu.zhu <xiaowu.zhu@daocloud.io>
Signed-off-by: May Zhang <may_zhang@intuit.com>
Co-authored-by: yyzxw <1020938856@qq.com>
Signed-off-by: Javier Solana <javier.solana@cabify.com>
Signed-off-by: Javier Solana <javier.solana@cabify.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
Development

Successfully merging this pull request may close these issues.

None yet

8 participants