Reference documentation and code samples for the Data Loss Prevention V2 Client class SecretsDiscoveryTarget.
Discovery target for credentials and secrets in cloud resource metadata.
This target does not include any filtering or frequency controls. Cloud
DLP will scan cloud resource metadata for secrets daily.
No inspect template should be included in the discovery config for a
security benchmarks scan. Instead, the built-in list of secrets and
credentials infoTypes will be used (see
https://cloud.google.com/sensitive-data-protection/docs/infotypes-reference#credentials_and_secrets).
Credentials and secrets discovered will be reported as vulnerabilities to
Security Command Center.
Generated from protobuf message google.privacy.dlp.v2.SecretsDiscoveryTarget
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-07 UTC."],[],[]]