-
Notifications
You must be signed in to change notification settings - Fork 3.4k
policy: Add validation and docs for TLS SNI ServerNames #38615
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
Conversation
214931c
to
af14c52
Compare
af14c52
to
9e233cc
Compare
/test |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Some early comments below
pkg/k8s/apis/cilium.io/client/crds/v2/ciliumclusterwidenetworkpolicies.yaml
Outdated
Show resolved
Hide resolved
pkg/k8s/apis/cilium.io/client/crds/v2/ciliumclusterwidenetworkpolicies.yaml
Outdated
Show resolved
Hide resolved
pkg/k8s/apis/cilium.io/client/crds/v2/ciliumclusterwidenetworkpolicies.yaml
Outdated
Show resolved
Hide resolved
9e233cc
to
2ec12e0
Compare
45d56ff
to
8dacb44
Compare
/test |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Copilot reviewed 22 out of 22 changed files in this pull request and generated no comments.
Comments suppressed due to low confidence (1)
pkg/policy/api/zz_generated.deepcopy.go:856
- Verify that the use of copy() is valid here, as both the source and destination slices must be of the same type. If conversion is required due to type differences between string and ServerName, consider iterating over the slice elements and converting each element explicitly.
copy(*out, *in)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@sayboras Nice work Tam!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should we support testing with **.
prefix instead of *.*.
prefix?
8dacb44
to
913f0d6
Compare
Good catch, I have added more test to cover for multiple label match. |
913f0d6
to
d1e0320
Compare
/test |
Signed-off-by: Tam Mach <tam.mach@cilium.io>
Similarly to external target, this is to skip the warning log for external other target. Signed-off-by: Tam Mach <tam.mach@cilium.io>
Signed-off-by: Tam Mach <tam.mach@cilium.io>
d1e0320
to
bf42eec
Compare
/test |
Description
After the below PR, TLS SNI server names are now supporting prefix wildcard match, this PR is to update the docs and basic validation for the same.
Relates: cilium/proxy#1242
Note: Wait for #38603 to land in first
Testing
Testing was done locally as per below