security

package
v0.1.21 Latest Latest
Warning

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

Go to latest
Published: Sep 4, 2026 License: MIT Imports: 5 Imported by: 0 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

View Source
const (
	ShareabilityLeakCredential = "credential"
	ShareabilityLeakLocalPath  = "private local path"
)

Variables

This section is empty.

Functions

func CheckResponseSize

func CheckResponseSize(size, max int64) error

func Contains

func Contains(s, sub string) bool

func DetectShareabilityLeak added in v0.1.18

func DetectShareabilityLeak(text string) (string, bool)

DetectShareabilityLeak reports high-confidence credential or private-path evidence without returning the matched value.

func Redact

func Redact(text string) string

func ValidateArchivePath

func ValidateArchivePath(name string) error

func ValidateCommandArgs

func ValidateCommandArgs(args []string) error

func ValidatePathWithinRoot added in v0.1.18

func ValidatePathWithinRoot(root, name string) error

Types

type ExternalToolLock

type ExternalToolLock struct {
	Name            string
	Version         string
	ContainerDigest string
}

func (ExternalToolLock) Validate

func (l ExternalToolLock) Validate() error

type RetentionPolicy

type RetentionPolicy struct {
	KeepPrivateNotes bool
	RetentionDays    int
}

func (RetentionPolicy) Validate

func (p RetentionPolicy) Validate() error

Jump to

Keyboard shortcuts

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