Skip to content

casey/worm

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

WORM

Write once read many key value storage service

Test instance here.

API

KEYs match /[a-zA-Z0-9.-_]+/.

  • PUT /KEY -> Associates KEY with data in request. Puts after the first will be ignored.
  • GET /KEY -> Returns the data associated with KEY.
> curl -X PUT http://rodarmor-worm.appspot.com/hello --data 'bob'
bob
> curl -X PUT http://rodarmor-worm.appspot.com/hello --data 'frank'
403 Forbidden
> curl -X GET http://rodarmor-worm.appspot.com/hello
bob

About

KEYs can be any length, but data is limited to 64 bytes just to avoid too much spam in the test instance datastore.

The sha256 hash of KEYs are used as datastore string IDs, instead of the KEY itself. This allows keys to be arbitrarily long, since they aren't actually stored in the datastore. Also, this lessens the severity of a potential attack vector.

About

Write once read many key value storage service

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages