Documentation
¶
Overview ¶
Package config reads the files under .firedrill/.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct {
GitHub struct {
Org string `yaml:"org"`
Repos []string `yaml:"repos"`
} `yaml:"github"`
Google struct {
Domain string `yaml:"domain"`
AdminEmail string `yaml:"admin_email"`
} `yaml:"google"`
AWS struct {
Accounts []struct {
Profile string `yaml:"profile"`
} `yaml:"accounts"`
BreakGlass []string `yaml:"break_glass"`
} `yaml:"aws"`
GCP struct {
Projects []string `yaml:"projects"`
MemberDomains []string `yaml:"member_domains"`
} `yaml:"gcp"`
HR struct {
LeaversCSV string `yaml:"leavers_csv"`
} `yaml:"hr"`
Hub struct {
Repo string `yaml:"repo"` // owner/name of the drill hub
Ref string `yaml:"ref"` // branch, tag or commit
} `yaml:"hub"`
Semgrep struct {
Results string `yaml:"results"`
} `yaml:"semgrep"`
Domains []string `yaml:"domains"`
DefaultOwner string `yaml:"default_owner"`
Retired []Retired `yaml:"retired"`
Secrets struct {
ExamplePaths []string `yaml:"example_paths"`
ProdWords []string `yaml:"prod_words"`
StagingWords []string `yaml:"staging_words"`
} `yaml:"secrets"`
Agents struct {
DestructiveCommands []string `yaml:"destructive_commands"`
} `yaml:"agents"`
Web struct {
ExcludeHosts []string `yaml:"exclude_hosts"`
} `yaml:"web"`
}
Config is .firedrill/config.yaml.
func (Config) RetiredTarget ¶
RetiredTarget returns the retirement entry of a target.
type Project ¶
type Project struct {
Dir string
Config Config
Waivers []Waiver
Hosts []Host
People map[string]string
}
Project is everything under one .firedrill directory.
type Retired ¶
type Retired struct {
Target string `yaml:"target"`
Reason string `yaml:"reason"`
ApprovedBy string `yaml:"approved_by"`
}
Retired names a target that no longer exists.
type Waiver ¶
type Waiver struct {
Drill string `yaml:"drill"`
Target string `yaml:"target"`
Finding *struct {
File string `yaml:"file"`
Hash string `yaml:"hash"`
} `yaml:"finding"`
Reason string `yaml:"reason"`
ApprovedBy string `yaml:"approved_by"`
Expires string `yaml:"expires"`
}
Waiver is one accepted risk.