Ignore Advanced Security Violations
Ignore Secrets violations in Advanced Security for a file, artifact, or watch.
Ignore rules allow you to whitelist and ignore security violation rules, to filter out unwanted violation noise. For example, you might be running Advanced Scans on a testing repository and don't want these violations to hinder your testing, or you might have instilled strict actions if a violation is found that is a blocker for continuing your development. You want to ignore the specific violation for the time being.
Ignore rules suppress specific violations so they aren't shown in future scans.
You can ignore by category, scanner, file path, or individual finding, and define the scope by artifact, build, Release Bundle, or watch.
There are many reasons why you might want to ignore a violation. For more information, see Ignore Rules.
You can create an ignore rule for Exposures violation using the following REST API:
Ignore Secrets Violations
Secrets ignore rules can match an exposure, a file path, or an artifact.
| Ignore Rule | Description |
|---|---|
| Based on the Exposure | |
| Exposure Scanner | Ignores all violations for the specific scanner. If you select this option, the ignore rule ignores all exposure violations for this scanner. |
| For any Exposure of the following categories | Ignores all violations of the specific exposures category. If all categories are selected, this rule creates no Exposures violations for the specified scope in the ignore rule. |
| Based on file path | |
| Specific File path | The rule applies to the specific path within the specified artifact scope. |
| Matching file path pattern | The rule applies to files whose paths match an Ant-style pattern. For example, **/*.jar/** or **/secret.txt. |
| For any file | The rule applies to any file path within the specified artifact scope. |
| Based on Artifact | |
| Artifact name selected current version | The rule applies to the specific artifact for that specific version of the Docker image. |
| Artifact name selected any version | The rule applies to the specific artifact for all versions of the Docker image. |
| For any Artifact | The rule applies to all artifacts that contain that violation in the Docker image. |
You can ignore a Secrets violation by creating a Secrets Ignore Rule, which defines the exact conditions under which a secret should be suppressed in future scans. Use this when a secret is a false positive, non-actionable, or intentionally present in a specific location or artifact.
To ignore a Secrets violation:
-
Navigate to Scans List.
-
Open the Secrets Violation you want to ignore.
-
Click Ignore Violation to open the Secrets Ignore Rule window.
-
Select what to ignore under Ignore violation of:
- Specific secret: Ignore this exact secret value. This includes secrets detected in binary files such as executables, JAR files, and Docker layers.
- Specific scanner: Ignore all violations detected by a specific secret-detection rule.
- All Secrets violations: Ignore all secret findings.
-
Define the Location scope:
- In this specific file: Ignore the secret only when found in the selected file.
- Matching this file path pattern: Ignore the secret when the file path matches an Ant-style pattern.
- All files: Apply the ignore rule across any file.
-
If you select Matching this file path pattern, enter a valid Ant-style pattern in the field provided.
- Supported syntax includes:
**for recursive directory matching*for wildcard matching within a file or directory name
- Example patterns:
**/*.jar/**: Matches any path containing a.jardirectory and everything inside it.**/secret.txt: Matches any file namedsecret.txtat any level in the file tree.
- Supported syntax includes:
-
Define the:
- Artifact:
- In this specific version
- All versions of
- All Artifacts: Ignore across all Artifacts.
- Build
- In this specific version
- All versions of
- All Builds
- Release Bundle V2:
- In this specific version
- All versions of
- All Release Bundle V2s
- Artifact:
-
Define the Watch scope under Issued using Watches:
- In selected Watches: Only suppress violations generated through specific Watches.
- All Watches: Apply the rule regardless of which Watch triggered the violation.
For more information, see Watches in JFrog Xray.
-
Add a Rule Description.
-
(Optional) Set an expiration date.
-
Click Create to save the ignore rule.
Related Topics
Updated 4 days ago
