Skip to main content

No project description provided

Project description

Zammad PGP import webhook

TLDR:

This is a Zammad webhook that gets triggered for each new incoming ticket. It automatically imports PGP keys attached to the ticket or found on a keyserver.

The problem it solves

Zammad supports PGP encryption. The current workflow of importing PGP keys is suboptimal. Agents need special admin privileges to import PGP keys. This webhook automatically imports PGP keys when some checks are completed.

How does it work?

  1. Zammad gets a new ticket
  2. It sends you a webhook
  3. This projects runs the backend of the webhook. There are two supported scenarios:
    • The email/ticket has a PGP key attached. If sender's email matches with the one of the PGP key => use Zammad API to import PGP key
    • If the email is PGP-encrypted: Use a keyserver to find a valid PGP

How to use it?

It's based on python and poetry.

poetry install
poetry run python zammad_pgp_import/__init__.py

Configuration is done via environment variables.

Configuration

name of environment variable meaning required
ZAMMAD_BASE_URL url of zammad instance, like https://tickets.example.org yes
ZAMMAD_TOKEN auth token with enough permissions yes
BASIC_AUTH_USER username for webhook and monitoring authentication yes
BASIC_AUTH_PASSWORD password for webhook and monitoring authentication yes
LISTEN_HOST defaults to "127.0.0.1" no
LISTEN_PORT defaults to 22000 no
DEBUG set 1 to enable debug log no
KEY_SERVER default is set to https://keys.openpgp.org no

https://docs.zammad.org/en/latest/api/intro.html

Monitoring

Docker

Example output

you have to specify webhook

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

zammad_pgp_import-0.1.1a5.tar.gz (6.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

zammad_pgp_import-0.1.1a5-py3-none-any.whl (9.0 kB view details)

Uploaded Python 3

File details

Details for the file zammad_pgp_import-0.1.1a5.tar.gz.

File metadata

  • Download URL: zammad_pgp_import-0.1.1a5.tar.gz
  • Upload date:
  • Size: 6.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.1.2 CPython/3.13.5 Linux/6.14.11-hardened1-2-hardened

File hashes

Hashes for zammad_pgp_import-0.1.1a5.tar.gz
Algorithm Hash digest
SHA256 e07aec329b395f51bc1ad32157590d2c20e6e01546f2eceeae7099fb93582e81
MD5 a5a2c020436ef1d1629cb2abbf130de2
BLAKE2b-256 376d88614030d1a6e93fc752bd991603c0511283f2593e5255223316be8adaea

See more details on using hashes here.

File details

Details for the file zammad_pgp_import-0.1.1a5-py3-none-any.whl.

File metadata

  • Download URL: zammad_pgp_import-0.1.1a5-py3-none-any.whl
  • Upload date:
  • Size: 9.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.1.2 CPython/3.13.5 Linux/6.14.11-hardened1-2-hardened

File hashes

Hashes for zammad_pgp_import-0.1.1a5-py3-none-any.whl
Algorithm Hash digest
SHA256 85ca863b3be5c886b24a0b7195f39b1e0624dbdb29480252b64602006a31409c
MD5 b2d40c8aee0591b1b2082852777be2ff
BLAKE2b-256 9b7100dbe58388013e48631d332b9da08294f608ec66a9f7ef1c56e7b4b4d1cd

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page