Go to file
Vincent Breitmoser 53270cfb04 nginx: add option for loose rate limiting 2021-03-05 13:23:51 +01:00
.tx
contrib
database web: fix return status for error page with localization 2021-02-20 14:25:15 +01:00
dist
hagridctl
po/hagrid i18n: tx pull 2021-03-03 15:55:44 +01:00
src web: fix return status for error page with localization 2021-02-20 14:25:15 +01:00
templates-translated i18n: tx pull 2021-03-03 15:55:44 +01:00
templates-untranslated/about
wkd-domain-checker
.envrc
.gitignore
.gitlab-ci.yml
COPYING
Cargo.lock
Cargo.toml
README.md
Rocket.toml.dist
build.rs
hagrid-routes.conf nginx: add option for loose rate limiting 2021-03-05 13:23:51 +01:00
make-translated-templates
nginx-site.conf nginx: add option for loose rate limiting 2021-03-05 13:23:51 +01:00
nginx.conf
rust-toolchain
rustfmt.toml
shell.nix

README.md

Hagrid

Hagrid is a verifying OpenPGP key server.

You can find general instructions and an API documentation at the running instance at https://keys.openpgp.org.

License

Hagrid is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

Hagrid is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more details.

You should have received a copy of the GNU Affero General Public License along with Hagrid. If not, see https://www.gnu.org/licenses/.

Quick Start

Building Hagrid requires a working nightly Rust toolchain. The easiest way to get the toolchain is to download rustup.

Additionally, install external dependencies are required. Get them (on Debian or Ubuntu) with

sudo apt install gnutls-bin nettle-dev gcc llvm-dev libclang-dev build-essential pkg-config gettext

After rustup and all other dependencies are installed, get the nightly compiler and tools, copy the config file, and simply compile and run:

cd hagrid
rustup override set nightly-2020-06-01
cp Rocket.toml.dist Rocket.toml
cargo run

This will spawn a web server listening on port 8080.

For deployment, a release build should be used (cargo build --release). This will be statically built, and can be copied anywhere. You will also need to adjust Rocket.toml accordingly. Hagrid uses sendmail for mailing, so you also need a working local mailer setup.

Reverse Proxy

Hagrid is designed to defer lookups to reverse proxy server like Nginx and Apache. Lookups via /vks/v1/by-finingerprint, /vks/v1/by-keyid, and /vks/v1/by-email can be handled by a robust and performant HTTP server. A sample configuration for nginx is part of the repository (nginx.conf, hagrid-routes.conf).

Community

We're in #hagrid on Freenode IRC, also reachable via Matrix as #hagrid:stratum0.org.