Add support for SSH private key passphrases (#2331)

This adds support for encrypted SSH keys via passphrase.

Co-authored-by: Louis Ruch <louisruch@gmail.com>
Co-authored-by: Michael Gaffney <mgaffney@users.noreply.github.com>
This commit is contained in:
authored and GitHub committed 2022-08-08 15:15:03 -04:00
1 parent 07bca9dd66
commit 02dd28f587
45 files changed
+1921 -382

No files matched your search

@@ -135,4 +135,23 @@ message SshPrivateKeyAttributes {
that: "PrivateKeyHmac"
}
]; // @gotags: `class:"public"`
// Input only. The passphrase for the SSH private key associated with the credential.
google.protobuf.StringValue private_key_passphrase = 40 [
json_name = "private_key_passphrase",
(custom_options.v1.generate_sdk_option) = true,
(custom_options.v1.mask_mapping) = {
this: "attributes.private_key_passphrase"
that: "PrivateKeyPassphrase"
}
]; // @gotags: `class:"secret"`
// Output only. The hmac value of the SSH private key passphrase.
string private_key_passphrase_hmac = 50 [
json_name = "private_key_passphrase_hmac",
(custom_options.v1.mask_mapping) = {
this: "attributes.private_key_passphrase_hmac"
that: "PrivateKeyPassphraseHmac"
}
]; // @gotags: `class:"public"`
}
@@ -330,4 +330,7 @@ message SshPrivateKeyCredential {
// Private key of the credential
string private_key = 2; // @gotags: `class:"secret"`
// The optional passphrase of the private_key
string private_key_passphrase = 3; // @gotags: `class:"secret"`
}