Skip to content

Ensure username is set

Description

This policy checks whether a username is set for a Linode user. Setting a username is important for security and accountability, as it allows for the identification and tracking of user actions. Without a username, it may be difficult to determine who performed certain actions, which can hinder security audits and incident response. By ensuring that a username is set, this rule helps to promote security best practices and facilitate the management of user access.

Code Example

terraform
resource "linode_user" "example" {
  username = "exampleuser"
}

Remediation

Set a username for the Linode user.

Rule Details

FieldValue
IDIAC-1201
SeverityMEDIUM
IaC TypeTerraform
Frameworkslinode_user
Checkov IDCKV_LIN_4

References