Feature: mtls filters#4044
Open
szuecs wants to merge 17 commits into
Open
Conversation
878795b to
d35f4f6
Compare
feature: mtlsIssuerDN() filter feature: mtlsCN() filter feature: mtlsAuthn() filter doc: document mtls authnz filters Signed-off-by: Sandor Szücs <sandor.szuecs@zalando.de>
e07710c to
144a2b8
Compare
Signed-off-by: Sandor Szücs <sandor.szuecs@zalando.de>
fix: linter finding in test Signed-off-by: Sandor Szücs <sandor.szuecs@zalando.de>
Signed-off-by: Sandor Szücs <sandor.szuecs@zalando.de>
…ntegration Signed-off-by: Sandor Szücs <sandor.szuecs@zalando.de>
Signed-off-by: Sandor Szücs <sandor.szuecs@zalando.de>
shyamz-22
reviewed
Jun 3, 2026
vlktna
reviewed
Jun 3, 2026
shyamz-22
reviewed
Jun 3, 2026
MustafaSaber
reviewed
Jun 3, 2026
… used to validate in coming client certificates. Configuration is able to load system CAs first and append given PEM encoded CA files or we load only given PEM encoded CA files or if nil we load system CAs. Signed-off-by: Sandor Szücs <sandor.szuecs@zalando.de>
…, because we care about the identity of the client and not the identity of the CA Signed-off-by: Sandor Szücs <sandor.szuecs@zalando.de>
Signed-off-by: Sandor Szücs <sandor.szuecs@zalando.de>
Signed-off-by: Sandor Szücs <sandor.szuecs@zalando.de>
Member
Author
|
Given that auth should be fast, I will also provide 4 more filters for |
…sSanDNS(), mtlsSanIP(), mtlsSandURI() Signed-off-by: Sandor Szücs <sandor.szuecs@zalando.de>
Member
Author
|
e634e6e has the 4 new filters |
Signed-off-by: Sandor Szücs <sandor.szuecs@zalando.de>
Member
Author
|
Local test without CA loaded, so empty pool it can not validate certs: client call sent with no cert: We can see good default behaviour and no panic, so integration seems also fine |
Signed-off-by: Sandor Szücs <sandor.szuecs@zalando.de>
Signed-off-by: Sandor Szücs <sandor.szuecs@zalando.de>
a4180p
reviewed
Jun 4, 2026
a4180p
reviewed
Jun 4, 2026
a4180p
reviewed
Jun 4, 2026
a4180p
reviewed
Jun 4, 2026
a4180p
reviewed
Jun 4, 2026
MustafaSaber
reviewed
Jun 4, 2026
| Example: | ||
|
|
||
| ``` | ||
| * -> mtlsAuthn() -> mtlsSAN("spiffe://my-service.example/app1") -> "http://10.2.5.21:8080"; |
| * -> mtlsAuthn() -> mtlsCN("My CA") -> "http://10.2.5.21:8080"; | ||
| ``` | ||
|
|
||
| ### mtlsSAN |
Member
There was a problem hiding this comment.
I guess this should be removed and use other filters
Member
Author
There was a problem hiding this comment.
It depends, if someone wants to allow a mix of it, but yeah we could also argue to use a filter chain instead.
I agree will delete it later.
fix: support multiple CA files in config Signed-off-by: Sandor Szücs <sandor.szuecs@zalando.de>
…o it Signed-off-by: Sandor Szücs <sandor.szuecs@zalando.de>
Member
Author
|
@MustafaSaber I can't reply to your message directly so doing it here: |
Signed-off-by: Sandor Szücs <sandor.szuecs@zalando.de>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
feature: mtlsSAN(), mtlsSanCIDR(), mtlsSanDNS(), mtlsSanIP(), mtlsSanURI() filters
feature: mtlsIssuerDN() filter
feature: mtlsCN() filter
feature: mtlsAuthn() filter
doc: document mtls authnz filters
test: benchmarks
ref: closing #3295