
Security News
vlt Launches "reproduce": A New Tool Challenging the Limits of Package Provenance
vlt's new "reproduce" tool verifies npm packages against their source code, outperforming traditional provenance adoption in the JavaScript ecosystem.
Heroku doesnt allow you to scp a file up to their server. This gem creates a barebones file upload mechanism that dumps a file uploaded into the public directory. Heroku automatically cleans that directory regularly so we dont have to worry about files lingering around.
Add this line to your application's Gemfile:
gem "dyno_scp", "~> <version>"
And then execute:
$ bundle
Mount the engine in your routes file:
mount DynoScp::Engine, at: "/dyno_scp"
Heroku runs processes in their own separate dynos. If you add a file in your console session and then exit and re-enter your file will be gone. This becomes and issue when using this tool because when you upload a file it is placed in the web dyno which you can't directly access.
See Accessing Uploaded Files for retrieval steps.
After mounting the engine, you can navigate to #{host}/dyno_scp
to see the upload page.
Simply choose the file you wish to upload, then press the "upload" button. You will see a confirmation message once the file has been uploaded.
Files are placed in the /public
folder, so use this with caution. They will
be publicly accessible to anyone who finds out they exist.
In Heroku, these files are cleared out every 24 hours automatically. In other hosting schemes, there may not be automated cleanup of the public folder.
The main use case for this tool is to upload a file to a heroku hosted site for usage in some type of data load or backfill task.
After setting up open a bash console on the heroku app.
heroku run bash --app my-heroku-app
To use files after they've been uploaded with this tool, you need to retreive the file inside the bash terminal from the web dyno where it was uploaded.
Using curl
curl https://my-heroku-app.herokuapp.com/my_uploaded_file.csv -o my_uploaded_file.csv
Using wget
wget https://my-heroku-app.herokuapp.com/my_uploaded_file.csv my_uploaded_file.csv
FAQs
Unknown package
We found that dyno_scp demonstrated a healthy version release cadence and project activity because the last version was released less than 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
vlt's new "reproduce" tool verifies npm packages against their source code, outperforming traditional provenance adoption in the JavaScript ecosystem.
Research
Security News
Socket researchers uncovered a malicious PyPI package exploiting Deezer’s API to enable coordinated music piracy through API abuse and C2 server control.
Research
The Socket Research Team discovered a malicious npm package, '@ton-wallet/create', stealing cryptocurrency wallet keys from developers and users in the TON ecosystem.