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?
- Zammad gets a new ticket
- It sends you a webhook
- 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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file zammad_pgp_import-0.1.1a4.tar.gz.
File metadata
- Download URL: zammad_pgp_import-0.1.1a4.tar.gz
- Upload date:
- Size: 6.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/2.1.2 CPython/3.13.5 Linux/6.14.11-hardened1-1-hardened
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3bcbe4d7cd7519de88d558b4dc75e9750f2f2c8f288bbe4713a7ceb4ad1e4976
|
|
| MD5 |
bf60a03ab3c66dcd1ffead99557bd291
|
|
| BLAKE2b-256 |
0a938f1a1dfe9634f803e97f205a1ee6895ba4cfdb7057ebbee9b0646c00376b
|
File details
Details for the file zammad_pgp_import-0.1.1a4-py3-none-any.whl.
File metadata
- Download URL: zammad_pgp_import-0.1.1a4-py3-none-any.whl
- Upload date:
- Size: 8.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/2.1.2 CPython/3.13.5 Linux/6.14.11-hardened1-1-hardened
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f03d85b5cef00a55fcfacb581e9eca9d4834910729eea4defb2ca5849c14afac
|
|
| MD5 |
1b9407d37cb0b56ece4eb76bfeae87dc
|
|
| BLAKE2b-256 |
6c80d599cd16a0b11144e9163ac51bb22e0f0bc004b97a23020385ad02977e92
|