Documentation
¶
Overview ¶
Package codeserver contains a detector for weak credentials in Code-Server https://github.com/coder/code-server/.
Index ¶
- Constants
- func New(cfg Config) detector.Detector
- func NewDefault() detector.Detector
- type Config
- type Detector
- func (d Detector) DetectedFinding() inventory.Finding
- func (Detector) Name() string
- func (Detector) RequiredExtractors() []string
- func (Detector) Requirements() *plugin.Capabilities
- func (d Detector) Scan(ctx context.Context, _ *scalibrfs.ScanRoot, _ *packageindex.PackageIndex) (inventory.Finding, error)
- func (Detector) Version() int
Constants ¶
View Source
const (
// Name of the detector.
Name = "weakcredentials/codeserver"
)
Variables ¶
This section is empty.
Functions ¶
func NewDefault ¶
NewDefault returns a detector with the default config settings.
Types ¶
type Config ¶
Config for this detector.
func DefaultConfig ¶
func DefaultConfig() Config
DefaultConfig returns the default config for this detector.
type Detector ¶
type Detector struct {
// contains filtered or unexported fields
}
Detector is a SCALIBR Detector for weak/guessable passwords for the Code-Server service.
func (Detector) DetectedFinding ¶ added in v0.3.1
DetectedFinding returns generic vulnerability information about what is detected.
func (Detector) RequiredExtractors ¶
RequiredExtractors returns an empty list as there are no dependencies.
func (Detector) Requirements ¶
func (Detector) Requirements() *plugin.Capabilities
Requirements of the detector.
Click to show internal directories.
Click to hide internal directories.