Commit c521e13
committed
fix(argocd): stop the redis restart from making a split worse
Two failure paths the first cut got wrong:
- If argocd-redis itself fails to restart, restarting its clients hands
them the new password while redis still requires the old one — exactly
the WRONGPASS split this is meant to prevent. Redis now runs first and
is the only target allowed to abort the sequence; a 404 means there is
nothing to keep in step, anything else is raised.
- `.catch(() => undefined)` on the read swallowed RBAC and transient
errors, so a real rotation could silently skip the restart. getK8sSecret
already maps 404 to undefined, so the catch only ever hid real failures.
A failed read now assumes rotation — a redundant restart is cheap, a
missed one is an outage.1 parent 6a9dddd commit c521e13
2 files changed
Lines changed: 71 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1081 | 1081 | | |
1082 | 1082 | | |
1083 | 1083 | | |
| 1084 | + | |
| 1085 | + | |
| 1086 | + | |
| 1087 | + | |
| 1088 | + | |
| 1089 | + | |
| 1090 | + | |
| 1091 | + | |
| 1092 | + | |
| 1093 | + | |
| 1094 | + | |
| 1095 | + | |
| 1096 | + | |
1084 | 1097 | | |
1085 | 1098 | | |
1086 | 1099 | | |
| |||
1121 | 1134 | | |
1122 | 1135 | | |
1123 | 1136 | | |
| 1137 | + | |
| 1138 | + | |
| 1139 | + | |
| 1140 | + | |
| 1141 | + | |
| 1142 | + | |
| 1143 | + | |
| 1144 | + | |
| 1145 | + | |
| 1146 | + | |
| 1147 | + | |
| 1148 | + | |
| 1149 | + | |
| 1150 | + | |
| 1151 | + | |
| 1152 | + | |
| 1153 | + | |
| 1154 | + | |
| 1155 | + | |
| 1156 | + | |
| 1157 | + | |
| 1158 | + | |
| 1159 | + | |
| 1160 | + | |
| 1161 | + | |
| 1162 | + | |
| 1163 | + | |
| 1164 | + | |
1124 | 1165 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
838 | 838 | | |
839 | 839 | | |
840 | 840 | | |
841 | | - | |
| 841 | + | |
| 842 | + | |
| 843 | + | |
| 844 | + | |
| 845 | + | |
| 846 | + | |
| 847 | + | |
| 848 | + | |
| 849 | + | |
| 850 | + | |
| 851 | + | |
| 852 | + | |
| 853 | + | |
| 854 | + | |
| 855 | + | |
| 856 | + | |
| 857 | + | |
| 858 | + | |
| 859 | + | |
842 | 860 | | |
843 | 861 | | |
844 | 862 | | |
| |||
871 | 889 | | |
872 | 890 | | |
873 | 891 | | |
874 | | - | |
875 | | - | |
| 892 | + | |
| 893 | + | |
| 894 | + | |
| 895 | + | |
| 896 | + | |
| 897 | + | |
| 898 | + | |
| 899 | + | |
| 900 | + | |
| 901 | + | |
| 902 | + | |
876 | 903 | | |
877 | 904 | | |
878 | 905 | | |
| |||
0 commit comments