fix: Remnawave 2.8 expiry reminders and admin Hosts screen #2
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "bw/expiration-and-hosts"
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?
Remaining Remnashop v0.8.2 gaps against Remnawave 2.8.1 (after #1).
Expiry reminders. 2.8 sends one
user.expirationevent withmeta.expiration(hours from expiry) instead ofuser.expires_in_72/48/24_hoursanduser.expired_24_hours_ago. The webhook endpoint now maps -72/-48/-24/+24 back to the old names after signature validation (src/bw/remnawave_compat.py); other offsets and malformed meta get 200 and are ignored. The panel must also enableEXPIRATION_NOTIFICATIONS(separate owner-approved panel change, seebw/README.md).Admin Hosts screen.
bw/patches/remnapy-hosts-2.8.patchacceptsxhttpExtraParams/tags(2.8) and the old names.Checks (local build,
--network none):bw/smoke.py23/23 (HWID, hosts, mapping).bw/smoke_webhook.py7/7: real endpoint, signed payloads, bad signature still 401.v0.8.2-bw-a1c2cf4fails the 5 expiration endpoint cases and the 2.8.1 host shape;smoke.pyfails at import ona1c2cf4and upstream v0.8.2.🤖 Generated with Claude Code
Independent review (fresh Claude agents, effort xhigh) and resolution
Round 1 (
0ca9dcd1): mergeable, no blockers. Verified against panel 2.8.1 sources: sign convention and int type ofmeta.expiration, superjson payload shape, signature validated before mapping, end-to-end through the realRemnaWebhookService(3/2/1-day and +24h events, -12h nothing, renewed subscription still skipped), hosts patch with pydantic 2.11, negative controls on the deployeda1c2cf4image.13b15a6f(ignored-offset 401 case, -48h case, Hosts/reminder checks in README).set -eu, offset in the ignore log,bandwidth_usage_threshold_reachedlisted, panel per-event notifications file,muxParams/sockoptParamswidened toAny(+ check), smoke_webhook not executable. Recorded: reminders are not filtered by user status (upstream behaviour).Round 2 (
13b15a6f): mergeable after one README fix — panel log uses→and a trailing period. Fixed inb4419bd6with two wording nits (docs only, CI green). Remaining style nits (body parsed three times for an ignored offset; non-object params check could assert values) left as is.Checks: smoke.py 24/24, smoke_webhook.py 9/9; deployed
a1c2cf4fails the 6 expiration endpoint cases and the 2.8.1 host shape.🤖 Generated with Claude Code