 Encrypt
Encrypt
Encrypt a file with PGP.
type: "io.kestra.plugin.crypto.openpgp.Encrypt"Examples
Encrypt a file not signed
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
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
Properties
recipients *Requiredarray
The list of recipients the file will be generated.
from string
The file to crypt
Pebble expression referencing an Internal Storage URI e.g. {{ outputs.mytask.uri }}.
key string
The public key use to sign the files
Must be an ascii key export with gpg --export -a
signPassphrase string
The passphrase use to unlock the secret ring
signPrivateKey string
The public key use to sign the files
Must be an ascii key export with gpg --export -a
signPublicKey string
The public key use to sign the files
Must be an ascii key export with gpg --export -a
signUser string
The user that will signed the files
If you want to sign the file, you need to provide a privateKey
Outputs
uri string
uriThe encrypted files uri
