A Matrix proxy daemon that adds E2E encryption capabilities.
Project description
pantalaimon
Pantalaimon is an end-to-end encryption aware Matrix reverse proxy daemon. Pantalaimon acts as a good man in the midle that handles the encryption for you.
Messages are transparently encrypted and decrypted for clients inside of pantalaimon.
Installation
The Olm C library is required to be installed before installing pantalaimon.
If your distribution provides packages for libolm it is best to use those, note that a recent version of libolm is required (3.1+). If your distribution doesn't provide a package building from source is required. Please refer to the Olm readme to see how to build the C library from source.
Installing pantalaimon works like usually with python packages:
python setup.py install
Pantalaimon can also be found on pypi:
pip install pantalaimon
Do note that man pages can't be installed with pip.
Usage
While pantalaimon is a daemon, it is mean to be run as your own user. It won't verify devices for you automatically, unless configured to do so, and requires user interaction to verify, ignore or blacklist devices.
Pantalaimon requires a configuration file to run. The configuration file specifies one or more homeservers for pantalaimon to connect to.
A minimal pantalaimon configuration looks like this:
[local-matrix]
Homeserver = https://localhost:8448
ListenAddress = localhost
ListenPort = 8009
The configuration file should be placed in ~/.config/pantalaimon/pantalaimon.conf
.
The full documentation for the pantalaimons configuration can be found in
the man page pantalaimon(5)
.
Now that pantalaimon is configured it can be run:
pantalaimon --log-level debug
After running the daemon, configure your client to connect to the daemon instead of your homeserver. The daemon listens by default on localhost and port 8009.
Note that logging in to the daemon is required to start a sync loop for a user. After that clients can connect using any valid access token for the user that logged in. Multiple users per homeserver are supported.
For convenience a systemd service file is provided.
To control the daemon an interactive utility is provided in the form of
panctl
.
panctl
can be used to verify, blacklist or ignore devices, import or export
session keys, or to introspect devices of users that we share encrypted rooms
with.
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
File details
Details for the file pantalaimon-0.1.tar.gz
.
File metadata
- Download URL: pantalaimon-0.1.tar.gz
- Upload date:
- Size: 31.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.28.1 CPython/3.7.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | e2762d2c2d2c460d7a92f347966db76b5fafcd650e94cadba66264aa25705eee |
|
MD5 | 414a95a8ff124a638890ac2421da01d8 |
|
BLAKE2b-256 | 03e74a233dd2b402fd984c1228a8c885f0052d9f0f486b29e2e26d5254eef916 |
Provenance
File details
Details for the file pantalaimon-0.1-py3-none-any.whl
.
File metadata
- Download URL: pantalaimon-0.1-py3-none-any.whl
- Upload date:
- Size: 32.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.28.1 CPython/3.7.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | c6e47430e46f80d03b00007f3a03973b289302384993115106bf5214111656e9 |
|
MD5 | def37692b8df7d2681d13bf99373f281 |
|
BLAKE2b-256 | d33c4450e16fa45b881fd02f719439d76b02010c0daf823adb10667cd69b2150 |