[PR #6957] docs(nodes): note node-admin token is required to update mTLS nodes #6542

Open
opened 2026-11-02 04:09:31 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/MHSanaei/3x-ui/pull/6957
Author: @NikanZeyaei
Created: 10/26/2026
Status: 🔄 Open

Base: main ← Head: docs/node-admin-token-mtls-update


📝 Commits (1)

  • 554db3a docs(nodes): note node-admin token is required to update mTLS nodes

📊 Changes

18 files changed (+47 additions, -18 deletions)

View changed files

📝 docs/content/docs/en/operations/multi-node.mdx (+9 -1)
📝 docs/content/docs/fa/operations/multi-node.mdx (+9 -1)
📝 docs/content/docs/ru/operations/multi-node.mdx (+10 -1)
📝 docs/content/docs/zh/operations/multi-node.mdx (+5 -1)
📝 internal/web/translation/ar-EG.json (+1 -1)
📝 internal/web/translation/en-US.json (+1 -1)
📝 internal/web/translation/es-ES.json (+1 -1)
📝 internal/web/translation/fa-IR.json (+1 -1)
📝 internal/web/translation/id-ID.json (+1 -1)
📝 internal/web/translation/ja-JP.json (+1 -1)
📝 internal/web/translation/pt-BR.json (+1 -1)
📝 internal/web/translation/ru-RU.json (+1 -1)
📝 internal/web/translation/sk-SK.json (+1 -1)
📝 internal/web/translation/tr-TR.json (+1 -1)
📝 internal/web/translation/uk-UA.json (+1 -1)
📝 internal/web/translation/vi-VN.json (+1 -1)
📝 internal/web/translation/zh-CN.json (+1 -1)
📝 internal/web/translation/zh-TW.json (+1 -1)

📄 Description

Summary

Document that "Update panel" on a node connected over mTLS still needs an API token with the node-admin scope, in the multi-node guide (en/zh/ru/fa) and in the node form's mTLS hint (all 14 locales).

Why

A master reaching a node over mTLS with no bearer token is treated as node-sync, which cannot call /server/updatePanel, so Update panel fails with this API token is not permitted to access this endpoint (HTTP 403). This is intentional (a8d0700b, #6666), but the guide said the API token is "not needed in mTLS mode".

Refs #6953

Type of change

  • Bug fix
  • New feature
  • Refactoring (no behavior change)
  • Documentation
  • Tests only
  • Build / CI / tooling
  • Other

Areas affected

  • Frontend (UI / panel pages)
  • Backend (API endpoints, login, settings)
  • Xray config generation
  • Subscription (share links / Clash / JSON)
  • Statistics / traffic counters
  • Database / migrations
  • Install / upgrade script
  • Docker image
  • Multi-node (sub-nodes)
  • Telegram bot

How was this tested?

No logic changed, so no new tests apply; the existing TestCheckAPIAuth_AcceptsVerifiedClientCert and TestPanelUpdateRequiresNodeAdminScope already pin the 403.

  • cd frontend && npx vitest run src/test/i18n-dead-keys.test.ts passes (the mtlsFormHint key is only reworded, not added).
  • All 14 translation JSON files parse.
  • make gen leaves frontend/src/generated and frontend/public/openapi.json clean.

Non-English wording is machine-assisted and has not had native-speaker review.

Screenshots / recordings

N/A (one sentence appended to an existing alert).

Breaking changes

None.

Checklist

  • I tested the change locally and confirmed the described behavior.
  • I added or updated tests for the new behavior (when applicable).
  • go build ./... and the test suite pass locally.
  • For frontend changes: npm run lint, npm run typecheck, and npm run build pass.
  • I updated the Wiki / README / API docs if user-facing behavior changed.
  • My commits follow the project's existing message style.
  • I have no unrelated changes mixed into this PR.

🔄 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/6957 **Author:** [@NikanZeyaei](https://github.com/NikanZeyaei) **Created:** 10/26/2026 **Status:** 🔄 Open **Base:** `main` ← **Head:** `docs/node-admin-token-mtls-update` --- ### 📝 Commits (1) - [`554db3a`](https://github.com/MHSanaei/3x-ui/commit/554db3afcc7716973779dfe7594181fb65759d33) docs(nodes): note node-admin token is required to update mTLS nodes ### 📊 Changes **18 files changed** (+47 additions, -18 deletions) <details> <summary>View changed files</summary> 📝 `docs/content/docs/en/operations/multi-node.mdx` (+9 -1) 📝 `docs/content/docs/fa/operations/multi-node.mdx` (+9 -1) 📝 `docs/content/docs/ru/operations/multi-node.mdx` (+10 -1) 📝 `docs/content/docs/zh/operations/multi-node.mdx` (+5 -1) 📝 `internal/web/translation/ar-EG.json` (+1 -1) 📝 `internal/web/translation/en-US.json` (+1 -1) 📝 `internal/web/translation/es-ES.json` (+1 -1) 📝 `internal/web/translation/fa-IR.json` (+1 -1) 📝 `internal/web/translation/id-ID.json` (+1 -1) 📝 `internal/web/translation/ja-JP.json` (+1 -1) 📝 `internal/web/translation/pt-BR.json` (+1 -1) 📝 `internal/web/translation/ru-RU.json` (+1 -1) 📝 `internal/web/translation/sk-SK.json` (+1 -1) 📝 `internal/web/translation/tr-TR.json` (+1 -1) 📝 `internal/web/translation/uk-UA.json` (+1 -1) 📝 `internal/web/translation/vi-VN.json` (+1 -1) 📝 `internal/web/translation/zh-CN.json` (+1 -1) 📝 `internal/web/translation/zh-TW.json` (+1 -1) </details> ### 📄 Description ## Summary Document that "Update panel" on a node connected over mTLS still needs an API token with the `node-admin` scope, in the multi-node guide (en/zh/ru/fa) and in the node form's mTLS hint (all 14 locales). ## Why A master reaching a node over mTLS with no bearer token is treated as `node-sync`, which cannot call `/server/updatePanel`, so Update panel fails with `this API token is not permitted to access this endpoint` (HTTP 403). This is intentional (a8d0700b, #6666), but the guide said the API token is "not needed in mTLS mode". Refs #6953 ## Type of change - [ ] Bug fix - [ ] New feature - [ ] Refactoring (no behavior change) - [x] Documentation - [ ] Tests only - [ ] Build / CI / tooling - [ ] Other ## Areas affected - [x] Frontend (UI / panel pages) - [ ] Backend (API endpoints, login, settings) - [ ] Xray config generation - [ ] Subscription (share links / Clash / JSON) - [ ] Statistics / traffic counters - [ ] Database / migrations - [ ] Install / upgrade script - [ ] Docker image - [x] Multi-node (sub-nodes) - [ ] Telegram bot ## How was this tested? No logic changed, so no new tests apply; the existing `TestCheckAPIAuth_AcceptsVerifiedClientCert` and `TestPanelUpdateRequiresNodeAdminScope` already pin the 403. - `cd frontend && npx vitest run src/test/i18n-dead-keys.test.ts` passes (the `mtlsFormHint` key is only reworded, not added). - All 14 translation JSON files parse. - `make gen` leaves `frontend/src/generated` and `frontend/public/openapi.json` clean. Non-English wording is machine-assisted and has not had native-speaker review. ## Screenshots / recordings N/A (one sentence appended to an existing alert). ## Breaking changes None. ## Checklist - [ ] I tested the change locally and confirmed the described behavior. - [ ] I added or updated tests for the new behavior (when applicable). - [ ] `go build ./...` and the test suite pass locally. - [ ] For frontend changes: `npm run lint`, `npm run typecheck`, and `npm run build` pass. - [x] I updated the Wiki / README / API docs if user-facing behavior changed. - [x] My commits follow the project's existing message style. - [x] I have no unrelated changes mixed into this PR. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
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#6542
No description provided.