General Lifecycle Best Practices

General Lifecycle Best Practices

Getting Started

Identify your Primary Desired Outcome (PDO)

Examples include:

Align expectations from executive management with all stakeholders

Document your open-source governance journey in a central location

Integrate Lifecycle into your CI/CD system

Make integration with your CI/CD system a goal in your journey with Lifecycle

Budget adequate time for integration efforts

Configure Lifecycle for long-term success

Set up LDAP/SAML for easy login

Align Lifecycle role-based access to your organization’s directory service

Turn on notifications, and send them someplace they'll be seen

Enforcement and remediation

Block builds that contain critical vulnerabilities at the release stage

Integrate remediation efforts into your issue-tracking tools

Avoid aggregating Lifecycle scan results with other scans

Monitoring your IQ Server

As a critical part of your build pipeline, you will want to monitor the performance and operation of the IQ Server. The following are models common with Lifecycle developments.

IQ Server Health and Uptime

IQ Server Disk Usages and Data Retention

Logging and Activity

IQ Server data retention and maintenance

The IQ Server UI will display the latest scan for a given stage, however, every scan is retained as a separate report.

Configure data purging for older scan reports

Use the purgeScanFiles property to keep scan files for scan promotion

Back up the IQ Server regularly

There are 3 main components to consider when backing up

#### Database: Internal
(default)
- in the [data] directory of the [sonatype-work] folder

- shut down the server to avoid catching the internal database in an inconsistent state
#### Database: External
(production recommended)
- external PostgreSQL managed by your database administrators

- PostgreSQL can be highly available and backed up while running
#### Reports and Logs - in the report and log directories under the sonatype-work folder.

- files under the report.cache may contain proprietary data including license overrides and claimed components.
#### Server binaries and configuration - nexus-iq-server-[version].jar



- binary may be re-downloaded or kept with backup

- config.yml



- keep when upgrading for configuration.

- document changes in version control or in your server maintenance wiki

- note: this configuration is migrating to the IQ Server database

Delete the contents of the trash directory to reclaim space

Plan to upgrade your IQ Server at least once a quarter (90 days)

Upgrade your IQ Server to the latest version in your test environment and N-1 version in your production environment

Upgrade your integrations with Lifecycle