Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

HowTo

Install

brew tap tinygo-org/tools
brew install tinygo

sudo curl https://func-e.io/install.sh | bash
sudo mv ./bin/func-e /usr/local/bin

Test

Amazon S3 provides 2 modes to access S3 buckets and objects there:

Run the following to setup http routing, compile wasm and run envoy locally:

export http_proxy=http://localhost:8080
tinygo build -o main.wasm -scheduler=none -target=wasi main.go
func-e run -c envoy.yaml

Tests

  • Virtual-hosted-style access: Should allow access:
curl  -I amzn-s3-demo-bucket1.s3.us-west-2.amazonaws.com

Should block access:

curl  -I amzn-s3-demo-bucket2.s3.us-west-2.amazonaws.com
  • Path-style access: Should allow access:
curl  -I s3.us-west-2.amazonaws.com/amzn-s3-demo-bucket1

Should block access:

curl  -I s3.us-west-2.amazonaws.com/amzn-s3-demo-bucket2

About

POC to restrict S3 access only to specific buckets

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages