Go to file
Wiktor Kwapisiewicz 27c86a3ea7
profiles: Display more info in noscript mode
2020-08-19 11:17:33 +02:00
.tx profiles: add profile pages with social proofs support 2020-08-06 11:08:00 +02:00
contrib contrib: add simple backup script 2020-05-11 00:07:09 +02:00
database db: treat emails correctly during publication 2020-05-14 17:44:34 +02:00
dist profiles: Display more info in noscript mode 2020-08-19 11:17:33 +02:00
hagridctl update sequoia to 0.14 2020-02-28 15:13:48 +01:00
po/hagrid i18n: tx pull 2020-04-28 22:05:24 +02:00
src profiles: Return profile page for regular search results too 2020-08-19 10:51:08 +02:00
templates-translated Fix internal weblink in the news page in local 'de' 2020-05-11 09:32:57 +02:00
templates-untranslated/about about: update gnupg faq entry 2020-07-20 09:37:27 +02:00
wkd-domain-checker wkd: mention that subdomains are available upon request in the checker 2020-02-08 10:09:56 +01:00
.envrc cargo update 2020-07-04 14:15:22 +02:00
.gitignore i18n: git ignore generated localized template files 2019-11-17 23:39:06 +01:00
.gitlab-ci.yml ci: use nettle from stable 2020-05-11 09:36:57 +02:00
COPYING Add license notice and license text 2019-05-03 11:10:34 +02:00
Cargo.lock cargo update 2020-07-04 14:15:22 +02:00
Cargo.toml cargo update 2020-07-04 14:15:22 +02:00
README.md list external dependencies in README 2020-05-11 10:21:06 +02:00
Rocket.toml.dist update Rocket.toml.dist because previous production config caused email errors 2020-05-11 10:21:06 +02:00
build.rs fix warning in build.rs 2019-02-22 16:34:45 +01:00
hagrid-routes.conf nginx: adapt csp for profile pages 2020-08-06 11:35:29 +02:00
make-translated-templates i18n: fix make-translated-templates script 2020-02-05 14:15:50 +01:00
nginx-site.conf nginx: further improve rewrite rules (get rid of most ifs) 2019-07-12 12:27:31 +02:00
nginx.conf split up nginx files 2019-02-27 11:39:38 +01:00
rust-toolchain cargo update 2020-07-04 14:15:22 +02:00
rustfmt.toml use rustfmt to format source 2019-02-08 12:46:31 +01:00
shell.nix nix: add transifex-client to shell.nix 2020-02-05 14:15:48 +01:00

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
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.