Affected by GO-2023-1581
and 5 other vulnerabilities
GO-2023-1581: Uncontrolled Resource Consumption in Hashicorp Nomad in github.com/hashicorp/nomad
GO-2023-1899: Hashicorp Nomad ACLs Cannot Deny Access to Workload’s Own Variables in github.com/hashicorp/nomad
GO-2024-2669: API token secret ID leak to Sentinel in github.com/hashicorp/nomad
GO-2024-2670: ACL security vulnerability in github.com/hashicorp/nomad
GO-2024-3073: Nomad Vulnerable to Allocation Directory Escape On Non-Existing File Paths Through Archive Unpacking in github.com/hashicorp/nomad
GO-2024-3262: Hashicorp Nomad Incorrect Authorization vulnerability in github.com/hashicorp/nomad
package
Version:
v1.4.4-changelog
Opens a new window with list of versions in this module.
Published: Feb 15, 2023
License: MPL-2.0
Opens a new window with license information.
Imports: 9
Opens a new window with list of imports.
Imported by: 52
Opens a new window with list of known importers.
Documentation
¶
-
func CPUProfile(ctx context.Context, sec int) ([]byte, map[string]string, error)
-
func Cmdline() ([]byte, map[string]string, error)
-
func IsErrProfileNotFound(err error) bool
-
func NewErrProfileNotFound(profile string) error
-
func Profile(profile string, debug, gc int) ([]byte, map[string]string, error)
-
func Trace(ctx context.Context, sec int) ([]byte, map[string]string, error)
-
type ReqType
CPUProfile generates a CPU Profile for a given duration
Cmdline responds with the running program's
command line, with arguments separated by NUL bytes.
IsErrProfileNotFound returns whether the error is due to a pprof profile
being invalid
NewErrProfileNotFound returns a new error caused by a pprof.Lookup
profile not being found
Profile generates a pprof.Profile report for the given profile name
see runtime/pprof/pprof.go for available profiles.
Trace runs a trace profile for a given duration
const (
CmdReq ReqType = "cmdline"
CPUReq ReqType = "cpu"
TraceReq ReqType = "trace"
LookupReq ReqType = "lookup"
ErrProfileNotFoundPrefix = "Pprof profile not found profile:"
)
Source Files
¶
Click to show internal directories.
Click to hide internal directories.