assets_guardian.plugins.gitlab.compareο
Functions
|
Indexes users by their external identifier. |
Classes
|
Detects deleted users in GitLab. |
|
Detects new GitLab users created or added. |
|
Detects changes in GitLab users' administrator privileges. |
|
Detects user status changes (active/blocked) on GitLab. |
- class assets_guardian.plugins.gitlab.compare.GitlabDeletedUserComparisonRule(**kwargs: Any)[source]ο
Bases:
IComparisonRuleDetects deleted users in GitLab.
- evaluate(old_entries: Iterable[Identity], new_entries: Iterable[Identity]) Iterable[Finding][source]ο
Compares lists to identify deleted users.
- Parameters:
old_entries β The old identities (baseline).
new_entries β The new collected identities.
- Yields:
Finding β Detected discrepancy for each deleted user.
- property description: strο
Description of the rule.
- property name: strο
Name of the rule.
- property severity: SeverityTypeο
Severity level of the rule.
- property target_entity: strο
Entity targeted by the rule.
- class assets_guardian.plugins.gitlab.compare.GitlabNewUserComparisonRule(**kwargs: Any)[source]ο
Bases:
IComparisonRuleDetects new GitLab users created or added.
- evaluate(old_entries: Iterable[Identity], new_entries: Iterable[Identity]) Iterable[Finding][source]ο
Compares lists to identify new users.
- Parameters:
old_entries β The old identities (baseline).
new_entries β The new collected identities.
- Yields:
Finding β Detected discrepancy for each new user.
- property description: strο
Description of the rule.
- property name: strο
Name of the rule.
- property severity: SeverityTypeο
Severity level of the rule.
- property target_entity: strο
Entity targeted by the rule.
- class assets_guardian.plugins.gitlab.compare.GitlabUserPrivilegeComparisonRule(**kwargs: Any)[source]ο
Bases:
IComparisonRuleDetects changes in GitLab usersβ administrator privileges.
- evaluate(old_entries: Iterable[Identity], new_entries: Iterable[Identity]) Iterable[Finding][source]ο
Compares lists to identify privilege changes.
- Parameters:
old_entries β The old identities (baseline).
new_entries β The new collected identities.
- Yields:
Finding β Detected discrepancy for each user whose admin role changed.
- property description: strο
Description of the rule.
- property name: strο
Name of the rule.
- property severity: SeverityTypeο
Severity level of the rule.
- property target_entity: strο
Entity targeted by the rule.
- class assets_guardian.plugins.gitlab.compare.GitlabUserStatusComparisonRule(**kwargs: Any)[source]ο
Bases:
IComparisonRuleDetects user status changes (active/blocked) on GitLab.
- evaluate(old_entries: Iterable[Identity], new_entries: Iterable[Identity]) Iterable[Finding][source]ο
Compares lists to identify status changes.
- Parameters:
old_entries β The old identities (baseline).
new_entries β The new collected identities.
- Yields:
Finding β Detected discrepancy for each user whose status changed.
- property description: strο
Description of the rule.
- property name: strο
Name of the rule.
- property severity: SeverityTypeο
Severity level of the rule.
- property target_entity: strο
Entity targeted by the rule.
- assets_guardian.plugins.gitlab.compare.index_users(users: Iterable[Identity]) dict[str, Identity][source]ο
Indexes users by their external identifier.
- Parameters:
users β The user identities to index.
- Returns:
Dictionary mapping external_id to the Identity object.
- Return type:
dict[str, Identity]