PGP Inline Encryption
Introduction
This workflow adds inline PGP encryption when composing and replying to email.
When you encrypt an entire email message, your recipients must be using an email reader that supports encryption along with access to one of their PGP private keys.
With inline encryption, you can encrypt only part of a message and your recipients can decrypt it in the tool of their choice.
For instance, you may encrypt login credentials or payment information.
Installation
This workflow is built into Cerb 11.0+. It will automatically update.
You can enable it from Search » Workflows » (+) » PGP Inline Encryption.
Usage
Add public keys
You need a PGP public key for a recipient to send an encrypted message to them.
You can import these from Search » PGP Public Keys » (+).
Here’s ours:
-----BEGIN PGP PUBLIC KEY BLOCK-----
Comment: https://keybase.io/wgm
Version: Keybase Go 5.9.2 (darwin)
xsFNBGIzezoBEACuJB80/QBctMn1I5tHL76t6z1753+zjX0vbdd0L4xFlZ/QhQwB
979xfF0bQVj74+YEjVoBXgB+GEPCeetSmVecexl6uMbq1nSJGCMwE27pIMDp/4ZC
RXKv+6qH2ge2PAdDQzMgL8gwKncfSccr8xqypqV1J+RPonkEFKDcj+WNNSqPsFtK
Ev8sx4l6avWi+f77GXjEjAGAtb9UKXK4S9aKV031uqWkzu+uXnyzQFI6/xALqaf8
FLFGjrZY1bsH8iYmyTTy2TN7gp/VpT58c9AI8UpfG+VxItr7HNCf2VOlKmNPVFIa
5hWUTVYG8gtJ1VL0DWA+KtUkCxQz0RUERERuXSmuBySftvxLa6W6O7m1FofgK51v
16ASQkvrp1zGNuSTrJStSDEDXdL0tHuMXuWvF9uv500vSKqikXnf5hU85jnI/CQM
dawdJzQE+nH5lj4uVKZBQ869ENpbftynL4CmquaTQbZ0P+Da6ctKvZu+fMb9pZgG
rtHPo11nv4fGU6PE3+Hjcb4IcI87g1duqHi+pndAQ/3mZs9OK+DHmXXLZugj5Wrt
tOjdXd8iawxv95RI/tvmfXC6FlYb5RM1pYtxRcvoMRB14wuSOfA815pOOmT1MMx2
/KwM1UwqOl7xTNGxBynB01AtUgl/xM45GWcjy+2fBIM6wSrGLy7SlLCBDQARAQAB
zSFXZWJncm91cCBNZWRpYSBMTEMg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xBNYCc8LFFRQ6tYTXggHvt5xkdWNpa6pUtaRAcUq4GlxVq5V5
+itMEfTrRvQnaxI8Ew5eTmthKzCsyaoG3/G5H8/XThMbxtdE1y+6g97sUtY9rD19
fofJE6UzEDu4i71xK84y9oQQRSqQPw==
=1rCz
-----END PGP PUBLIC KEY BLOCK-----
Send encrypted messages
Open any ticket profile page from Search » Tickets.
Click the Reply button below an email message.
Click the new inline encryption icon in the reply toolbar:
Enter the message to encrypt and select one or more recipient public keys.
Click the blue Continue button at the bottom to paste the encrypted message into your reply.
Reference
You can build your own PGP Inline Encryption workflow using this template as a reference.
Change occurrences of cerb.email.pgp_inline to your own workflow identifier. Use a prefix based on a domain you own (e.g. com.example.workflow
).
workflow:
name: cerb.email.pgp_inline
version: 2024-10-14T00:00:00Z
description: Encrypt messages with PGP and paste them inline in outgoing email
website: https://cerb.ai/workflows/cerb.email.pgp_inline/
requirements:
cerb_version: >=11.0 <11.1
cerb_plugins: cerberusweb.core
records:
automation/pgp_encrypt_interaction:
fields:
name: cerb.email.pgpInline.interaction
extension_id: cerb.trigger.interaction.worker
description: Encrypt messages with PGP and paste them inline in outgoing email
script@raw:
start:
await:
form:
title: Encrypt message
elements:
textarea/prompt_message:
label: Message:
required@bool: yes
sheet/prompt_recipient_keys:
label: Recipient public keys:
required@bool: yes
data:
automation:
uri: cerb:automation:cerb.data.records
inputs:
record_type: gpg_public_key
limit: 10
schema:
layout:
headings@bool: no
paging@bool: yes
filtering@bool: yes
columns:
selection/id:
params:
mode: multiple
card/_label:
params:
bold@bool: yes
encrypt.pgp:
output: encrypted_message
inputs:
message@key: prompt_message
public_keys:
ids@key: prompt_recipient_keys
return:
snippet@key: encrypted_message
policy_kata@raw:
commands:
encrypt.pgp:
allow: yes
toolbar_section/reply_pgp:
fields:
name: Inline PGP Encryption
priority: 10
toolbar_name: mail.reply
toolbar_kata@raw:
interaction/encryptWithPGP:
uri: cerb:automation:cerb.email.pgpInline.interaction
tooltip: Encrypt with PGP
icon: message-lock