Skip to contentSkip to conversation

TLS session tags support for tlshd (rough draft)

DISCUSSION Chuck Lever 2 participants 3 messages Aug 6, 2025 – Aug 18, 2025 Handshake upcall for transport layer security

lore
Share & tools
lore
#0 lore raw

I pushed my WIP branch that starts to implement TLS session tags to this branch:

https://github.com/oracle/ktls-utils/tree/tls-session-tags

One of these patches has a man page tls-session-tags(7), that explains things at a high level. An example set of tags is defined in /etc/tlshd/tags.d/tags.example (added in one of the commits).

A lot of it is working, some isn't. But these patches serve to demonstrate some of the usability and coding issues that have come up while developing.

Signature · 1 line
Chuck Lever
#1 lore raw
Quoted 5 lines · Chuck Lever

I pushed my WIP branch that starts to implement TLS session tags to this branch:

https://github.com/oracle/ktls-utils/tree/tls-session-tags

Quoted 9 lines

One of these patches has a man page tls-session-tags(7), that explains things at a high level. An example set of tags is defined in /etc/tlshd/tags.d/tags.example (added in one of the commits).

A lot of it is working, some isn't. But these patches serve to demonstrate some of the usability and coding issues that have come up while developing.

Ach, well, I don't know.
Yet another certificate validation mechanism.
I would have hoped that we have enough validation methods already... At the same time I do see the need for a selection mechanism on the server.

But it's for X.509, so I'm not that concerned.
(For now ...). If it works for you, fine.

Cheers,

Hannes

Signature · 4 lines
Dr. Hannes Reinecke                  Kernel Storage Architect
[email protected]                                +49 911 74053 688
SUSE Software Solutions GmbH, Frankenstr. 146, 90461 Nürnberg
HRB 36809 (AG Nürnberg), GF: I. Totev, A. McDonald, W. Knoblich
#2 lore raw
Quoted 11 lines · Hannes Reinecke
Quoted 10 lines · Chuck Lever

I pushed my WIP branch that starts to implement TLS session tags to this branch:

   https://github.com/oracle/ktls-utils/tree/tls-session-tags

One of these patches has a man page tls-session-tags(7), that explains things at a high level. An example set of tags is defined in /etc/tlshd/tags.d/tags.example (added in one of the commits).

Quoted 6 lines
Quoted 4 lines

A lot of it is working, some isn't. But these patches serve to demonstrate some of the usability and coding issues that have come up while developing.

Ach, well, I don't know.
Yet another certificate validation mechanism.

Thanks for having a look.

To be clear, this is not a certificate validation mechanism. The library already validates/verifies incoming certificates.

What this new mechanism does is examine an already-trusted and -verified certificate, and adds tags based on the contents of the certificate's fields.

Kernel consumers can then use the tags to make authorization decisions. It avoids the need for these consumers to have any understanding of x.509 or ASN.1 -- the tagging is handled by tlshd.

Quoted 6 lines

I would have hoped that we have enough validation methods already... At the same time I do see the need for a selection mechanism on the server.

But it's for X.509, so I'm not that concerned.
(For now ...). If it works for you, fine.

In the next version, the filter types explicitly mention x.509 to make it possible to extend this mechanism to other handshake flavors (like PSK) if we want.

Signature · 1 line
Chuck Lever