Encrypt a file with PGP (fully compatible with old plugin).
yaml
type: "io.kestra.plugin.crypto.openpgp.encrypt"Encrypt a file not signed
yaml
id: crypto_encrypt
namespace: company.team
inputs:
- id: file
type: FILE
tasks:
- id: encrypt
type: io.kestra.plugin.crypto.openpgp.Encrypt
from: "{{ inputs.file }}"
key: |
-----BEGIN PGP PUBLIC KEY BLOCK----- ...
recipients:
- hello@kestra.io
Encrypt a file signed
yaml
id: crypto_encrypt
namespace: company.team
inputs:
- id: file
type: FILE
tasks:
- id: encrypt
type: io.kestra.plugin.crypto.openpgp.Encrypt
from: "{{ inputs.file }}"
key: |
-----BEGIN PGP PUBLIC KEY BLOCK----- ...
recipients:
- hello@kestra.io
signPublicKey: |
-----BEGIN PGP PUBLIC KEY BLOCK----- ...
signPrivateKey: |
-----BEGIN PGP PRIVATE KEY BLOCK-----
signPassphrase: my-passphrase
signUser: signer@kestra.io
SubType string
Dynamic
YESThe list of recipients the file will be generated.
Dynamic
YESThe file to crypt
Dynamic
YESThe public key use to sign the files
Must be an ascii key export with gpg --export -a
Dynamic
YESThe passphrase use to unlock the secret ring
Dynamic
YESThe public key use to sign the files
Must be an ascii key export with gpg --export -a
Dynamic
YESThe public key use to sign the files
Must be an ascii key export with gpg --export -a
Dynamic
YESThe user that will signed the files
If you want to sign the file, you need to provide a privateKey
Format
uriThe encrypted files uri