Affected by GO-2024-2704
and 5 other vulnerabilities
GO-2024-2704 : Consul JWT Auth in L7 Intentions Allow for Mismatched Service Identity and JWT Providers in github.com/hashicorp/consul
GO-2024-3241 : Hashicorp Consul Improper Neutralization of HTTP Headers for Scripting Syntax vulnerability in github.com/hashicorp/consul
GO-2024-3242 : Hashicorp Consul Cross-site Scripting vulnerability in github.com/hashicorp/consul
GO-2024-3243 : Hashicorp Consul Path Traversal vulnerability in github.com/hashicorp/consul
GO-2025-4081 : Consul key/value endpoint is vulnerable to denial of service in github.com/hashicorp/consul
GO-2025-4082 : Consul event endpoint is vulnerable to denial of service in github.com/hashicorp/consul
Discover Packages
github.com/hashicorp/consul
agent
log-drop
package
Version:
v1.16.0
Opens a new window with list of versions in this module.
Published: Jun 26, 2023
License: MPL-2.0
Opens a new window with license information.
Imports: 4
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
Documentation
¶
NewLogDropSink create a log Logger that wrap another Logger
It also create a go routine for consuming logs, the given context need to be canceled
to properly deallocate the Logger.
type Logger interface {
Log(level hclog .Level , msg string , args ...interface{})
}
Logger mimic the interface from hclog.Logger
MockLogger is an autogenerated mock type for the Logger type
NewMockLogger creates a new instance of MockLogger. It also registers the testing.TB interface on the mock and a cleanup function to assert the mocks expectations.
Log provides a mock function with given fields: level, msg, args
Source Files
¶
Click to show internal directories.
Click to hide internal directories.