Research
Security News
Malicious npm Packages Inject SSH Backdoors via Typosquatted Libraries
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
@gobend/jsdk
Advanced tools
Steps for new developers to get up and running with the Bend data-service
You will need Rust, NodeJS, and a number of other tools to develop properly on the data-service
rustfmt
rustup component add rustfmt
cargo install diesel_cli --no-default-features --features mysql
example.env
to .env
and replace with PlanetScale database detailsdiesel migration run
cargo run
Run docker run -d -p 8000:8000 --env-file .env [IMAGE ID]
to start the containerized api-service in a detached process.
Note that when targeting a PlanetScale database, the containerized service requires that ?ssl_mode=verify_identity&ssl_ca=/etc/ssl/certs/ca-certificates.crt
be appended to the DATABASE_URL to specify the Certificate Authority roots for the debian environment. (See DB Connectivity)
gcloud auth login
using an account with access to the Container Registrardocker build . --tag tcmoore/bend-api-service
docker tag tcmoore/bend-api-service gcr.io/bend-330614/api-service
(You can find the project id here)docker push gcr.io/bend-330614/api-service
Once logged in, you can also use the publish.sh
script.
The data-service can be pointed at a remote PlanetScale database, or at a local MySQL server with a DATABASE_URL like mysql://root:@localhost:3306/bend
(see the example.env
file)
We use ngrok for the purpose of Local Tunneling, such as when testing the Brex integration
Example: ngrok http --region=us --hostname=bend.ngrok.io 8000
FAQs
SDK for interacting with Bend data types
We found that @gobend/jsdk 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.
Research
Security News
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
Security News
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
Security News
In this segment of the Risky Business podcast, Feross Aboukhadijeh and Patrick Gray discuss the challenges of tracking malware discovered in open source softare.