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

Include parent information with SNI->Secret maps #2605

Open
rainest opened this issue Jun 23, 2022 · 0 comments
Open

Include parent information with SNI->Secret maps #2605

rainest opened this issue Jun 23, 2022 · 0 comments

Comments

@rainest
Copy link
Contributor

rainest commented Jun 23, 2022

Resources we ingest can attempt to assign the same SNI (hostname) to multiple certificates, but the gateway can only serve a single certificate for a given hostname. When we encounter an SNI we have already bound to a certificate, we keep only the first certificate binding.

When we alert on this, users need to fix whichever resource (Gateway Listener or Ingress-like resource) assigned the SNI, either choosing another hostname or using the same certificate for both. To that end, when we build the SNI->Secret maps that we then use to construct Kong certificate resources, we should include which resource added that SNI, and log both the parent resource that won and the parent resource that lost when we encounter a conflict.

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

3 participants