#broker #reference #protocols #specification #authentication #own #portier

app portier_broker

Reference implementation of the Portier broker protocol

3 unstable releases

new 0.9.0 Apr 11, 2024
0.8.5 Jan 19, 2024
0.8.4 Aug 23, 2023
0.8.1 Mar 24, 2023
0.1.0 Aug 21, 2016

#18 in Email

Download history 9/week @ 2024-01-13 2/week @ 2024-01-20 10/week @ 2024-02-17 75/week @ 2024-02-24 5/week @ 2024-03-09 1/week @ 2024-03-16 7/week @ 2024-03-30 96/week @ 2024-04-06

105 downloads per month

MIT/Apache

345KB
8K SLoC

Portier Broker

This is the Portier Broker reference implementation.

How to run your own broker

HerokuDeploy

Portier is specified such that everyone can run their own broker instance. You can point your Relying Parties at your own broker, so that you do not have to depend on the broker run by the Portier project.

Binaries for the broker can be found on the GitHub releases page. Docker images are also available on Docker Hub. Alternatively, you can build the broker yourself.

The broker can be configured using a configuration file or through environment variables. Both are documented in the example configuration file.

Once you've prepared the configuration, simply run the broker executable:

# From binaries:
./portier-broker[.exe] ./config.toml

# Using Docker:
docker run -v /srv/portier-broker:/data:ro portier/broker /data/config.toml

Some additional notes:

  • If using environment variables only, don't specify a configuration file on the command line.

  • Systemd units are also included with the Linux binaries.

  • The broker only talks plain HTTP, and not HTTPS. Using HTTPS is strongly recommended, but you'll need to add a reverse proxy in front of the broker to do this. (Apache or Nginx can do this for you.)

Dependencies

~50–69MB
~1.5M SLoC