Skip to content

Commit 7dced88

Browse files
committed
chore(awareness-service): cap webhook delivery at 3 attempts
Lower the default AWARENESS_MAX_ATTEMPTS from 8 to 3.
1 parent 17f7aed commit 7dced88

3 files changed

Lines changed: 3 additions & 3 deletions

File tree

.env.example

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@ AAAS_ADMIN_ENAMES=""
145145
# Secret used to sign AaaS portal session JWTs
146146
AAAS_JWT_SECRET="replace-with-a-strong-secret"
147147
# Webhook delivery tuning
148-
AWARENESS_MAX_ATTEMPTS=8
148+
AWARENESS_MAX_ATTEMPTS=3
149149
AWARENESS_DELIVERY_POLL_MS=2000
150150
# The one-time Neo4j backfill reuses the standard NEO4J_URI / NEO4J_USER /
151151
# NEO4J_PASSWORD vars at the top of this file - it reads evault-core's graph

docs/docs/Services/Awareness-as-a-Service.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,7 @@ AaaS is designed to be dropped in with **zero receiver-side changes**:
160160
| `AWARENESS_SERVICE_URL` | (evault-core) where to POST packets |
161161
| `AAAS_ADMIN_ENAMES` | Comma-separated admin eNames |
162162
| `AAAS_JWT_SECRET` | Signs portal session JWTs |
163-
| `AWARENESS_MAX_ATTEMPTS` | Delivery attempts before dead-lettering (default 8) |
163+
| `AWARENESS_MAX_ATTEMPTS` | Delivery attempts before dead-lettering (default 3) |
164164
| `AWARENESS_DELIVERY_POLL_MS` | Delivery engine poll interval (default 2000) |
165165
| `NEO4J_URI` / `NEO4J_USER` / `NEO4J_PASSWORD` | Standard eVault Neo4j vars — reused by the one-time backfill |
166166
| `PUBLIC_AWARENESS_API_URL` | (portal) AaaS API base URL |

services/awareness-service/api/src/config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ export const config = {
2727
.filter(Boolean),
2828
/** Secret used to sign portal session JWTs. */
2929
jwtSecret: process.env.AAAS_JWT_SECRET ?? "awareness-dev-secret",
30-
maxAttempts: parseInt(process.env.AWARENESS_MAX_ATTEMPTS ?? "8", 10),
30+
maxAttempts: parseInt(process.env.AWARENESS_MAX_ATTEMPTS ?? "3", 10),
3131
deliveryPollMs: parseInt(
3232
process.env.AWARENESS_DELIVERY_POLL_MS ?? "2000",
3333
10,

0 commit comments

Comments
 (0)