SSH_KEY is an unknown item type ?

mickael
mickael
Community Member

Hi,

Still working on migrating my tools to op CLI 2.0.

I have the following error trying to create a new SSH Key:

'[ERROR] 2022/03/31 12:11:24 "SSH_KEY" is an unknown item type: "SSH_KEY" isn\'t a recognized item type.'

However running op item template get "SSH Key" gives the following template:

{
  "title": "",
  "vault": {
    "id": ""
  },
  "category": "SSH_KEY",
  "fields": [
    {
      "id": "notesPlain",
      "type": "STRING",
      "purpose": "NOTES",
      "label": "notesPlain",
      "value": ""
    },
    {
      "id": "private_key",
      "type": "UNKNOWN",
      "label": "private key",
      "value": ""
    }
  ]
}

My JSON uses a lot of custom fields, but I tried with a minimal example based on the given template and the error still happens.

I think the problem is related to the UNKNOWN field type given by the template ?

debug: {
debug:     "category": "SSH_KEY",
debug:     "fields": [
debug:         {
debug:             "id": "notesPlain",
debug:             "type": "STRING",
debug:             "purpose": "NOTES",
debug:             "label": "notesPlain"
debug:         },
debug:         {
debug:             "id": "private_key",
debug:             "type": "UNKNOWN",
debug:             "label": "private key",
debug:             "value": "-----BEGIN ENCRYPTED PRIVATE KEY-----\nMIIJrTBXBgkqhkiG9w0BBQ0wSjApBgkqhkiG9w0BBQwwHAQIjBTRkq5fsBACAggA\nMAwGCCqGSIb3DQIJBQAwHQYJYIZIAWUDBAEqBBDzdpPXJVo64SSOi3O3MHjaBIIJ\nUNVczomaJ9O9hr2pw+YF9P+fvNPhf+ryjxZA9WRa4kBpJp7SrWBOGwDk+lWvgG8k\njKpcCXP9avbT+daBNs0F1ir5lWi+UmFpY/fBsa1aNZ5rl+PSAcvmKU7ppsQYxuvu\nFXMKlRm8MBIPgZYGfHayB/tOSATCIJti2rPPkvR3xwaLuL/r9gpWdp1ja5XAa66/\nlsAYVG2sWthlkV0CgebnSjkpLhz4U15qrHiXVgt5ooLEkoupNRpbJJrJ+opITpMs\nuYpfVqeyuerSSdJvVgLebxKhZwQHei/RNP8fU0n8cxN1T3x2ZkGQrQAybkl+IKFz\nOW/qm+Yxv5xI0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SsP\nldnSQkN4nVfA9ebj8X1lsWE8KVo2EYyRYnimeBSNOFJyOQTMJ7L0Egv0G1awk1aW\n2UCGBYzahUD2AGAWxbIMJNhHXN/612cMWxMmc2eoqlNy3iE9wf1gq0o8CTy5S/Z+\nBzWaDAXqjzgLZj+eqQktrqBNTVq0rsrVsOwksNG6BL25OThI4Rz5rKPD8HKAabFJ\nkzCq1tRK6GuuaXe6DrPIPdgB3y8H/R5PxDTlMxCaEy3W9Qb3D92akkg4DKFa5h8U\n4OOAAFlf1ICD2EDROEadMlFptC3Dm+1AKn/LLWU4DVK701uJQH/F6K/mGNjb0e3c\nVOtGU4roZoL004U3ekdRD8BfN/aR/ZSsT7BNEKSV2GAvtYvATquDFtx8cGM661so\nVmigzqMggMxT8lnJpKNgkn5w+z2bBTctXIHj7UJ4x37ruil5bVmYsOymgi13T3gO\nhBCcikQtRKXT8TqbX7GfxpBoVguJ9ajcXedYYNP+bChgwcINxa+Z2DKbM8ObK2KS\nFeLSQ4wU9L9qn8kuzWWcqBbNXcS4KlDY37m/+ymoqv9F332ohvhMJGSP/L7d3pVm\nfxRBxHtGkMNZv6uhKVjWr/WVuGVlPchnXbUgl109zM6Ts3Ax6Q37NmuSXUOf/PzG\ntYpaGPypY5iT99jYuSHWffvUxptu3w7mVB81L5xD4QEcTp6eptnH+ov45dctogJA\nb/N50FZN1A9SunwcLoa2dyjxnnKMM5hd5EqLBm3/4dIk\n-----END ENCRYPTED PRIVATE KEY-----\n"
debug:         }
debug:     ]
debug: }

1Password Version: Not Provided
Extension Version: Not Provided
OS Version: Not Provided

Comments

  • mickael
    mickael
    Community Member
    edited March 2022

    Mmm, I guess this is still not available because official SSH support is from 1Password 8 which is still in beta stage ?

  • Horia.Culea_1P
    edited April 2022

    Hey @mickael,

    Thanks for reaching out to us!
    I think the problem here is the category. While the server returns SSH_KEY as a valid template, the 2.0.0 version of the CLI does not know how to process it.
    Unfortunately, SSH_KEY item type is currently not (yet) fully supported.
    We will integrate further with it in the future releases. Creation of SSH keys is definitely on the roadmap, so stay tuned!

    Best,
    Horia

This discussion has been closed.