-
Notifications
You must be signed in to change notification settings - Fork 593
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
apikey is not updated within kong on kongCredential update #230
Comments
Some more info, It really looks like some kind of race condition. Perhaps helm creates resources in a certain order? does consumer have to exist before the credentials are created with consumerRef? UPDATE: it also appears if i go ahead and rename the credential by adding 2 to the end, it does get created, whereas any manipulation on the credential without changing the name has no effect.
Full sample:
|
Exactly same issue we are facing. And it doesn't sync to KONG for DELETE as well. I had a quick look at the code |
The following is currently not a bug but an expected behavior which is not documented: Once a credential is created in Kong using KongCredential CRD, it won't be updated. This is a bit of a challenge because not all credentials can be diffed, for example, basic-auth passwords in Kong are hashed, making it impossible to figure out if a credential is same as the one in KongCredential resource. We've not yet figured out a path forward for this problem yet. |
Credential sync for DB mode has now been moved to decK: - multiple credentials of the same type can be provisioned - any change to credentials will now be propagated to Kong #230 With this change, all syncing is now done via decK, providing for a stable sync with least API calls. There exists one caveat here, any change to password for basic-auth will not result in a change in Kong because it is not possible to diff passwords as Kong hashes them in the API response and DB. There will be a follow up commit to work around this limitation. For DB-less mode, the parsing becomes simpler but no functional change should happen. This change also lays the foundation for secret based credentials in future.
Credential sync for DB mode has now been moved to decK: - multiple credentials of the same type can be provisioned - any change to credentials will now be propagated to Kong #230 With this change, all syncing is now done via decK, providing for a stable sync with least API calls. There exists one caveat here, any change to password for basic-auth will not result in a change in Kong because it is not possible to diff passwords as Kong hashes them in the API response and DB. There will be a follow up commit to work around this limitation. For DB-less mode, the parsing becomes simpler but no functional change should happen. This change also lays the foundation for secret based credentials in future.
This is implemented with #371 and will be part of 0.6.0 release. |
Summary
When kongCredential is updated and applied the changes are not reflected in kong.
example credential created:
Which then was updated to and applied through
helm upgrade
:The change is not reflected:
Kong Ingress controller version
0.3.0
Kong or Kong Enterprise version
kong community 1.0.2
Kubernetes version
Environment
uname -a
):Linux kong-kong-ingress-6f54f64ff6-dntvb 4.14.65+ #1 SMP Thu Oct 25 10:42:50 PDT 2018 x86_64 Linux
What happened
kongCredential was updated and applied through
helm upgrade
Expected behavior
the new apikey applied to kong
Steps To Reproduce
The text was updated successfully, but these errors were encountered: