
Product
Secure Your AI-Generated Code with Socket MCP
Socket MCP brings real-time security checks to AI-generated code, helping developers catch risky dependencies before they enter the codebase.
github.com/freshusername/news-api
News CRUD microservice written in Golang
Requirements for the task:
POST /posts
GET /posts
PUT /posts/{id}
GET /posts/{id}
DELETE /posts/{id}
Post minimum contains: id, title, content, created_at, updated_at.
Tests are required. (using testcontainers-go for spinning postgres docker containers)
Upload the code to Github.
There should be startup instructions. Ideally, this is a Makefile for assembly and a docker-compose file that should raise the DB instance
The following will be assessed:
DB_USER=postgres
DB_PASSWORD=admin
DB_NAME=news
DB_PORT=5432
DB_HOST=db #changed during deployment, from docker-compose if local development
POSTGRES_USER=postgres
POSTGRES_PASSWORD=admin
POSTGRES_DB=news
export GOOSE_DRIVER=postgres
export GOOSE_DBSTRING=postgresql://postgres:admin@127.0.0.1:5432/news?sslmode=disable
make migrate-up
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.
Product
Socket MCP brings real-time security checks to AI-generated code, helping developers catch risky dependencies before they enter the codebase.
Security News
As vulnerability data bottlenecks grow, the federal government is formally investigating NIST’s handling of the National Vulnerability Database.
Research
Security News
Socket’s Threat Research Team has uncovered 60 npm packages using post-install scripts to silently exfiltrate hostnames, IP addresses, DNS servers, and user directories to a Discord-controlled endpoint.