Giter VIP home page Giter VIP logo

rabe-keyserver's Introduction

Archived

This repository was archived on 07.06.2022 due to inactivity. It will be replaced by an updated/upgraded/alternative version based on svelte/sveltekit, which can be found on the github page https://github.com/Fraunhofer-AISEC

REST API for rust-abe attribute based encryption library

This is a standalone web server that makes the rabe library for Attribute Based Encryption (ABE) usable via a REST API.

Currently, rabe-keyserver only supports the BSW scheme, but further schemes implemented by rabe might be added in the future.

Head over to the Github page for documentation.

Checkout

Clone this project with subprojects:

git clone --recurse-submodules [email protected]:Fraunhofer-AISEC/rabe-keyserver.git

Building

Rust is a rapidly evolving ecosystem and future versions might break the build. We thus provide a stable docker environment for building and running rabe-keyserver based on rust nightly-2018-06-10.

Simply run

docker build . -t rabe-keyserver

and you will end up with an ~70 MB docker images that hosts the rabe-keyserver. Start it with

docker run -ti -P --env ROOT_ADDRESS=0.0.0.0 \
		--env ROCKET_PORT=8000 \
		--env ROCKET_ENV=production \
		--env DATABASE_URL=mysql://username:password@localhost/rabe \
		--restart always \
		--name rabe \
		rabe-keyserver:latest

rabe-keyserver's People

Contributors

georgbramm avatar julianschuette avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

rabe-keyserver's Issues

Docker deploy of MySQL instance?

Great work,

I am having issues running the sever with the specified install instructions

drbh:~/Documents/rabe-keyserver$ docker run \
-ti -P \
-p 8000:8000 \
--env ROOT_ADDRESS=0.0.0.0 \
--env ROCKET_PORT=8000 \
--env ROCKET_ENV=production \
--env DATABASE_URL=mysql://username:password@localhost/rabe \
--restart always --name rabe rabe-keyserver:latest

Warning: environment is 'production', but no `secret_key` is configured
๐Ÿš€  Rocket has launched from http://0.0.0.0:8000
thread '<unnamed>' panicked at 'Error connecting to mysql://username:password@localhost/rabe: BadConnection("Can\'t connect to local MySQL server through socket \'/var/run/mysqld/mysqld.sock\' (2 \"No such file or directory\")")', libcore/result.rs:945:5
note: Run with `RUST_BACKTRACE=1` for a backtrace.

I've also tired to replace the Database url with a instance I have running on my local machine but that is not working as well (make sense since I haven't run the migrations)

Is there an easy way to spin up a docker container and run the migrations when I first start the keyserver?

Thanks!

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.