Waivers with Firewall
Waiving Violations & Repository Firewall
Sonatype Repository Firewall blocks components with known and suspected risks from automatically entering through your proxy repositories. Open-source components already released into the proxies are audited without blocking them from being used to ensure production builds continue to run. Control over how components are managed inside of applications is a feature of Sonatype Lifecycle.
Waivers for policy violations can be applied either narrowly or broadly. The scope of a policy waiver refers to the components, organizations, or repositories that it affects. A waiver has the potential to be very specific or very broad. For instance: You can create a very specific waiver for a single component in a single repository. Alternatively, If a violation’s scope applies to your entire organization, you can create a general waiver that applies to all repositories. The next sections cover the waiver scopes available in Repository Firewall
The Root Organization Scope means that a policy applies to all applications and organizations – in short everything that is monitored by Sonatype Lifecycle. Blocking a component in the Proxy Stage at the Root level identifies a component that is too risky to use by any application.
Applying a waiver at the Root level waives the violation for all repositories, all organizations, and all applications. This is a good option for components with policy violations that do not impact any of your applications.
Waivers at the root scope will apply across all Stages in Sonatype Lifecycle.
The Repository Waiver Scope will allow a component into the repository that tried to proxy it. This is useful for violations that do not apply to all applications requesting components from that specific repository. One example might be a proxy repository only used by internal projects that might allow components with more restrictive licenses.
The Repository Scope is also useful for customers using Sonatype Lifecycle. Waivers applied to the repository level only apply to the Proxy Stage. This allows Sonatype Lifecycle to enforce policy at other stages of your development process. This is useful for components you want to allow into your development environment but prevent from entering your production applications.
Waiving A Violation
To waive a violation on a quarantined component:
- Log into Repository Firewall
- Select the Firewall Tab*
- Select a component with failing policy violations
- Select the Policy Tab in the Component Details Page
- Click the Waive button on a failing violation
- Select the waiver scope
- Select if the violation should apply to a specific repository or the Root Organization
- Select if the waiver should apply to the specific component or all instances of that policy violation
- Click Waive
*Violations can also be accessed from the Repository Results Screen
- Waivers technical documentation