Terraform Academy feature publication
Secrets Scanner: Practicing credential hygiene in configuration review
Understand how pattern-based secret detection supports secure development habits, review triage and safe handling of synthetic findings.
Why this feature matters
Credentials should not be embedded in source code. A scanner can help learners recognize suspicious values, but detection is only one layer in a wider process of prevention, review and response.
How the feature is designed to work
- Use invented sample text or a training-only file. The interface provides paste, file and folder selection controls; never select a real project or credential store for this exercise.
- Inspect the displayed findings, their rule labels and severity. The implementation checks patterns in text and provides filtering and baseline controls.
- Study the JSON and SARIF export options conceptually. These formats support structured review records, but exports should be treated as potentially sensitive even when redaction is selected.
Practice scenario
Consider a fictitious configuration containing a placeholder where a secret would normally be referenced. Explain why an approved secret manager or workload identity is preferable to hardcoded credentials. If a real credential has been exposed, notify the responsible administrator and follow the organization's revocation and rotation process.
Technical limitations and safe use
A scanner can produce false positives and miss secrets. Redaction, baseline suppression and a clean report do not establish confidentiality. Do not paste real tokens, secrets, private source or personal information into this tool or optional AI review.
Access the feature
Open the Secrets Scanner or locate it in CodeStack. Use only deliberately synthetic training material.
Open Secrets ScannerCheck current plans and access.