|
|
@@ -38,17 +38,17 @@ in ~30s. The four app services depend on them and start last.
|
|
|
### 2. Check /health
|
|
|
|
|
|
```bash
|
|
|
-curl -fsS http://localhost:8080/health
|
|
|
-curl -fsS http://localhost:8081/health
|
|
|
-curl -fsS http://localhost:8082/health
|
|
|
-curl -fsS http://localhost:8083/health
|
|
|
+curl -fsS http://localhost:8800/health
|
|
|
+curl -fsS http://localhost:8801/health
|
|
|
+curl -fsS http://localhost:8802/health
|
|
|
+curl -fsS http://localhost:8803/health
|
|
|
```
|
|
|
|
|
|
Expected: all four return `{"status":"ok","service":"..."}`.
|
|
|
|
|
|
### 3. Signed webhook end-to-end
|
|
|
|
|
|
-From a host that can reach ingestd (`localhost:8080` if running
|
|
|
+From a host that can reach ingestd (`localhost:8800` if running
|
|
|
docker compose on the same host):
|
|
|
|
|
|
```bash
|
|
|
@@ -57,7 +57,7 @@ BODY='{"company_id":"acme-001","source_id":"prom-prod","severity":"critical","ca
|
|
|
TS=$(date +%s)
|
|
|
SIG=$(printf '%s.%s' "$TS" "$BODY" | openssl dgst -sha256 -hmac "$SECRET" -hex | awk '{print $2}')
|
|
|
|
|
|
-curl -fsS -X POST http://localhost:8080/v1/ingest \
|
|
|
+curl -fsS -X POST http://localhost:8800/v1/ingest \
|
|
|
-H "Content-Type: application/json" \
|
|
|
-H "X-BA-Signature: t=$TS,v1=$SIG" \
|
|
|
--data "$BODY"
|
|
|
@@ -75,7 +75,7 @@ Run the same call again — `dedupe_count` should be `2`.
|
|
|
Same call but with `v1=deadbeef`:
|
|
|
|
|
|
```bash
|
|
|
-curl -i -X POST http://localhost:8080/v1/ingest \
|
|
|
+curl -i -X POST http://localhost:8800/v1/ingest \
|
|
|
-H "X-BA-Signature: t=$TS,v1=deadbeef" \
|
|
|
-H "Content-Type: application/json" \
|
|
|
--data "$BODY"
|
|
|
@@ -87,7 +87,7 @@ Expected: `401 {"error":"bad_signature"}`.
|
|
|
|
|
|
```bash
|
|
|
python3 -c 'import sys; sys.stdout.write("{\"x\":\"" + "a"*300000 + "\"}")' \
|
|
|
- | curl -i -X POST http://localhost:8080/v1/ingest \
|
|
|
+ | curl -i -X POST http://localhost:8800/v1/ingest \
|
|
|
-H "Content-Type: application/json" \
|
|
|
--data-binary @-
|
|
|
```
|
|
|
@@ -97,7 +97,7 @@ Expected: `413 {"error":"payload_too_large"}`.
|
|
|
### 6. Schema invalid
|
|
|
|
|
|
```bash
|
|
|
-curl -i -X POST http://localhost:8080/v1/ingest \
|
|
|
+curl -i -X POST http://localhost:8800/v1/ingest \
|
|
|
-H "Content-Type: application/json" \
|
|
|
--data '{"company_id":"acme-001","source_id":"prom-prod","severity":"BOGUS","title":"x"}'
|
|
|
```
|
|
|
@@ -117,7 +117,7 @@ counter in Prometheus should be ~1500 (= 30s × 50/s).
|
|
|
### 8. Metrics
|
|
|
|
|
|
```bash
|
|
|
-curl -fsS http://localhost:8080/metrics | grep ba_ingestd
|
|
|
+curl -fsS http://localhost:8800/metrics | grep ba_ingestd
|
|
|
```
|
|
|
|
|
|
Expected output:
|