Module D04: Check Metadata Done Right
Track: D2 · Checks · Effort: 1.5 h · Prowler: 5.48
Scenario
Your s3_bucket_owner_tag_present branch from Module D03 runs, but its metadata is still a copy of s3_bucket_object_versioning. On top of that, a Cloudsmiths teammate's draft metadata for the same check fails to load and takes prowler aws --list-checks down with it. Before the check moves on to tests (Module D06) and packaging (Module D12), you need metadata that passes every validator, reads well on Prowler Hub and produces useful CSV, OCSF and ASFF findings for the security team.
Learning objectives
- Describe every field of a
.metadata.jsonfile and which ones are deprecated. - Distinguish rules that
CheckMetadataenforces at load time from guidelines that reviewers enforce. - Write a
CheckTitle,Description,Risk,Recommendationand remediation code that follow the Developer Guide. - Pick valid
Severity,ResourceType,ResourceGroup,Categoriesand (for AWS)CheckTypevalues. - Trace where each field surfaces: CLI listing, outputs, Prowler Hub, Prowler Cloud and Prowler Local Server, and compliance.
- Debug a failing metadata file from the Pydantic validation error.
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.