Skip to content

Commit 817db09

Browse files
committed
tlshd: Parse filter definitions
Administrators can define filters which specify a filter type (e.g., which x.509 field is to be checked) and filter arguments (e.g., what content is to be matched). A subsequent patch will add the ability to specify the tags which are added to a TLS session based on filter matches. Signed-off-by: Chuck Lever <[email protected]>
1 parent 52bca1f commit 817db09

File tree

2 files changed

+442
-2
lines changed

2 files changed

+442
-2
lines changed

man/man7/tls-session-tags.7

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -221,6 +221,24 @@ derived SHA256 fingerrint.
221221
.B x509.derived.selfSigned
222222
Filters of this type match when an incoming x.509 certificate's
223223
issuer and subject distinguished names are exactly equal.
224+
.SS Filters
225+
The definition of each filter is YAML mapping that specifies
226+
the unique name of the filter,
227+
its filter type,
228+
and
229+
zero or more specific match arguments to be used.
230+
For example:
231+
232+
filters:
233+
...
234+
monsters-university:
235+
type: "x509.tbs.issuer"
236+
pattern: "*,O=Monsters University,*"
237+
...
238+
239+
This blurb defines a filter named "monsters-university".
240+
It uses a wildcard match that looks for "O=Monsters University"
241+
in the "issuer" field of each incoming x.509 certificate.
224242
.SH STANDARDS
225243
x.509
226244
.BR

0 commit comments

Comments
 (0)