k8wiz
Argo CD
Hard
Troubleshooting & Debugging

A PreSync migration Job reads its password from a Secret stored in the same Application. After the password is rotated in Git, the next sync fails authentication. Why?

Select your answer:

Show answer and explanation

Answer: The hook runs before the Sync phase updates the Secret

Explanation

A Secret without a hook annotation belongs to the Sync phase, which starts only after every PreSync hook has succeeded. The migration Job therefore still sees the old password. Keep hook credentials outside the Application, or make the Secret a hook too with a lower sync wave so it lands first.

Read more about Argo CD