This repository was archived by the owner on Jul 26, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 402
Poller iteration gets interrupted if one of the ExternalSecrets is not properly formatted (e.g. absent secretsDescriptor.data element) #158
Labels
Comments
I can reproduce this problem. We should also think about validating the /good-first-issue |
moolen
added a commit
to moolen/kubernetes-external-secrets
that referenced
this issue
Nov 5, 2019
moolen
added a commit
to moolen/kubernetes-external-secrets
that referenced
this issue
Nov 7, 2019
moolen
added a commit
to moolen/kubernetes-external-secrets
that referenced
this issue
Nov 8, 2019
moolen
added a commit
to moolen/kubernetes-external-secrets
that referenced
this issue
Nov 8, 2019
#208 has been merged and CRD validation will be available in next release, but I think we could probably still do some improvements on error handling and reporting of borked externalsecrets. |
great, thanks for the fix! I will test it on the next release. |
This issue is stale because it has been open 90 days with no activity. Remove stale label or comment or this will be closed in 30 days. |
I think this is done (#208). Feel free to re-open or create a new issue for enhancements. |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
https://github.com/godaddy/kubernetes-external-secrets/blob/72a4f6f420230825b8cd55e42949e8655b04ba6c/lib/backends/kv-backend.js#L67
Expected outcome:
a validation error is logged by the daemon, but handling of external secrets continues.
Actual outcome:
poller gets interrupted, does not continue with the ExternalSecrets that follow the malformatted ExternalSecret
Stacktrace logged:
at SecretsManagerBackend._fetchSecretPropertyValues (/app/lib/backends/kv-backend.js:26:37)\n at SecretsManagerBackend.getSecretManifestData (/app/lib/backends/kv-backend.js:68:45)\n at Poller._createSecretManifest (/app/lib/poller.js:52:8)\n at Poller._upsertKubernetesSecret (/app/lib/poller.js:89:39)\n at Poller._poll (/app/lib/poller.js:75:18)\n at ontimeout (timers.js:436:11)\n at tryOnTimeout (timers.js:300:5)\n at listOnTimeout (timers.js:263:5)\n at Timer.processTimers (timers.js:223:10)","msg":"Cannot read property 'map' of undefined","v":1}
The text was updated successfully, but these errors were encountered: