Skip to content

Avoid writing SSH private key to disk during setup - #173

Open
diogocp wants to merge 1 commit into
mainfrom
diogocp/azure-ssh-key
Open

Avoid writing SSH private key to disk during setup#173
diogocp wants to merge 1 commit into
mainfrom
diogocp/azure-ssh-key

Conversation

@diogocp

@diogocp diogocp commented Apr 28, 2026

Copy link
Copy Markdown
Member

Use openssl to generate the key pair, discarding the private key to /dev/null, then convert the public key to OpenSSH format via ssh-keygen. This removes the temp directory lifecycle and eliminates the window where the private key exists on the filesystem.

Use openssl to generate the key pair, discarding the private key to
`/dev/null`, then convert the public key to OpenSSH format via
ssh-keygen. This removes the temp directory lifecycle and eliminates the
window where the private key exists on the filesystem.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@diogocp
diogocp requested a review from a team April 28, 2026 12:14
@diogocp
diogocp requested a review from a team as a code owner April 28, 2026 12:14
@diogocp
diogocp requested a review from benblaustein April 28, 2026 12:14

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 400548f114

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread azure/agentless/src/azure_agentless_setup/terraform.py
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.

1 participant