Affected by GO-2026-5996
and 1 other vulnerabilities
GO-2026-5996 : ToolHive: SSRF guard misses IPv6 NAT64 ranges (64:ff9b::/96, 64:ff9b:1::/48), allowing metadata/internal access behind a NAT64 gateway in github.com/stacklok/toolhive
GO-2026-6002 : ToolHive: SSRF in remote MCP server authentication discovery (host-side, bypasses container isolation) in github.com/stacklok/toolhive
Discover Packages
github.com/stacklok/toolhive
pkg
logger
package
Version:
v0.0.4
Opens a new window with list of versions in this module.
Published: Apr 7, 2025
License: Apache-2.0
Opens a new window with license information.
Imports: 5
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
Documentation
¶
Package logger provides a logging capability for toolhive for running locally as a CLI and in Kubernetes
Initialize creates and configures the appropriate logger.
If the UNSTRUCTURED_LOGS is set to true, it will output plain log message
with only time and LogLevelType (INFO, DEBUG, ERROR, WARN)).
Otherwise it will create a standard structured slog logger
Logger provides a unified interface for logging
Log is a global logger instance
GetLogger returns a context-specific logger
Source Files
¶
Click to show internal directories.
Click to hide internal directories.