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.
github.com/M-Fisher/companies_api
A single service for managing Companies
/cmd
Starting point for the app
/app
Application code
/app/api
API configuration. You can add new endpoints to the app/api/enpoints Don't forget to register them in app/api/api.go
/dev
Everything related to environment. Config files, Dockerfiles and docker-compose file for local running.
/migrations
DB migrations files.
For development purpose project can be started using docker-compose
make dev-up-app
Environment variables can be changed in dev/compose.dev.env.
Optionally you can start environment using docker-compose, and start app in terminal:
make dev-local-env
make local-run
Environment variables can be changed in dev/local.env.
For testing purposes you can use following authorization token: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VyX2lkIjoiMSJ9.u2tRKS4GWGieHric1tRvOFVbpEVY-lb9_cijO5_Pwt0
Also region checking is disabled for Dev environment. To enable checking - set DEVELOPMENT_MODE env to false
docker-compose environment can be restarted using make dev-restart
.
Project can be build as binary file (make build
) or as Docker image: make @build
make setup
- install all required dependencies for the project (e.g. golangci-lint)
make lint
- linters local run (golangci-lint should be installed)
make test
- running tests locally
You can run tests using
make test
Infrastructure:
Resoures:
FAQs
Unknown package
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.