Encrypt
type: "io.kestra.plugin.crypto.openpgp.Encrypt"
Encrypt a file crypted with PGP
# Examples
Encrypt a file not signed
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
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
# Properties
# from
- Type: string
- Dynamic: ✔️
- Required: ❌
The file to crypt
# key
- Type: string
- Dynamic: ✔️
- Required: ❌
The public key use to sign the files
Must be an ascii key export with gpg --export -a
# recipients
- Type: array
- SubType: string
- Dynamic: ✔️
- Required: ✔️
The list of recipients the file will be generated.
# signPassphrase
- Type: string
- Dynamic: ✔️
- Required: ❌
The passphrase use to unlock the secret ring
# signPrivateKey
- Type: string
- Dynamic: ✔️
- Required: ❌
The public key use to sign the files
Must be an ascii key export with gpg --export -a
# signPublicKey
- Type: string
- Dynamic: ✔️
- Required: ❌
The public key use to sign the files
Must be an ascii key export with gpg --export -a
# signUser
- Type: string
- Dynamic: ✔️
- Required: ❌
The user that will signed the files
If you want to sign the file, you need to provide a privateKey
# Outputs
# uri
- Type: string
The encrypted files uri