
Security News
Axios Supply Chain Attack Reaches OpenAI macOS Signing Pipeline, Forces Certificate Rotation
OpenAI rotated macOS signing certificates after a malicious Axios package reached its CI pipeline in a broader software supply chain attack.
Dropdot is a simple file uploader built on NodeJS, Express and S3 API as the object storage platform. It supports AWS S3 and DreamHost Objects as storage provider.
Configuring Dropdot is simple, just follow the steps below:
AWS S3 Demo: http://dropdot.herokuapp.com/
Clone and install dependencies
$ git clone https://github.com/alfg/dropdot.git
$ cd dropdot
$ npm install
Open config.js and configure
module.exports.port = 3000; // App port
module.exports.aws_key = "YourAWSKey"; // AWS Key
module.exports.aws_secret = "YourSuperSecretAWSKey"; // AWS Secret
module.exports.aws_bucket = "NameOfS3Bucket"; // S3 bucket
module.exports.redirect_host = "http://localhost:3000/"; // Redirect page after successful upload
module.exports.host = "YOUR_S3_PROVIDER"; // S3 provider host
module.exports.bucket_dir = "uploads/"; // Subdirectory in S3 bucket where uploads will go
module.exports.max_filesize = 20971520; // Max filesize in bytes (default 20MB)
Or set your environment variables:
export PORT=3000
export AWS_KEY=<YourAWSKey>
export AWS_SECRET=<YourSuperSecretAWSKey>
export AWS_BUCKET=<NameOfS3Bucket>
export REDIRECT_HOST=http://localhost:3000/
export HOST=<YOUR_S3_PROVIDER>
export BUCKET_DIR=uploads
Run the app
$ node app.js
Load http://localhost:3000 into the browser
The app is set, now you need to create and configure your S3 Bucket.
In order to allow S3 to accept CORS uploads from your app, it needs to be properly configured.
Log into your S3 Console and create a bucket.
Right-click your bucket and go to properties > permissions > Edit CORS Configuration.
Enter the following:
<CORSConfiguration>
<CORSRule>
<AllowedOrigin>*</AllowedOrigin>
<AllowedMethod>PUT</AllowedMethod>
<AllowedMethod>GET</AllowedMethod>
<AllowedMethod>POST</AllowedMethod>
<MaxAgeSeconds>3000</MaxAgeSeconds>
<AllowedHeader>*</AllowedHeader>
</CORSRule>
</CORSConfiguration>
Of course, the * in AllowedOrigin is only for development. Be sure to use your domain when going public.
Objects will be available by accessing the public URL directly. Example:
http://bucket-name.s3.amazonaws.com/uploads/439fbca8-b79b-40e9-8172-4d318737ee14_file.jpg
However, if you wish to customize the URL, you can use a CNAME. First, create/rename your bucket to match the
subdomain (uploads.domain.com). Then create the CNAME (via your DNS settings) using the exact name of the
bucket/subdomain.
To be clear, the bucket's name and CNAME should be identical. i.e. uploads.domain.com
You can now access your files as:
http://uploads.domain.com/uploads/439fbca8-b79b-40e9-8172-4d318737ee14_file.jpg
All done! Now go upload stuff.
Dropdot is open-source under the MIT License.
Dropdot uses the following technologies, check them out!
Guides that saved me a few gray hairs dealing with CORS:
FAQs
Simple file uploading application
We found that dropdot demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
OpenAI rotated macOS signing certificates after a malicious Axios package reached its CI pipeline in a broader software supply chain attack.

Security News
Open source is under attack because of how much value it creates. It has been the foundation of every major software innovation for the last three decades. This is not the time to walk away from it.

Security News
Socket CEO Feross Aboukhadijeh breaks down how North Korea hijacked Axios and what it means for the future of software supply chain security.