-
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
Failures in integration tests against Kong nightly image #6370
Comments
Tested with the 2 images: |
Some new progress of re-producing: I tested with two images before and after the PR Kong/kong#13357. TL;DR: New image has some problems in processing SNIs attached to certificate when they are represented as an attribute of certificates where they are attached to. In the Kong config dumped from the old image, the SNIs are in a separate section and attached to certificates in their {
"certificates":[{
"cert": "----BEGIN CERTIFICATE-----....",
"key": "-----BEGIN RSA PRIVATE KEY-----....",
"id": "abcd1234"
}],
"snis":[{
"name": "foo.example",
"id": "fedc0987",
"certificate":"abcd1234"
}]
} Where SNIs are listed in a separate section and attached to certificate by their While the config dump from the new image looks like {
"certificates":[{
"cert": "----BEGIN CERTIFICATE-----....",
"key": "-----BEGIN RSA PRIVATE KEY-----....",
"id": "abcd1234",
"snis":[{
"name": "foo.example",
"id": "fedc0987"
}]
}]
} Where SNIs are represented as an attribute of the certificate they are attached to. Also, when we apply the config with the "attached" format to the old image, the certificate and SNIs are configured correctly, and the "separate" mode is OK too. However, when we apply the "attached" format to the new image, we can reproduce the error where the client receives In the declarative config generated by KIC, the "attached" format is generated. While Kong gateway has the ability to process it and convert to "separate" format in dumping config before the Kong/kong#13357 PR. After this PR, Kong gateway "lost" the ability to deal with the "attached" format of SNIs. |
…less mode (#13516) This PP is to fix the problem that was caused by #13357. The problem was recorded here. Kong/kubernetes-ingress-controller#6370
Kong/kong#13516 and https://github.com/Kong/kong-ee/pull/10000 should fix it. The nightly image built today ( |
Close it as the integration tests against Kong nightly images passed. |
Is there an existing issue for this?
Current Behavior
When running integration test cases requiring TLS certificates against the Kong nightly image (
kong/kong:nightly
), the certificate failed the TLS verification:While the same tests passed for Kong 3.7, and also passed for tests with DB backed gateway.
Expected Behavior
The tests passes without certificate verification failures.
Steps To Reproduce
Kong Ingress Controller version
Kubernetes version
Anything else?
First observed in https://github.com/Kong/kubernetes-ingress-controller/actions/runs/10174112861 run in July 31st. The PR in Kong Kong/kong#13357 may be related.
The text was updated successfully, but these errors were encountered: