Skip to content

feat(compute): Add server show-plaintext#1817

Open
dmbuil wants to merge 1 commit into
gtema:mainfrom
dmbuil:feature-server-password-show-plaintext
Open

feat(compute): Add server show-plaintext#1817
dmbuil wants to merge 1 commit into
gtema:mainfrom
dmbuil:feature-server-password-show-plaintext

Conversation

@dmbuil

@dmbuil dmbuil commented Jun 30, 2026

Copy link
Copy Markdown

Adds a new osc compute server password show-plaintext subcommand that retrieves the Nova-encrypted admin password and decrypts it in-process using a caller-supplied SSH private key.

Supports OpenSSH, PEM RSA (PKCS#1), and PKCS#8 key formats; passphrase- protected OpenSSH keys prompt interactively via dialoguer. Uses pure-Rust rsa ^0.9 + ssh-key ^0.6 crates to stay Alpine-compatible (no openssl). The existing show subcommand (generated code) is left completely untouched.

@dmbuil dmbuil changed the title feat(compute): add server password show-plaintext command feat(compute): Add server show-plaintext Jul 1, 2026
@dmbuil

dmbuil commented Jul 1, 2026

Copy link
Copy Markdown
Author

I've renamed the PR to fit the 59-char length, as well as capitalize Add.

@gtema

gtema commented Jul 1, 2026

Copy link
Copy Markdown
Owner

I've renamed the PR to fit the 59-char length, as well as capitalize Add.

this need to be done with the commit (amend and force-push) and not the PR

@dmbuil dmbuil force-pushed the feature-server-password-show-plaintext branch from a39179b to 6dac6db Compare July 1, 2026 17:54
Adds a new `osc compute server password show-plaintext`
subcommand that retrieves the Nova-encrypted admin password
and decrypts it in-process using a caller-supplied SSH
private key.

Supports OpenSSH, PEM RSA (PKCS#1), and PKCS#8 key formats.
Passphrase-protected OpenSSH keys prompt interactively via
dialoguer. Uses pure-Rust `rsa ^0.9` + `ssh-key ^0.6` crates
to stay Alpine-compatible (no openssl). The existing `show`
subcommand (generated code) is left completely untouched.

Signed-off-by: dmbuil <dariomartinbuil@outlook.com>
@dmbuil dmbuil force-pushed the feature-server-password-show-plaintext branch from 6dac6db to 4a089fe Compare July 1, 2026 18:04
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.

2 participants