This project is not covered by Drupal’s security advisory policy.
Overview
This module scans Drupal configuration storage for fields with names that suggest they may contain sensitive data (API keys, passwords, tokens, credentials) and provides an admin UI to mask them using the Credential Mask module.
Features
Credential Mask keeps secrets out of configuration exports, but you have to know which fields to register with it. This module finds them for you.
- Scans all active configuration and flags any field whose name contains one of a configurable list of keywords (for example
secret,key,password,token). - Lists the flagged fields on a single admin page where you can mask them with just a click. Fields that are already masked appear pre-checked, and unchecking one removes its mask.
- The default keywords are deliberately broad, so some flagged fields won't be sensitive. You choose which ones to mask, and you can tune the keyword list to suit your site.
Once your sensitive fields are masked, you can export your site's configuration and commit it to your repository without exposing their values.
Note: masking affects future exports only. Secrets already committed to your repository remain in its history and should be rotated. Re-run the scan after installing new modules, since they may add new sensitive fields.
Post-Installation
- Grant the Administer Sensitive Info Scanner permission to trusted administrators only. It is a restricted permission, because it allows removing masks.
- Optionally, adjust the keyword list at Administration > Configuration > System > Sensitive Info Scanner > Settings (
/admin/config/system/sensitive-info-scanner/settings). - Go to Administration > Configuration > System > Sensitive Info Scanner (
/admin/config/system/sensitive-info-scanner), select the fields you want to mask, and click Mask Selected Fields. - Export your configuration as usual (for example,
drush config:export).
Additional Requirements
This project requires the Credential Mask module.
Similar projects
Credential Mask handles the actual masking, but you have to enter each field by hand in its settings form. This module adds automatic discovery and a checklist on top of it rather than replacing it.
| Attachment | Size |
|---|---|
| Scanner page | 76.82 KB |
| Settings page | 58.2 KB |
Project information
Minimally maintained
Maintainers monitor issues, but fast responses are not guaranteed.- Project categories: Developer tools, Import and export, Security
- Ecosystem: Credential mask
- Created by tristonsayaovang on , updated
This project is not covered by the security advisory policy.
Use at your own risk! It may have publicly disclosed vulnerabilities.