Job
resource (scan.external-secrets.io/Job
), which defines the scope and frequency of a scan. When a scan job is executed, it searches for secrets within the all SecretStores
and Targets
available in its namespace.
The Job will create Finding
resources for any discovered items across multiple locations (SecretStore
and Target
).
The Scanning Workflow
Job
resource is created to define the scan parameters.runPolicy
.Finding
resource is created.Finding
resources to understand where your secrets are located.Job
ResourceJob
resource is the core component of the scanning feature. It allows you to configure how and where the scan should be performed.
Here is an example of a Job
resource:
runPolicy
: Defines when the job should run. It can be Poll
(at a regular interval), OnChange
(when a related resource changes), or Once
.interval
: If the runPolicy
is Poll
, this field specifies the time between scans.constraints
: This field allows you to limit the scan to specific SecretStores
or Targets
using label selectors.Finding
ResourceFinding
resource is created for each unique secret discovered during a scan. It contains information about the secret, including its hash and the locations where it was found.
Here is an example of a Finding
resource:
Finding
resources, you can gain valuable insights into your secret landscape and take action to remediate any issues, such as rotating credentials or removing duplicates.
You can also leverage the Finding
or the Location
information from a finding to automate synchronization by leveraging Workflows