-
Notifications
You must be signed in to change notification settings - Fork 30
Robot Upgrade: argo-cd chart upgrade from 8.1.0 to 9.4.3 #3932
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
base: main
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Large diffs are not rendered by default.
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,6 +1,6 @@ | ||
| dependencies: | ||
| - name: redis-ha | ||
| repository: https://dandydeveloper.github.io/charts/ | ||
| version: 4.33.7 | ||
| digest: sha256:a3eba6bba484e9fbfaca33e7f1ea3e6daed74014df7e7b077c496c2201b01996 | ||
| generated: "2025-05-25T11:18:29.356017-05:00" | ||
| version: 4.34.11 | ||
| digest: sha256:c8810d74bdcdbec4db273601203c1cf8a32c9a35c82caf0c9bfd7a750c7ca1fa | ||
| generated: "2025-11-04T21:57:39.132262+01:00" |
Large diffs are not rendered by default.
Large diffs are not rendered by default.
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -475,12 +475,28 @@ | |
| if [ "$MASTER" = "$ANNOUNCE_IP" ]; then | ||
| redis_role | ||
| if [ "$ROLE" != "master" ]; then | ||
| reinit | ||
| echo "waiting for redis to become master" | ||
| sleep {{ .Values.splitBrainDetection.retryInterval }} | ||
| identify_master | ||
| redis_role | ||
| echo "Redis role is $ROLE, expected role is master. No need to reinitialize." | ||
| if [ "$ROLE" != "master" ]; then | ||
| echo "Redis role is $ROLE, expected role is master, reinitializing" | ||
| reinit | ||
| fi | ||
| fi | ||
| elif [ "${MASTER}" ]; then | ||
| identify_redis_master | ||
| if [ "$REDIS_MASTER" != "$MASTER" ]; then | ||
| reinit | ||
| echo "Redis master and local master are not the same. waiting." | ||
| sleep {{ .Values.splitBrainDetection.retryInterval }} | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The template directly injects the value of Recommendation: Ensure the value is a number by casting it to an integer in the template. |
||
| identify_master | ||
| identify_redis_master | ||
| echo "Redis master is ${MASTER}, expected master is ${REDIS_MASTER}. No need to reinitialize." | ||
| if [ "${REDIS_MASTER}" != "${MASTER}" ]; then | ||
| echo "Redis master is ${MASTER}, expected master is ${REDIS_MASTER}, reinitializing" | ||
| reinit | ||
| fi | ||
| fi | ||
| fi | ||
| done | ||
|
|
@@ -727,4 +743,3 @@ | |
| fi | ||
| echo "response=$response" | ||
| {{- end }} | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The template directly injects the value of
.Values.splitBrainDetection.retryIntervalinto a shell script without any validation or quoting. If an attacker can control this Helm value (e.g., via an Argo CD Application override), they can achieve arbitrary command execution within the container by providing a value like10; touch /tmp/pwned.Recommendation: Ensure the value is a number by casting it to an integer in the template.