Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to import external keys to Vault #85

Open
lucaspwk opened this issue May 20, 2021 · 7 comments
Open

How to import external keys to Vault #85

lucaspwk opened this issue May 20, 2021 · 7 comments

Comments

@lucaspwk
Copy link

lucaspwk commented May 20, 2021

Hello,

First I would like to thank for you this plugin. Amazing work

My issue is just a question/doubt that I'm facing to use it. I don't know how to import a external pgp key on vault. What should I do? I already exported on GPG and I have the ascii armored key in a file. I tried on that ways:

vault write gpg/keys/test --generate=false --key=./file_private.key

Can you help me on that?

Thanks,
Lucas.

@LeSuisse
Copy link
Owner

Hello,

I do not have the Vault CLI at hand at the moment but you need to pass the key as a string, the CLI cannot work from a file path.

Something like vault write gpg/keys/test --generate=false --key="$(cat ./file_private.key)" should work.

@jdelic
Copy link

jdelic commented May 20, 2021

@lucaspwk
I don't think the -- belong in there at all. Off the top of my head your command-line should be:

vault write gpg/keys/test generate=false key=- <file_private.key

key=- makes vault read the value from stdin.

@lucaspwk
Copy link
Author

lucaspwk commented May 21, 2021

Hello @LeSuisse and @jdelic,

For both cases does not work. Seems the variable is not receiving the correct info.

Error writing data to gpg/keys/test: Error making API request.

URL: PUT http://127.0.0.1:8200/v1/gpg/keys/test
Code: 400. Errors:

* the key could not be serialized, is a private key present?

lucaspwk@xxxx:~$ key="$(cat /mnt/c/Users/Lucas/Desktop/repos/test_private.key)"
lucaspwk@xxxx:~$ echo $key
 -----END PGP PRIVATE KEY BLOCK-----ORiA6SN5+QISUSbM=h1nAdnyV9zas

Using print I can see the whole block but with some errors on stdout.. Any other idea how to convert the text/key to string? Or there is another way to import keys? How do you do that?

@lucaspwk
Copy link
Author

lucaspwk commented May 21, 2021

I did a python script to convert the text file and I did the call to vault using curl but I'm receiving error to private key:

lucaspwk@xxxxx:~$ curl --header "X-Vault-Token: root" --request POST --data @payload.json http://127.0.0.1:8200/v1/gpg/keys/test
{"errors":["the key could not be serialized, is a private key present?"]}`
lucaspwk@xxxxx:~$ cat payload.json
{
    "generate": false,
    "key": "-----BEGIN PGP PRIVATE KEY BLOCK-----\n\nlQWGBGCnhH8BDADKxQm2rEX61ghDRSOlqhC1qf++WFsNLgVr5h+peJkSZN6ze3Jl\nZrOsiEZuf9PkHCdPSy2iuPBV+wcG066gUlg/5eV2FghKtVEE+h9cFw7KDc8F6Hnk\nCdxX4AipmYB8IHgeoY5tNE5Hp/IIvP588eMxkXuYfPZbHW6DU52s6wZfjuv3ycJv\nrvCh6pLrGt1yyAMkRhh5ZR4gV71eiI4OxWyIEMi97c+AfHnauashmcBVivzbSO3a\nqlFZJ4yL/6DHLF2SmiAAv0TeccdlRe8IuCJ3G5MLkkcOIrB4JNkPRxVUrz9+mSQp\nJqdx8ogDl0Qs2WxhXYunChmrFdD/mcwTur1trmEz1e3SIBUxJ982HSxYFw1lbt3G\nfRiCL0jGBCzjCkFIH7ooPwVa4RC77YQiHnPJGQwy2PoaRxA3un8GoV0c7XV5gv0H\nzYcGbqAYbMEnvc234wWUmVc+MExhTy943iXgRxLYzxPon4FHZ5JijlEi0g+PWo5L\nsbJdlslsXh1T4WMAEQEAAf4HAwKltfJ7MlhwKM7oRYjB03L6hvxYtdDy5ilUvSso\nQWzlvdE4QL03U8shsS6el4SAaBBLiBhzplY3TNuFCgZRfXS7LM/V6cX0obVD7VrK\nnvXreHJjrSmkko8t/8L3TTyox4yqFeotEdWyqtN3E7Xsb9L/vD6rqCCKsNbI2DUL\n5pK/tYqNh5DGoYtKfCXCtV5h3KhnLSlEBesSHSB9mac54hhmdtSzYXpS1AwgMsqi\nHy0BRG/1pHBxoawRTsXKJQaX5TzNqPvF98T+q+WstlrJu1cFVEx67IvZrmjM8qXo\n+KvNavJqrMUdmlP0Z0VllnKAwuTrhQdU3vig0/w6RQOjk4++aFPFaTb7S+Je/+ed\nYF0puFNZ5wAQcsk+DRzeS+H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my private key from GPG:

C:\Users\Lucas\Desktop\repos>gpg --armor --export-secret-key [email protected]
-----BEGIN PGP PRIVATE KEY BLOCK-----

lQWGBGCnhH8BDADKxQm2rEX61ghDRSOlqhC1qf++WFsNLgVr5h+peJkSZN6ze3Jl
ZrOsiEZuf9PkHCdPSy2iuPBV+wcG066gUlg/5eV2FghKtVEE+h9cFw7KDc8F6Hnk
CdxX4AipmYB8IHgeoY5tNE5Hp/IIvP588eMxkXuYfPZbHW6DU52s6wZfjuv3ycJv
rvCh6pLrGt1yyAMkRhh5ZR4gV71eiI4OxWyIEMi97c+AfHnauashmcBVivzbSO3a
qlFZJ4yL/6DHLF2SmiAAv0TeccdlRe8IuCJ3G5MLkkcOIrB4JNkPRxVUrz9+mSQp
Jqdx8ogDl0Qs2WxhXYunChmrFdD/mcwTur1trmEz1e3SIBUxJ982HSxYFw1lbt3G
fRiCL0jGBCzjCkFIH7ooPwVa4RC77YQiHnPJGQwy2PoaRxA3un8GoV0c7XV5gv0H
zYcGbqAYbMEnvc234wWUmVc+MExhTy943iXgRxLYzxPon4FHZ5JijlEi0g+PWo5L
sbJdlslsXh1T4WMAEQEAAf4HAwI+CZQPG92zW841WqZ4iMBaPp3f3azClIF8l69Z
oKjUVWca+qOm4LsQKEgzfqty0DW/w1q4v3qWcZaVJYU826QjBSXukD+cLLWaw3Y9
SdfShOoHLwmsSIs6kupnlSOdZz8G+jBda9EcujJfoqiV1vBDMG5bW/i/O2S+0h69
lOt4ktqCp2pRQ0/LxMAZYUgONJl6NR+DSnC3krv6UyiZ8afdxYCkWLclgvoIZaux
Ha/QWCLP0qntIFUIYSvhKF75gxbYjiUV0BQR8jqpjw79Xzx0aioVD35uvjIeM0V7
g9kteRw0l8ohkedfDEGPddCQoQLZpJAyF3H4Vql7pFirmzk83NO81k6DBsCwgnaO
MsU7B/qt+AqtfB+rJ82M1rFNoAAPAOe91rS7PgNao6FQ/GbRqIAWb3EfVRHkxGO8
aPQI0oCARdAUOqTkDjgrlOYS+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yqV3PpNTBFwn5QEUvSHhhpkqqzWi6X8s4fM34bbw5IhqLjfLQw4kbCOb
erMbVwiw2G0fHvnjiU8AT4YiqDrtQZhaukW+zbgHojr8WAqsb2Y6BjJ6rqO3rhuB
Lxdu+8Ntqbbudn4kK78a7OoNbN5dBGjr+wCx6GO4yAyx4+5n7PaGCVI2d/8Aiy2d
BO0KFLWQ6xhjRPQ00toW2Fdi15Jy7EdXqgQmp3ii39UwmNX6VKYE86RiDwDytPCc
AuzLElK/p9kaLDxh1zEAFkmBt6ybTZiJAbwEGAEIACYWIQSRrVlHfsiijaYebWG4
eM+YEmsTrwUCYKeEfwIbDAUJA8JnAAAKCRC4eM+YEmsTr9KfC/kBwAR2WuObQgHm
lNw6yK43PMRxOvoZhXVkSgtMIrbk0zdwTMxm6KskeSjjxyXDBsapt92fvQRNiHZq
ur5lHdRUgiyx4OrP6TinRoFVf3Cwur2fqy4QWS40Kaigk+0gChuyY3Vj4toMPAtX
V26IhuI8g4h3NYSZSisHkZ21CZMeq314GZCsgTmvo6MezCXTaYjYML9yiNLS/lpG
UEMc00jugZ+HpfTVoYNYbd24oSR0g9Aq8MzZBS0p8IkyCap3Wbgac8HtLTykEjZt
aKE/WOZuot/B/GKleCXYunrAPZZqO9jUN2blCOY2S0Em0u5/02NGfto6V0WcWuQa
KnJ5UMnb2KvBX6GMvOhUMKkjvWFACmU2AcZDatz81RTQawvsiUC5PMnhGSYEY/DR
gZ8943N7NbsB5OCncK9muWrgyILpzF1naM73YOgVRe2XjYEK6JYFh1nAdnyV9zas
GlUMH82kiLZ/Rj3A3M2Z+OkOrzTLknXAoCzORiA6SN5+QISUSbM=
=y0U1
-----END PGP PRIVATE KEY BLOCK-----

@LeSuisse
Copy link
Owner

The key seems to be protected by a passphrase can you try without it?

@lucaspwk
Copy link
Author

lucaspwk commented May 21, 2021

Yes there is a passphrase. Is not possible to import if is protected by passphrase? Also, can I import public keys as well?

@LeSuisse
Copy link
Owner

No it's not possible. The plugin needs to have access to the private part of the key.

Also, can I import public keys as well?

No. If you only want to do operations with the public part of a key you have a better time to do them directly instead of calling Vault.

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

No branches or pull requests

3 participants