codeserver

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Apr 23, 2025 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Overview

Package codeserver contains a detector for weak credentials in Code-Server https://github.com/coder/code-server/.

Index

Constants

View Source
const (
	// Name of the detector.
	Name = "weakcredentials/codeserver"
)

Variables

This section is empty.

Functions

func New

func New(cfg Config) detector.Detector

New returns a detector.

func NewDefault

func NewDefault() detector.Detector

NewDefault returns a detector with the default config settings.

Types

type Config

type Config struct {
	Remote        string
	ClientTimeout time.Duration
}

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) Name

func (Detector) Name() string

Name of the detector.

func (Detector) RequiredExtractors

func (Detector) RequiredExtractors() []string

RequiredExtractors returns an empty list as there are no dependencies.

func (Detector) Requirements

func (Detector) Requirements() *plugin.Capabilities

Requirements of the detector.

func (Detector) Scan

Scan starts the scan.

func (Detector) Version

func (Detector) Version() int

Version of the detector.

Jump to

Keyboard shortcuts

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