Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Self hosted S3 alternative [closed]

I am looking for an S3 alternative which relies on a RESTful API, so that I can simply insert links such as http://datastore1.example.com/ID and they are directly downloadable. I have looked at RIAK and Bitcache. They both seem very nice: http://bitcache.org/api/rest but they have one problem. I want to be the only one who can upload data. Else anyone could use our datastore by sending a PUT Request.

Is there a way to configure RIAK so that everyone can "GET" but not everyone can PUT or DELETE files except me? Are there other services which you can recommend?

Also adding Bounty :)

Requirements:

  • RESTful API
  • Guests GET only
  • Runs on Debian

Very nice to have:

  • auto distributed

EDIT: To clarify I don't want any connection to S3 I have great servers just lying around with harddrives and very good network connection (3Gbps) I don't need S3..

like image 609
Thomaschaaf Avatar asked Jul 29 '10 08:07

Thomaschaaf


2 Answers

The Riak authors recommend to put a HTTP proxy in front of Riak in order to provide access control. You can chose any proxy server you like (such as nginx or Apache), and any access control policy you like (such as authorization based on IP addresses, HTTP basic auth, or cookies, assuming your proxy server can handle it). For example, in nginx, you might specify limit_except (likewise LimitExcept in Apache).

Alternatively, you could also add access control to Riak directly. It's based on Webmachine, so one approach would be to implement is_authorized.

like image 182
Martin v. Löwis Avatar answered Oct 06 '22 06:10

Martin v. Löwis


Based on the information that you have given, I would suggest Eucalyptus ( http://open.eucalyptus.com/ ). They do have an S3 compatible storage system.

like image 32
ϹοδεMεδιϲ Avatar answered Oct 06 '22 04:10

ϹοδεMεδιϲ