Thanks to visit codestin.com
Credit goes to github.com

Skip to content

stumped2/valorem-vis

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

41 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Valorem Vis

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

How to use

  1. Setup Redis
  2. git clone https://github.com/spectralsun/valorem-vis.git
  3. cd valorem-vis
  4. 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")
  1. source env/bin/activate
  2. pip install -r requirements.txt
  3. cp config.py.dist config.py
  4. python manage.py runserver

Interaction

Uploading

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.

Searching

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.

About

Dead simple Flask key-value store web server

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • CSS 50.0%
  • Python 50.0%