mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-08-03 12:44:22 -07:00
[PR #9580/25a262bd backport][stable-10] Create onepassword_ssh_key
plugin (#9632)
Create `onepassword_ssh_key` plugin (#9580) * add 1password_ssh_key lookup * refactor * Delete onepassword_ssh_key.py * Revert "Delete onepassword_ssh_key.py" This reverts commite17ff7e232
. * Delete onepassword_ssh_key.py * add tests * add test license * cleanup * refactor * Apply suggestions from code review Co-authored-by: Felix Fontein <felix@fontein.de> * fix indentation * fix RETURN indentation * use get_option to get ssh_format * linting * update project year in copyright * add plugin to BOTMETA.yml * use OnePassCLIv2's get_raw and use OnePass's token --------- Co-authored-by: Felix Fontein <felix@fontein.de> (cherry picked from commit25a262bdcf
) Co-authored-by: Mohammed Babelly <mohammed@nevercode.io>
This commit is contained in:
parent
8e2fa624e0
commit
04b68c296b
6 changed files with 252 additions and 0 deletions
|
@ -0,0 +1,57 @@
|
|||
{
|
||||
"id": "wdtryfeh3jlx2dlanqgg4dqxmy",
|
||||
"title": "ssh key",
|
||||
"version": 1,
|
||||
"vault": {
|
||||
"id": "5auhrjy66hc7ndhe2wvym6gadv",
|
||||
"name": "Personal"
|
||||
},
|
||||
"category": "SSH_KEY",
|
||||
"last_edited_by": "LSGPJERUYBH7BFPHMZ2KKGL6AU",
|
||||
"created_at": "2025-01-10T16:57:16Z",
|
||||
"updated_at": "2025-01-10T16:57:16Z",
|
||||
"additional_information": "SHA256:frHmQAgblahD5HHgNj2O714",
|
||||
"fields": [
|
||||
{
|
||||
"id": "public_key",
|
||||
"type": "STRING",
|
||||
"label": "public key",
|
||||
"value": "ssh-ed255.....",
|
||||
"reference": "op://Personal/ssh key/public key"
|
||||
},
|
||||
{
|
||||
"id": "fingerprint",
|
||||
"type": "STRING",
|
||||
"label": "fingerprint",
|
||||
"value": "SHA256:frHmQAgy7zBKeFDxHMW0QltZ/5O4N8gD5HHgNj2O614",
|
||||
"reference": "op://Personal/ssh key/fingerprint"
|
||||
},
|
||||
{
|
||||
"id": "private_key",
|
||||
"type": "SSHKEY",
|
||||
"label": "private key",
|
||||
"value": "-----BEGIN PRIVATE KEY-----\n..........=\n-----END PRIVATE KEY-----\n",
|
||||
"reference": "op://Personal/ssh key/private key",
|
||||
"ssh_formats": {
|
||||
"openssh": {
|
||||
"reference": "op://Personal/ssh key/private key?ssh-format=openssh",
|
||||
"value": "-----BEGIN OPENSSH PRIVATE KEY-----\r\n.....\r\n-----END OPENSSH PRIVATE KEY-----\r\n"
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "key_type",
|
||||
"type": "STRING",
|
||||
"label": "key type",
|
||||
"value": "ed25519",
|
||||
"reference": "op://Personal/ssh key/key type"
|
||||
},
|
||||
{
|
||||
"id": "notesPlain",
|
||||
"type": "STRING",
|
||||
"purpose": "NOTES",
|
||||
"label": "notesPlain",
|
||||
"reference": "op://Personal/ssh key/notesPlain"
|
||||
}
|
||||
]
|
||||
}
|
|
@ -0,0 +1,3 @@
|
|||
GNU General Public License v3.0+ (see LICENSES/GPL-3.0-or-later.txt or https://www.gnu.org/licenses/gpl-3.0.txt)
|
||||
SPDX-License-Identifier: GPL-3.0-or-later
|
||||
SPDX-FileCopyrightText: 2025, Ansible Project
|
Loading…
Add table
Add a link
Reference in a new issue