buzzfeed/private_s3_httpd

Name: private_s3_httpd

Owner: BuzzFeed

Description: Private HTTP Server for Amazon S3 content

Created: 2016-05-18 19:25:24.0

Updated: 2016-05-18 22:39:51.0

Pushed: 2016-05-18 22:08:23.0

Homepage: null

Size: 10

Language: Go

GitHub Committers

UserMost Recent Commit# Commits

Other Committers

UserEmailMost Recent Commit# Commits

README

private_s3_httpd

Private HTTP Server for Amazon S3 content.

Amazon S3 provides a public HTTP interface for accessing content, but what if you don't want publicly accessible files?

private_s3_httpd exposes a private HTTP endpoint for an Amazon S3 bucket so you can controll access to the data. This is ideal for accessing S3 via HTTP api as a backend data service, or for local http browsing of a private s3 bucket, or for use behind another authentication service (like oauth2_proxy) to secure access.

e of ./private_s3_httpd:
ucket="": S3 bucket name
isten=":8080": address:port to listen on.
og-requests=true: log HTTP requests
Configuring S3 Credentials

Before using, ensure that you've configured credentials appropriately. The best way to configure credentials is to use the ~/.aws/credentials file, which might look like:

ault]
access_key_id = AKID1234567890
secret_access_key = MY-SECRET-KEY

You can learn more about the credentials file from this blog post.

Alternatively, you can set the following environment variables:

ACCESS_KEY_ID=AKID1234567890
SECRET_ACCESS_KEY=MY-SECRET-KEY
Installing
Building From Source

This project uses gb the Go Build tool. To load vendored dependencies and compile run ./vendor.sh && gb build


This work is supported by the National Institutes of Health's National Center for Advancing Translational Sciences, Grant Number U24TR002306. This work is solely the responsibility of the creators and does not necessarily represent the official views of the National Institutes of Health.