Documentation
¶
Index ¶
- func KeyLogConfCheck(conf KeyLogConfFile) error
- func ProductRulesCheck(conf *ProductRulesFile) error
- func RuleListCheck(conf *RuleFileList) error
- type ConfModKeyLog
- type KeyLogConfFile
- type KeyLogRuledeprecated
- type KeyLogRuleFiledeprecated
- type KeyLogTable
- type ModuleKeyLogdeprecated
- type ProductRulesdeprecated
- type ProductRulesFiledeprecated
- type RuleFileListdeprecated
- type RuleListdeprecated
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 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) 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 (m *ModuleKeyLog) Init(cbs *bfe_module.BfeCallbacks, whs *web_monitor.WebHandlers, cr string) error
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 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.