"the value you want"
Dead simple Flask key-value storage using redis. Valorem Vis is not tested for security and should only be used in development environments for experiment purposes.
- Setup Redis
- git clone https://github.com/spectralsun/valorem-vis.git
- cd valorem-vis
- virtualenv env
- Note: you will need to specify python 2.X if python 3.X is default on your system (example: "virtualenv -p /usr/bin/python2 env")
- source env/bin/activate
- pip install -r requirements.txt
- cp config.py.dist config.py
- python manage.py runserver
using the store
endpoint of the Directory Provider, you can upload a PGP Public Key and the pgp key signature.
The expected upload format is:
{
"email": "<validly formatted email>"
"pgp": "<base64 encoded pgp public key>.<pgp signature>"
}
All the uploading to the Directory Provider is handled by GET
requests.
Example:
http://<ip or dns>:<port>/store?email=<validly formatted email>&pgp=<pgp key>.<pgp signature>
The Directory Provider store the PGP information with the Persona information in the keystore using the email as the key. The Directory will also store the same information using the pgp key as the key value store key.
If anything other than email
and pgp
are sent to the directory provider, it will return a 400
error. If an incorrectly formatted backed identity assertion is uploaded, it will return a 400
as well.
Using the search
endpoint of the directory provide, you can query the keyvalue store for the backed identity assertion and pgp public key by either Email or PGP Public key.
An example is:
http://<ip or dns>:<port>/search?email=<validly formatted email>
to search by email. To search by pgp public key:
http://<ip or dns>:<port>/search?pgp=<pgp public key>
If the directory provider cannot find any information associated with the email or the pgp key, it will return a 404
error.
If anything other than pgp
or email
, it will return a 400
error.