Proprietary Component Configuration
Changes to proprietary component configuration will not be reflected during report re-evaluations. A full rescan is required.
Proprietary components are components that are unique your organization. Lifecycle will not normally recognize these components. If you're using the default policy set, Lifecycle will flag them as violating the Component-Unknown policy.
You can configure IQ Server to recognize proprietary components. This can help reduce noise in your reports, keep you from investigating safe components, and help you identify when changes to proprietary components have been made.
Method One: Through the Orgs and Policies screen
- In the browser UI, on the left, click Orgs and Policies on the left toolbar.
- Select the level of the heirarchy you want to configure. Configuring the Root Org or Org at this step will also force IQ Server to recognize proprietary components at every hierarchy level below it.
- Scroll down to the Proprietary Component Configuration section and click the chevron.
Here, you'll see a list of existing proprietary component matchers. Click the trashbin icon to remove a matcher.
To add a new proprietary matcher, use the drop down menu at the bottom of the list.
For Package, specify a package name, like com.sonatype. All components that contain a package with the same file structure will be marked as proprietary. Be as specific as possible.
For the example com.sonatype, IQ Server will match all of the following content locations:
But these locations will not be matched.
Regular Expression Matchers
For Regular Expressions, specify a regular expression that will be compared against the paths of all files scanned. If a file is found in the path, it is flagged as proprietary. For example,
test\.zip will recognize anything in the top level directory named test.zip as proprietary. On the other hand,
*/test\.zip will find test.zip nested anywhere in the scanned binaries.
Occurences inside an identified archive will make the binary proprietary as well. For example, if a proprietary .zip is found inside a .jar, the .jar is also considered proprietary.
For more information on regular expressions, see the Java Documentation.
Method Two: Clicking an Unknown Component in a Report
- In the browser UI, click Reports on the left toolbar.
- Click View Report for any application.
- Click any unknown component. If you're using our default policy set, look for a component flagged for the Component-Unknown violation.
- At the top of the Component Details Page, you'll see a warning. Click Add Proprietary Component Matchers.
- A new tile will appear. Check the box and click "Add". You can also add a regular expression. See the section above for more information about regular expression matchers.
Filtering Results by Proprietary Matchers
Inside an Application Composition Report, you can filter for proprietary components by clicking theFilter button on the right. The first option in the list will be Proprietary: open the chevron and check a box to only see proprietary or non-proprietary components in the report.
Manifest File Components
Since version 58, IQ Server includes various manifest file scanning and coordinate based matching support.
A component in a manifest file has a path "file/component_name" e.g. for a Nuget component named "some_component" in a file named "acme.project.csproj" its path would be "acme.project.csproj/some_component".
For package matchers, periods and forward slashes are taken as package separators, and so in this example "acme", "project", and "csproj" are taken as separate packages which could be matched.
For regular expressions, these can also be used to match the derived path.
The "component_name" is determined by the component's coordinates and these depend on the format. For almost all formats, this is either the "packageId" or "name" coordinate. The exceptions are Maven, which uses "groupId" and "artifactId", and Composer, which uses "namespace" and "name".
If a component in a manifest file is matched by either a package matcher or a regular expression, then the component will be excluded from identification automatically. Any proprietary component that does not match any of the configured patterns above will be included for matching. Prior to version 95 any such component will be marked as unknown in the resultant report. Since IQ version 95 all such components will be marked as Package Manifest identified.