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

argocd app shows 'degraded' though the key unsealed sucessfully and sealed secret health status shows wrong #739

Closed
sandeepk8s opened this issue Feb 9, 2022 · 9 comments
Assignees

Comments

@sandeepk8s
Copy link

Controller version - v0.17.1

I just deployed argocd and declared the argocd creds using sealed secrets - secrets got unsealed successfully and everything's working fine BUT the argocd app health shows as DEGRADED as it failed first few times App health status still shows the previous error while the live state is good

https://argo-cd.readthedocs.io/en/stable/operator-manual/declarative-setup/#repositories

Expected behavior
App status should be healthy and sealed secret health status should show the correct message 'unsealed sealed secret successfully'

Version of Kubernetes:

v1.21
Actual behavior:

Output:
image
image

sealed secrets got decrypted and argocd is working fine. Only problem is the app status shows degraded and sealed secrets health status shows wrong

@github-actions github-actions bot added the triage Issues/PRs that need to be reviewed label Feb 9, 2022
@agarcia-oss agarcia-oss added question and removed triage Issues/PRs that need to be reviewed labels Feb 17, 2022
@agarcia-oss agarcia-oss self-assigned this Feb 17, 2022
@github-actions
Copy link

github-actions bot commented Mar 5, 2022

This Issue has been automatically marked as "stale" because it has not had recent activity (for 15 days). It will be closed if no further activity occurs. Thanks for the feedback.

@github-actions github-actions bot added the Stale label Mar 5, 2022
@github-actions
Copy link

Due to the lack of activity in the last 7 days since it was marked as "stale", we proceed to close this Issue. Do not hesitate to reopen it later if necessary.

@Yeicor
Copy link

Yeicor commented Feb 14, 2023

This issue is still relevant: if the secret fails to decrypt at least once (i.e. the master key is not uploaded yet), the status.conditions is not updated when the secret is correctly decrypted.

This can cause the whole Argo CD deployment to get stuck because the sealed secrets are not detected as healthy.

Screenshot_20230214_205139
Screenshot_20230214_211348

Searching through at the code, it looks like this condition is the reason the status is not updated:

// No need to update the status if we already have observed it from the
// current generation of the resource.
if ssecret.Status.ObservedGeneration == ssecret.ObjectMeta.Generation {
return nil
}

Is this condition required for some reason or can it be removed to fix this issue? I guess it is also possible to bump the generation when a secret is successfully decrypted.

@stand-sure
Copy link

commenting as the issue still exists

a major concern with an app being stuck in degraded even though it succeeded is that it conditions users to stop checking why the app shows as degraded, which could cause a real issue to be missed

@zatricky
Copy link

@agarcia-oss can this issue be re-opened?

@DreamingRaven
Copy link

can confirm I am also having the very same issue. My secrets are decrypting, but argocd is still reporting a degraded sealed secret.

@lhbarry
Copy link

lhbarry commented Oct 16, 2023

Same issue here, and very interested in a resolution

@jgracindexcom
Copy link

Same issue.

@bernardab0806
Copy link

Also having the same issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

9 participants