Documentation
¶
Overview ¶
Package iac reads the infrastructure templates a repository ships for deploying its MCP server (Bicep, ARM JSON, Terraform) and reports database and administrator secrets that the template fixes: a password written as a literal, a parameter or variable whose default is one, or a password computed with a deterministic hash (uniqueString, guid) from deployment values. Each finding is weighed by what the same templates say about network access. Nothing is deployed and no network request is made.
Index ¶
Constants ¶
const ( RuleHardcodedSecret = "iac.hardcoded_secret" RulePredictableSecret = "iac.predictable_secret" )
Rule IDs
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Analyzer ¶
type Analyzer struct{}
Analyzer implements analyzer.Analyzer for source and package targets
func (*Analyzer) Analyze ¶
func (*Analyzer) Analyze(ctx context.Context, target model.Target, ac *analyzer.AnalysisContext) model.AnalyzerResult
func (*Analyzer) Describe ¶
func (*Analyzer) Describe() analyzer.Description