mod_key_log

package
v1.9.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 14, 2026 License: Apache-2.0 Imports: 14 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func KeyLogConfCheck

func KeyLogConfCheck(conf KeyLogConfFile) error

func ProductRulesCheck

func ProductRulesCheck(conf *ProductRulesFile) error

func RuleListCheck

func RuleListCheck(conf *RuleFileList) error

Types

type ConfModKeyLog

type ConfModKeyLog struct {
	Basic struct {
		DataPath string // path of config data (key_log)
	}
	Log access_log.LogConfig
}

ConfModKeyLog represents the basic config for mod_key_log.

func ConfLoad

func ConfLoad(filePath string, confRoot string) (*ConfModKeyLog, error)

ConfLoad loads config from file

func (*ConfModKeyLog) Check

func (cfg *ConfModKeyLog) Check(confRoot string) error

Check validates module config

type KeyLogConfFile

type KeyLogConfFile struct {
	Version *string // version of the config
	// Deprecated: product based key log filtering is no longer supported.
	Config *ProductRulesFile
}

type KeyLogRule deprecated

type KeyLogRule struct {
	Cond condition.Condition // condition for key_log
}

Deprecated: product based key log filtering is no longer supported. The rules are still parsed for backward compatibility but ignored.

type KeyLogRuleFile deprecated

type KeyLogRuleFile struct {
	Cond *string // condition for key_log
}

Deprecated: product based key log filtering is no longer supported. The rules are still parsed for backward compatibility but ignored.

type KeyLogTable

type KeyLogTable struct {
	// contains filtered or unexported fields
}

func NewKeyLogTable

func NewKeyLogTable() *KeyLogTable

func (*KeyLogTable) Search

func (t *KeyLogTable) Search(product string) (*RuleList, bool)

func (*KeyLogTable) Update

func (t *KeyLogTable) Update(conf keyLogConf)

type ModuleKeyLog deprecated

type ModuleKeyLog struct {
	// contains filtered or unexported fields
}

ModuleKeyLog provides a writer for TLS key logs in NSS key log format so that external programs (eg. wireshark) can decrypt TLS connections for trouble shooting.

The writer is registered (via bfe_module.TlsKeyLogProvider) as tls.Config.KeyLogWriter, and the standard library writes key log lines during the TLS handshake.

For more information about NSS key log format, see: https://developer.mozilla.org/en-US/docs/Mozilla/Projects/NSS/Key_Log_Format

Deprecated: product based key log filtering (rules in the data config) is no longer supported, because the key log is written during the handshake while the product is only known after routing. The rules in the data config are still parsed for backward compatibility but ignored.

func NewModuleKeyLog

func NewModuleKeyLog() *ModuleKeyLog

func (*ModuleKeyLog) Init

func (*ModuleKeyLog) Name

func (m *ModuleKeyLog) Name() string

func (*ModuleKeyLog) TlsKeyLogWriter added in v1.9.0

func (m *ModuleKeyLog) TlsKeyLogWriter() io.Writer

TlsKeyLogWriter returns the writer for TLS key log (NSS keylog format). Returning nil disables tls key logging.

type ProductRules deprecated

type ProductRules map[string]*RuleList // product => list of key_log rules

Deprecated: product based key log filtering is no longer supported. The product rules are still parsed for backward compatibility but ignored.

type ProductRulesFile deprecated

type ProductRulesFile map[string]*RuleFileList // product => list of key_log rules

Deprecated: product based key log filtering is no longer supported. The product rules are still parsed for backward compatibility but ignored.

type RuleFileList deprecated

type RuleFileList []KeyLogRuleFile

Deprecated: product based key log filtering is no longer supported.

type RuleList deprecated

type RuleList []KeyLogRule

Deprecated: product based key log filtering is no longer supported.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL