Prowler Academy

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

  1. Read configuration values in a check through audit_config with a safe default.
  2. Add a new configuration key end to end: config.yaml, the Pydantic provider schema, test fixtures, schema tests and user docs.
  3. Explain what the config loader guarantees: unknown keys pass through, invalid values are dropped with a warning, and the shipped config must round-trip.
  4. Rename a check following the documented procedure, using CheckAliases for backwards compatibility.
  5. Describe the collect, batch and report structure of secret-scanning checks and the role of detect_secrets_scan_batch, SecretsScanError and annotate_verified_secrets.

Regístrate para leer el módulo completo

El temario y el resumen de cada módulo son públicos. Crea una cuenta gratuita para desbloquear las lecciones completas, los laboratorios, las comprobaciones de conocimientos y el examen final, y para seguir tu progreso.