Skip to main content

Verify Inactive Users

Type: Rule
ID: jenkins-inactive-users
Source: v2/rules/jenkins/instance/inactive-users.yaml
Rego Source: inactive-users.rego
Labels: Jenkins, Instance

Verify there are no inactive users.

note

This rule requires Jenkins Instance Discovery Evidence. See here for more details.

tip

Signed Evidence for this rule IS NOT required by default but is recommended.

warning

Rule requires evaluation with a target. Without one, it will be disabled unless the --all-evidence flag is provided.

Usage example

uses: jenkins/instance/inactive-users@v2
with:
inactive_for_days: 90

Mitigation

Ensure that no Jenkins instance users are inactive to prevent service disruption.

Description

This rule ensures that no Jenkins instance users are inactive. It performs the following steps:

  1. Checks the settings of the Jenkins instance.
  2. Verifies that no users are inactive.

Evidence Requirements:

  • Evidence must be provided by the Scribe Platform's CLI tool through scanning Jenkins instance resources.

Evidence Requirements

FieldValue
signedFalse
content_body_typegeneric
predicate_typehttp://scribesecurity.com/evidence/discovery/v0.1
labels- asset_type=instance
- platform=jenkins

Input Definitions

ParameterTypeRequiredDescription
inactive_for_daysnumberFalseNumber of days before a user is considered inactive.