Screening service: limits, timeouts and region matching #16
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "fix/screening-service-limits"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Follow-up to the Taskuler Security review of
df205df(H2, M1, M2, M4, L1, L2) and Legal's provider-terms item (R6). Built on web #14: it targets #14's branch, so merge #14 first and this PR then retargets tomain. No deploy.H2 (service reachable from outside): already fixed in #14. The service listens on 127.0.0.1 by default (
RAMPS_HOST), checked withss -ltn(127.0.0.1 only). This PR adds the 8 KB request cap inside the service itself as well.What changes, in plain words:
SCREEN_WALLET_LIMIT, default 20 per 10 minutes).IPAPI_DAILY_CAP), below ipapi.is's free 1,000. Chainalysis has its own daily cap (CHAINALYSIS_DAILY_CAP, default 5,000).PROVIDER_TIMEOUT_MS) and counts as "unavailable", so the action stays paused.REGION_ALIASESlists these gaps.IPAPI_NETWORK_DAILY_CAP). Past that, that network's checks are "unavailable" until 00:00 UTC (6 PM CT).daily-counters.jsonin systemd'sStateDirectory=taskuler-app(STATE_DIRECTORY), so a restart doesn't reset them. With no state directory, they're kept in memory only.Checked:
npm test167/167, bothtscpasses andvite buildpass.{ok:false, reason:'unavailable', checks:[]}with no keys; it listens on 127.0.0.1 only.