Documentation
¶
Overview ¶
Package tls contains definitions and methods related to tags parsed from the TLS handshake
Index ¶
Constants ¶
const ( TagTLSVersion = "tls.version:" TagTLSCipherSuiteID = "tls.cipher_suite_id:" TagTLSClientVersion = "tls.client_version:" )
Constants for tag keys
const ( OfferedTLSVersion10 uint8 = 0x01 OfferedTLSVersion11 uint8 = 0x02 OfferedTLSVersion12 uint8 = 0x04 OfferedTLSVersion13 uint8 = 0x08 )
Bitmask constants for Offered_versions matching kernelspace definitions
const ( // ConnTagGnuTLS is the tag for GnuTLS connections ConnTagGnuTLS = GnuTLS // ConnTagOpenSSL is the tag for OpenSSL connections ConnTagOpenSSL = OpenSSL // ConnTagGo is the tag for GO TLS connections ConnTagGo = Go // ConnTagTLS is the tag for TLS connections in general ConnTagTLS = TLS // ConnTagIstio is the tag for Istio TLS connections ConnTagIstio = Istio // ConnTagNodeJS is the tag for NodeJS TLS connections ConnTagNodeJS = NodeJS )
Variables ¶
var ClientVersionTags = map[uint16]string{ tls.VersionTLS10: TagTLSClientVersion + version10, tls.VersionTLS11: TagTLSClientVersion + version11, tls.VersionTLS12: TagTLSClientVersion + version12, tls.VersionTLS13: TagTLSClientVersion + version13, }
ClientVersionTags maps TLS versions to tag names for client offered versions (exported for testing)
var ( StaticTags = map[ConnTag]string{ GnuTLS: "tls.library:gnutls", OpenSSL: "tls.library:openssl", Go: "tls.library:go", TLS: "tls.connection:encrypted", Istio: "tls.library:istio", NodeJS: "tls.library:nodejs", } )
var VersionTags = map[uint16]string{ tls.VersionTLS10: TagTLSVersion + version10, tls.VersionTLS11: TagTLSVersion + version11, tls.VersionTLS12: TagTLSVersion + version12, tls.VersionTLS13: TagTLSVersion + version13, }
VersionTags maps TLS versions to tag names for server chosen version (exported for testing)
Functions ¶
func GetStaticTags ¶
GetStaticTags return the string list of static tags from network.ConnectionStats.Tags
Types ¶
type Tags ¶
Tags holds the TLS tags. It is used to store the TLS version, cipher suite and offered versions. We can't use the struct from eBPF as the definition is shared with windows.
func (*Tags) GetDynamicTags ¶
GetDynamicTags generates dynamic tags based on TLS information
Directories
¶
Path | Synopsis |
---|---|
gotls
|
|
testutil/gotls_client
Package main is a simple client for the gotls_server.
|
Package main is a simple client for the gotls_server. |
testutil/gotls_server
Package main is a simple client for the gotls_server.
|
Package main is a simple client for the gotls_server. |