Module D05: Configurable, Renamed and Secret-Scanning Checks
Track: D2 · Checks · Effort: 1.5 h · Prowler: 5.48
Scenario
Reviewers liked s3_bucket_owner_tag_present, but two Cloudsmiths business units tag ownership with Team and CostCenter instead of Owner, so the tag key cannot stay hard-coded. A maintainer reviewing a similar upstream change also walked you through how Prowler renames a check without breaking users. Finally, the platform team wants to know how Prowler's secret-scanning checks would treat the CloudFormation stacks that still export database tokens as outputs. In this module you make a check value configurable, practice the documented rename procedure, and take a secret-scanning check apart.
Learning objectives
- Read configuration values in a check through
audit_configwith a safe default. - Add a new configuration key end to end:
config.yaml, the Pydantic provider schema, test fixtures, schema tests and user docs. - Explain what the config loader guarantees: unknown keys pass through, invalid values are dropped with a warning, and the shipped config must round-trip.
- Rename a check following the documented procedure, using
CheckAliasesfor backwards compatibility. - Describe the collect, batch and report structure of secret-scanning checks and the role of
detect_secrets_scan_batch,SecretsScanErrorandannotate_verified_secrets.
Register to read the full module
The syllabus and each module overview are public. Create a free account to unlock the full lessons, labs, knowledge checks and the final exam, and to track your progress.