zubux / badbucket Goto Github PK
View Code? Open in Web Editor NEWbadbucket checks your s3 bucket for common misconfigurations
License: MIT License
badbucket checks your s3 bucket for common misconfigurations
License: MIT License
Hit this error with a world readable bucket that only contained a single folder called foo
, no files.
⇒ badbucket -b foo-example-bucket
2017/08/17 16:08:45 Region detected for bucket foo-example-bucket: ap-southeast-2
Listable: false
2017/08/17 16:08:45 Unable to open file "testfile", open foo/: no such file or directory
panic: Unable to open file "testfile", open foo/: no such file or directory
goroutine 1 [running]:
log.Panicf(0x14399d4, 0x1a, 0xc420499e38, 0x2, 0x2)
/usr/local/Cellar/go/1.8.3/libexec/src/log/log.go:329 +0xda
github.com/zuBux/badbucket.AreFilesReadable(0xc42013a600, 0x7fff5fbff075, 0x16, 0x0, 0x0, 0x0)
/Users/foo/go/src/github.com/zuBux/badbucket/badbucket.go:58 +0x2e8
main.main()
/Users/foo/go/src/github.com/zuBux/badbucket/cmd/badbucket/badbucket.go:38 +0x371
badbucket
appears to hit an error when there are no files in a bucket, and then stops checks.
This was tested on a new bucket, world readable, with no files.
2017/08/17 16:06:59 Region detected for bucket foo-example-bucket: ap-southeast-2
Listable: false
2017/08/17 16:06:59 Error: No files in bucket
Hello Zubux,
Thanks for Creating Tool.
./badbucket -b flaws.cloud
2017/07/16 17:52:28 Region detected for bucket flaws.cloud: us-west-2
Listable: false
Readable: false
Writeable: false
Currently it appears that badbucket will just use the default aws profile configured. It would be cool if we could specify which profile to use, like with the aws CLI tools.
If this feature is already implemented, it wasn't obvious how to use it from the output of -h
:
⇒ badbucket -h
Usage of badbucket:
-b string
S3 bucket name
-bucket string
S3 bucket name
-r string
AWS region
-region string
AWS region
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.