Skip to content

Conversation

Alexey-Ayupov
Copy link
Contributor

Description

This pull request introduces a new configuration option to the Ubuntu image build process, allowing control over whether SSH authorized keys are cleared during image creation.

Related issue:

Check list

  • Related issue / work item is attached
  • Tests are written (if applicable)
  • Documentation is updated (if applicable)
  • Changes are tested and related VM images are successfully generated

@Copilot Copilot AI review requested due to automatic review settings October 6, 2025 13:38
Copy link
Contributor

@Copilot 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 adds a new configuration option ssh_clear_authorized_keys to the Ubuntu Packer template, allowing control over whether SSH authorized keys are cleared during image creation. The change provides flexibility in managing SSH access during the image build process.

  • Added a new boolean variable ssh_clear_authorized_keys with a default value of true
  • Configured the Azure ARM source to use this variable

Reviewed Changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.

File Description
images/ubuntu/templates/variable.ubuntu.pkr.hcl Defines the new ssh_clear_authorized_keys boolean variable with default true
images/ubuntu/templates/source.ubuntu.pkr.hcl Applies the variable to the Azure ARM source configuration

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

@Alexey-Ayupov Alexey-Ayupov merged commit 610c1c1 into actions:main Oct 7, 2025
9 checks passed
@Alexey-Ayupov Alexey-Ayupov deleted the ubuntu-update-pkr-template branch October 7, 2025 09:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants