fix(hwid): accept Remnawave 2.8 userId in remnapy HWID models; own image #1

Merged
kinsei merged 3 commits from fix/hwid-userid into main 2026-11-21 21:55:51 +01:00
Owner

Remnawave 2.8.1 sends HWID devices with numeric userId and no userUuid; remnapy 95e15ed requires userUuid.

Effects on v0.8.2: Devices screen crashes (46 times in the current bot log), single delete reports an error after the panel deleted the device, user_hwid_devices.* webhooks get 401.

  • Build-time git apply of bw/patches/remnapy-hwid-userid.patch (HwidDeviceDto + webhook HwidUserDeviceDto).
  • bw/smoke_hwid.py in-image check: upstream v0.8.2 fails 4/7, patched image 7/7.
  • .forgejo/workflows/image.yml: build + smoke; push to git.kinsei.dev/kinsei/remnashop on main.
  • bw/README.md: delta, deploy/rollback, checks.

The Telegram patch (remna_shop/88729) covers only HwidDeviceDto and lives in the running container; this one also fixes the webhook model and is baked into the image.

🤖 Generated with Claude Code

Remnawave 2.8.1 sends HWID devices with numeric `userId` and no `userUuid`; remnapy 95e15ed requires `userUuid`. Effects on v0.8.2: Devices screen crashes (46 times in the current bot log), single delete reports an error after the panel deleted the device, `user_hwid_devices.*` webhooks get 401. - Build-time `git apply` of `bw/patches/remnapy-hwid-userid.patch` (HwidDeviceDto + webhook HwidUserDeviceDto). - `bw/smoke_hwid.py` in-image check: upstream v0.8.2 fails 4/7, patched image 7/7. - `.forgejo/workflows/image.yml`: build + smoke; push to `git.kinsei.dev/kinsei/remnashop` on main. - `bw/README.md`: delta, deploy/rollback, checks. The Telegram patch (remna_shop/88729) covers only HwidDeviceDto and lives in the running container; this one also fixes the webhook model and is baked into the image. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
fix(hwid): accept Remnawave 2.8 userId in remnapy HWID models; own image
All checks were successful
bw-image / image (pull_request) Successful in 9m23s
d83f269103
Remnawave 2.8 renamed the HWID device owner field userUuid to the numeric
userId. remnapy 2.7.x (rev 95e15ed) still requires userUuid, so on panel
2.8.1 the Devices screen fails, a single-device delete reports an error after
the panel deleted it, and user_hwid_devices webhooks get HTTP 401.

- bw/patches/remnapy-hwid-userid.patch: userUuid optional, userId added in
  HwidDeviceDto and the webhook HwidUserDeviceDto; applied with git apply
  during the image build (fails the build if the pinned files change).
- bw/smoke_hwid.py: in-image check; fails on upstream v0.8.2 (4 cases),
  passes on the patched image.
- .forgejo/workflows/image.yml: build, smoke and, on main, push
  git.kinsei.dev/kinsei/remnashop:v0.8.2-bw[-<commit>]; docker CLI and
  buildx pinned by sha256.
- bw/README.md: delta, deploy/rollback, post-deploy check, upstream sync.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
fix(ci): push via Doppler-held package token; README gaps (PR #1 review)
All checks were successful
bw-image / image (pull_request) Successful in 1m49s
a1c2cf4b0a
- The automatic Forgejo token cannot push packages (Forgejo 15): the push
  step reads REGISTRY_USER/REGISTRY_TOKEN from Doppler with the repo-only
  DOPPLER_TOKEN secret, uses a temporary DOCKER_CONFIG and skips with a
  warning when the secret is absent.
- Jobs run only for same-repository pull requests and main (host Docker
  socket); timeout 30 min; smoke without network; cleanup touches only
  this run's images.
- README: behaviour changes (device notifications, connection drop and
  cooldown on single delete), known 2.8.1 gaps (expiry reminders, Hosts
  screen, version warning), shared compose image line, eviction note.
- Dockerfile: restore line continuations.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
docs(bw): deployment record, review wording, follow-ups (PR #1 re-review)
All checks were successful
bw-image / image (pull_request) Successful in 6m49s
6e8deba6c7
- README: deployed image and digest, previous image and compose backup;
  expiry notice still works (only 3/2/1-day and +24h reminders are lost);
  notification routing; version warning from 2.8.0; x-build image line.
- Follow-ups: Doppler setup, push-step hardening, fork-PR approval rule
  (workflow comment clarified; no behaviour change).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Author
Owner

Independent review (fresh Claude agent, effort xhigh) and resolution

Round 1 (d83f2691): not mergeable.

  • Blocker: registry push with secrets.GITHUB_TOKEN cannot work on Forgejo 15 (no package scope for the automatic token). Fixed in a1c2cf4b: the push reads REGISTRY_USER/REGISTRY_TOKEN from Doppler via the repo-only DOPPLER_TOKEN and skips with a warning while it is absent.
  • Should-fix: README lacked the remaining Remnawave 2.8.1 gaps (expiry reminders, Hosts screen, version warning) and the behaviour changes (device notifications, connection drop and cooldown on single delete). Fixed.
  • Nits fixed: Dockerfile continuations, job timeout, smoke without network, cleanup of only this run's image, same-repository PR guard, README wording.
  • Verified by the reviewer: patch applies cleanly; smoke 7/7 patched vs 4 failures on upstream v0.8.2; end-to-end mock of list/delete/delete-all and signed 2.8.1 webhooks through the bot code; pins (checkout, node digest, docker, buildx) match; single-delete analysis against backend 2.8.1 holds.

Round 2 (d83f2691..a1c2cf4b): mergeable as is, no blocker/should-fix. Wording nits fixed in 6e8deba6; push-step hardening (value.computed, empty-value check, trap cleanup, token via stdin, registry-side moving tag) and the fork-PR approval rule recorded as follow-ups in bw/README.md.

Deployment (owner-authorized, after the owner's backup): v0.8.2-bw-a1c2cf4@sha256:dbdcd0c7... pushed manually and running on the bot host; smoke 7/7 in the running bot; owner deleted two devices (panel remaining 3 -> 2 -> 1, webhooks 200, no errors).

🤖 Generated with Claude Code

## Independent review (fresh Claude agent, effort xhigh) and resolution **Round 1 (d83f2691): not mergeable.** - Blocker: registry push with `secrets.GITHUB_TOKEN` cannot work on Forgejo 15 (no package scope for the automatic token). **Fixed** in a1c2cf4b: the push reads `REGISTRY_USER`/`REGISTRY_TOKEN` from Doppler via the repo-only `DOPPLER_TOKEN` and skips with a warning while it is absent. - Should-fix: README lacked the remaining Remnawave 2.8.1 gaps (expiry reminders, Hosts screen, version warning) and the behaviour changes (device notifications, connection drop and cooldown on single delete). **Fixed.** - Nits fixed: Dockerfile continuations, job timeout, smoke without network, cleanup of only this run's image, same-repository PR guard, README wording. - Verified by the reviewer: patch applies cleanly; smoke 7/7 patched vs 4 failures on upstream v0.8.2; end-to-end mock of list/delete/delete-all and signed 2.8.1 webhooks through the bot code; pins (checkout, node digest, docker, buildx) match; single-delete analysis against backend 2.8.1 holds. **Round 2 (d83f2691..a1c2cf4b): mergeable as is**, no blocker/should-fix. Wording nits fixed in 6e8deba6; push-step hardening (value.computed, empty-value check, trap cleanup, token via stdin, registry-side moving tag) and the fork-PR approval rule recorded as follow-ups in `bw/README.md`. **Deployment (owner-authorized, after the owner's backup):** `v0.8.2-bw-a1c2cf4@sha256:dbdcd0c7...` pushed manually and running on the bot host; smoke 7/7 in the running bot; owner deleted two devices (panel remaining 3 -> 2 -> 1, webhooks 200, no errors). 🤖 Generated with [Claude Code](https://claude.com/claude-code)
kinsei merged commit ae5acc826e into main 2026-11-21 21:55:51 +01:00
kinsei deleted branch fix/hwid-userid 2026-11-21 21:55:51 +01:00
Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
kinsei/remnashop!1
No description provided.