identity

package
v0.54.4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 7, 2026 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

View Source
const ModuleName = "identity_access_and_authentication"

ModuleName identifies this component module.

Variables

This section is empty.

Functions

func CollectDuplicateUidGid

func CollectDuplicateUidGid(ctx context.Context) *payload.DuplicateUidGid

CollectDuplicateUidGid reports passwd/group IDs shared by more than one account (names capped).

func CollectHostSSH

func CollectHostSSH(ctx context.Context) *payload.HostSSH

CollectHostSSH reads effective sshd settings from `sshd -T`.

func CollectHostUsersSummary

func CollectHostUsersSummary(ctx context.Context) *payload.HostUsersSummary

CollectHostUsersSummary parses /etc/passwd for counts and a capped sample (no password material).

func CollectPasswordPolicyFingerprint

func CollectPasswordPolicyFingerprint(ctx context.Context) *payload.PasswordPolicyFingerprint

CollectPasswordPolicyFingerprint reads pwquality.conf and PAM password stack lines (no secrets).

func CollectShadowAccountSummary

func CollectShadowAccountSummary(ctx context.Context) *payload.ShadowAccountSummary

CollectShadowAccountSummary derives non-secret counts from /etc/shadow (no hash material).

func CollectSudoersAudit

func CollectSudoersAudit(ctx context.Context) *payload.SudoersAudit

CollectSudoersAudit performs a structural sudoers scan without transmitting full rule bodies.

func ShadowSummaryJSON added in v0.54.1

func ShadowSummaryJSON() ([]byte, error)

ShadowSummaryJSON renders the summary from the file itself. Only root can do this, and only the scan running as root ever calls it.

func SudoersAuditJSON added in v0.54.1

func SudoersAuditJSON() ([]byte, error)

SudoersAuditJSON renders the audit from the files themselves. Only root can do this, and only the scan running as root ever calls it.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL