Skip to content

fix: enabling waagent root password removal logic again for Ubuntu#7780

Merged
djsly merged 1 commit intomainfrom
djsly/36635447
Feb 4, 2026
Merged

fix: enabling waagent root password removal logic again for Ubuntu#7780
djsly merged 1 commit intomainfrom
djsly/36635447

Conversation

@djsly
Copy link
Collaborator

@djsly djsly commented Feb 3, 2026

What this PR does / why we need it:
Reverting logic where the root password on Ubuntu was kept (disabling waagent's removal logic)

This PR changes the CIS hardening script behavior around Azure Linux Agent (waagent) root password handling on Ubuntu images.

Changes:

  • Adds a clarifying comment describing what configureAzureAgent does (setting waagent to not delete the root password on first boot).
  • Disables the call to configureAzureAgent inside applyCIS, effectively reverting to waagent’s default root password deletion behavior (unless configured elsewhere).

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR changes the CIS hardening script behavior around Azure Linux Agent (waagent) root password handling on Ubuntu images.

Changes:

  • Adds a clarifying comment describing what configureAzureAgent does (setting waagent to not delete the root password on first boot).
  • Disables the call to configureAzureAgent inside applyCIS, effectively reverting to waagent’s default root password deletion behavior (unless configured elsewhere).

Comment on lines +327 to +328
# configureAzureAgent -- Disabling this for now, until we sync with waagent team on desired behavior.

Copy link

Copilot AI Feb 3, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The PR description says this change is about keeping the Ubuntu root password by disabling waagent’s removal logic, but the code change here does the opposite: commenting out configureAzureAgent stops setting Provisioning.DeleteRootPassword=n, which means waagent will be free to delete the root password on first boot. Please clarify/update either the PR description or the code so they match the intended behavior.

Copilot uses AI. Check for mistakes.
@djsly djsly changed the title disabling waagent changed for rootpassword on ubuntu fix: disabling waagent changed for rootpassword on ubuntu Feb 4, 2026
@djsly djsly changed the title fix: disabling waagent changed for rootpassword on ubuntu fix: enabling waagent root password removal logic again for Ubuntu Feb 4, 2026
@djsly djsly merged commit 9de06d3 into main Feb 4, 2026
30 of 37 checks passed
@djsly djsly deleted the djsly/36635447 branch February 4, 2026 12:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants

Comments