[PR #6464] [MERGED] feat(clients): show short HWID fingerprint in admin device list #6286

Closed
opened 2026-11-02 04:07:42 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/MHSanaei/3x-ui/pull/6464
Author: @mrchatam
Created: 9/11/2026
Status: ✅ Merged
Merged: 9/12/2026
Merged by: @MHSanaei

Base: main ← Head: feat/hwid-short-fingerprint


📝 Commits (2)

  • 6eb0902 feat(clients): show short HWID fingerprint in admin device list
  • aca8731 ci: retrigger release matrix after 386 dependency download flake

📊 Changes

21 files changed (+55 additions, -11 deletions)

View changed files

📝 docs/content/docs/en/reference/api/clients.mdx (+4 -4)
📝 docs/public/openapi.json (+3 -2)
📝 frontend/public/openapi.json (+3 -2)
📝 frontend/src/components/clients/ClientHwidList.tsx (+8 -0)
📝 frontend/src/lib/clients/hwid-log.ts (+1 -0)
📝 frontend/src/pages/api-docs/endpoints.ts (+3 -2)
📝 internal/web/service/client_hwid.go (+13 -1)
📝 internal/web/service/client_hwid_test.go (+7 -0)
📝 internal/web/translation/ar-EG.json (+1 -0)
📝 internal/web/translation/en-US.json (+1 -0)
📝 internal/web/translation/es-ES.json (+1 -0)
📝 internal/web/translation/fa-IR.json (+1 -0)
📝 internal/web/translation/id-ID.json (+1 -0)
📝 internal/web/translation/ja-JP.json (+1 -0)
📝 internal/web/translation/pt-BR.json (+1 -0)
📝 internal/web/translation/ru-RU.json (+1 -0)
📝 internal/web/translation/tr-TR.json (+1 -0)
📝 internal/web/translation/uk-UA.json (+1 -0)
📝 internal/web/translation/vi-VN.json (+1 -0)
📝 internal/web/translation/zh-CN.json (+1 -0)

...and 1 more files

📄 Description

Summary

  • Return a stable 12-character fingerprint (prefix of the existing stored hwid_hash) from the authenticated admin HWID list API.
  • Show the fingerprint in the admin HWID device list UI so devices can be distinguished without DB queries.
  • Keep full hashes and raw HWIDs unexposed; update translations and OpenAPI/docs examples accordingly.

Fixes #6359

Test plan

  • Open a client with registered HWID devices and confirm each row shows HWID fingerprint: <12 hex chars>.
  • Confirm two devices with different stored hashes show different fingerprints, and the same hash always shows the same fingerprint.
  • Confirm POST /panel/api/clients/hwids/:email returns fingerprint and still omits the full hash.
  • Confirm subscription/client-facing responses are unchanged (no fingerprint/hash leakage).

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/MHSanaei/3x-ui/pull/6464 **Author:** [@mrchatam](https://github.com/mrchatam) **Created:** 9/11/2026 **Status:** ✅ Merged **Merged:** 9/12/2026 **Merged by:** [@MHSanaei](https://github.com/MHSanaei) **Base:** `main` ← **Head:** `feat/hwid-short-fingerprint` --- ### 📝 Commits (2) - [`6eb0902`](https://github.com/MHSanaei/3x-ui/commit/6eb090224418aa10c65f51b56356c5db1d646334) feat(clients): show short HWID fingerprint in admin device list - [`aca8731`](https://github.com/MHSanaei/3x-ui/commit/aca8731e792ab30eb842fbb44d26175885cd0cf4) ci: retrigger release matrix after 386 dependency download flake ### 📊 Changes **21 files changed** (+55 additions, -11 deletions) <details> <summary>View changed files</summary> 📝 `docs/content/docs/en/reference/api/clients.mdx` (+4 -4) 📝 `docs/public/openapi.json` (+3 -2) 📝 `frontend/public/openapi.json` (+3 -2) 📝 `frontend/src/components/clients/ClientHwidList.tsx` (+8 -0) 📝 `frontend/src/lib/clients/hwid-log.ts` (+1 -0) 📝 `frontend/src/pages/api-docs/endpoints.ts` (+3 -2) 📝 `internal/web/service/client_hwid.go` (+13 -1) 📝 `internal/web/service/client_hwid_test.go` (+7 -0) 📝 `internal/web/translation/ar-EG.json` (+1 -0) 📝 `internal/web/translation/en-US.json` (+1 -0) 📝 `internal/web/translation/es-ES.json` (+1 -0) 📝 `internal/web/translation/fa-IR.json` (+1 -0) 📝 `internal/web/translation/id-ID.json` (+1 -0) 📝 `internal/web/translation/ja-JP.json` (+1 -0) 📝 `internal/web/translation/pt-BR.json` (+1 -0) 📝 `internal/web/translation/ru-RU.json` (+1 -0) 📝 `internal/web/translation/tr-TR.json` (+1 -0) 📝 `internal/web/translation/uk-UA.json` (+1 -0) 📝 `internal/web/translation/vi-VN.json` (+1 -0) 📝 `internal/web/translation/zh-CN.json` (+1 -0) _...and 1 more files_ </details> ### 📄 Description ## Summary - Return a stable 12-character fingerprint (prefix of the existing stored `hwid_hash`) from the authenticated admin HWID list API. - Show the fingerprint in the admin HWID device list UI so devices can be distinguished without DB queries. - Keep full hashes and raw HWIDs unexposed; update translations and OpenAPI/docs examples accordingly. Fixes #6359 ## Test plan - [ ] Open a client with registered HWID devices and confirm each row shows `HWID fingerprint: <12 hex chars>`. - [ ] Confirm two devices with different stored hashes show different fingerprints, and the same hash always shows the same fingerprint. - [ ] Confirm `POST /panel/api/clients/hwids/:email` returns `fingerprint` and still omits the full hash. - [ ] Confirm subscription/client-facing responses are unchanged (no fingerprint/hash leakage). --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-11-02 04:07:42 +07:00
Sign in to join this conversation.
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
MHSanaei/3x-ui#6286
No description provided.