Policies & Gates
Define and enforce security requirements across your software supply chain
Policies & Gates
Policies and Gates allow you to define security requirements and automatically enforce them across your software supply chain.
Understanding Policies vs Gates
Policies
Rules that evaluate your SBOMs and generate findings:
- Define acceptable risk thresholds
- Specify required security controls
- Can be advisory or blocking
Gates
Checkpoints that enforce policies:
- Block deployments when policies fail
- Integrate with CI/CD pipelines
- Require approvals for exceptions
Creating Policies
Policy Builder
- Navigate to Settings → Policies
- Click Create Policy
- Define conditions using the visual builder or YAML
- Set severity and actions
- Save and enable
Policy Conditions
| Condition | Example |
|---|---|
| Vulnerability Severity | No critical CVEs |
| CVSS Score | No vulnerabilities above 7.0 |
| EPSS Score | No actively exploited CVEs |
| License | No GPL licenses |
| Component Age | No components older than 2 years |
| Maintenance | No abandoned packages |
| SLSA Level | Require SLSA Level 2 attestations |
Policy Templates
Pre-built templates for common requirements:
- No Critical Vulnerabilities - Block critical CVEs
- License Compliance - Enforce approved licenses
- FedRAMP Ready - Federal compliance requirements
- EO 14028 Compliance - Executive Order requirements
- SLSA Level 2 - Supply chain attestations
- No Abandoned Packages - Block unmaintained dependencies
Gate Configuration
CI/CD Integration
Gates are evaluated by the platform on the scans it runs for your connected
repositories. With policy outcomes on for your workspace,
safeguard ci scan --wait --fail-on-gate <gate> fails a CI job when the gate
fails. See Policy outcomes and actions and
CI/CD Integration.
Policy Actions
Each policy's Action decides what a failed policy does to the gate:
| Action | Description |
|---|---|
| Block | The gate fails |
| Warn | The gate passes, with a warning naming the policy |
| Notify | The gate passes, and a notification is sent |
See Policy outcomes and actions for how Passed, Failed, Warning, Not evaluated and Error are decided.
Policy Exceptions
Requesting Exceptions
When a legitimate exception is needed:
- Click Request Exception
- Select the policy and finding
- Provide business justification
- Set expiration date
- Submit for approval
Exception Workflow
- Request created by developer
- Notification sent to approvers
- Approver reviews and decides
- Exception granted or denied
- Audit trail recorded
Compliance Reporting
Track policy compliance with reports:
- Compliance status by policy
- Exception history
- Violation trends
- Audit documentation