Security News
The Risks of Misguided Research in Supply Chain Security
Snyk's use of malicious npm packages for research raises ethical concerns, highlighting risks in public deployment, data exfiltration, and unauthorized testing.
github.com/ozonva/ova-joke-api
This application provides API for Joke entity management system. All data stored in OLTP database PostgreSQL. Service provides:
Component | Description | Port |
---|---|---|
db | PostgreSQL OLTP database, used as persistent storage | 5432 |
zookeeper | ZooKeeper- configuration management system for kafka | 2181 |
kafka | Apache Kafka- message broker | 9092 |
kafkaui | Kowl- web ui for kafka, allow observe broker state | 8087 |
jaeger | Jaeger- tracing system | 16686 |
prometheus | Prometheus- metric management system | 9091 |
grafana | Project metrics visualization | 3000 |
godoc | Documentation pages about project components and deps | 9099 |
gRPC API | Application API endpoint | 9090 |
metrics API | Application metrics endpoint for Prometheus | 9093 |
Flag | Config path | Env | Default value | Description |
---|---|---|---|---|
--grpc.addr | grpc.addr | OVA_GRPC_ADDR | 0.0.0.0.9090 | addr:port of gRPC server endpoint |
--flusher.chunksize | flusher.chunksize | OVA_FLUSHER_CHUNKSIZE | 3 | insert database batch size |
--db.host | db.host | OVA_DB_HOST | localhost | host for database |
--db.port | db.port | OVA_DB_PORT | 5432 | database port |
--db.name | db.name | OVA_DB_NAME | postgres | database name |
--db.user | db.user | OVA_DB_USER | postgres | database user name |
--db.pass | db.pass | OVA_DB_PASS | postgres | database user's password |
--metrics.addr | metrics.addr | OVA_METRICS_ADDR | 0.0.0.0:9093 | addr of metrics exporter api |
--broker.addrs | broker.addrs | OVA_BROKER_ADDRS | [0.0.0.0:9092] | addr of metrics exporter api |
Settings appied in priority:
# using options:
ova-joke-api --broker.addrs=127.0.0.1:9092 --broker.addrs=127.0.0.1:9093
# using envs:
OVA_BROKER_ADDRS=127.0.0.1:9092,127.0.0.1:9093 ova-joke-api
docker-compose up
2.1 run api server using golang:
make run
# or call directly:
# go run cmd/ova-joke-api/main.go
2.2. or using binary:
# compile binary
make build
# run binary
./bin/ova-joke-api
# run using make:
make lint
# or directly:
golangci-lint run ./...
# run using make:
make test
# or directly:
go test -tags=test_unit -v -count=1 -race -timeout=1m ./...
make generate
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.
Security News
Snyk's use of malicious npm packages for research raises ethical concerns, highlighting risks in public deployment, data exfiltration, and unauthorized testing.
Research
Security News
Socket researchers found several malicious npm packages typosquatting Chalk and Chokidar, targeting Node.js developers with kill switches and data theft.
Security News
pnpm 10 blocks lifecycle scripts by default to improve security, addressing supply chain attack risks but sparking debate over compatibility and workflow changes.