Repository navigation
fix: remove administrative file listing entry points - #54
Merged
Merged
Conversation
Signed-off-by: xiongxz <xiuzhang.xiong@lexmount.com>
Signed-off-by: xiongxz <xiuzhang.xiong@lexmount.com>
xiongxz
commented
Nov 23, 2026
xiongxz
commented
Nov 23, 2026
xiongxz
commented
Nov 23, 2026
xiongxz
commented
Nov 23, 2026
xiongxz
commented
Nov 23, 2026
xiongxz
commented
Nov 23, 2026
xiongxz
commented
Nov 23, 2026
xiongxz
commented
Nov 23, 2026
Signed-off-by: xiongxz <xiuzhang.xiong@lexmount.com>
xiongxz
commented
Nov 23, 2026
xiongxz
commented
Nov 23, 2026
xiongxz
commented
Nov 23, 2026
xiongxz
commented
Nov 23, 2026
xiongxz
commented
Nov 23, 2026
xiongxz
commented
Nov 23, 2026
xiongxz
commented
Nov 23, 2026
xiongxz
commented
Nov 23, 2026
Signed-off-by: xiongxz <xiuzhang.xiong@lexmount.com>
xiongxz
commented
Nov 23, 2026
xiongxz
commented
Nov 23, 2026
xiongxz
commented
Nov 23, 2026
xiongxz
commented
Nov 23, 2026
xiongxz
commented
Nov 23, 2026
xiongxz
commented
Nov 23, 2026
xiongxz
commented
Nov 23, 2026
xiongxz
commented
Nov 23, 2026
xiongxz
commented
Nov 23, 2026
Signed-off-by: xiongxz <xiuzhang.xiong@lexmount.com>
xiongxz
commented
Nov 24, 2026
xiongxz
commented
Nov 24, 2026
xiongxz
commented
Nov 24, 2026
xiongxz
commented
Nov 24, 2026
xiongxz
commented
Nov 24, 2026
xiongxz
commented
Nov 24, 2026
xiongxz
commented
Nov 24, 2026
xiongxz
commented
Nov 24, 2026
xiongxz
commented
Nov 24, 2026
xiongxz
commented
Nov 24, 2026
Signed-off-by: xiongxz <xiuzhang.xiong@lexmount.com>
xiongxz
commented
Nov 24, 2026
xiongxz
commented
Nov 24, 2026
xiongxz
commented
Nov 24, 2026
xiongxz
commented
Nov 24, 2026
xiongxz
commented
Nov 24, 2026
xiongxz
commented
Nov 24, 2026
xiongxz
commented
Nov 24, 2026
xiongxz
commented
Nov 24, 2026
xiongxz
commented
Nov 24, 2026
Signed-off-by: xiongxz <xiuzhang.xiong@lexmount.com>
Signed-off-by: xiongxz <xiuzhang.xiong@lexmount.com>
Merged
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Administrators could enumerate unrelated sites through the Sites page, authorization search, tenant details and global audit responses. This removes those discovery paths and provides audited forms for acting on a site whose address or ID is already known.
/admin/sites/GET /api/admin/sitesGET /api/tenants/:idGlobal audit views expose non-site events and the signed-in administrator's own site actions. Both database stores default to
scope: "visible"; omitted scope/viewer values cannot expose all history. Full site history requires an explicitallscope after authorization, including the owner's existing activity endpoint. A site-ID audit query requires a valid reason and recordssite.audit.readbefore returning history. Unknown IDs, slugs and sites without a valid reason receive the same 404 response, preventing existence probing or silent partial results. Existing users and the defined system targets are recognized independently of ID prefixes. Maintenance does not replay earlier site queries or reasons.Known-site forms work with email administrator sessions when
PUBLISH_API_TOKENis unset; personal tokens do not inherit these rights. Lookup returns metadata without content or credentials. Deep paths, app-relative paths under a mount and/v/<token>links identify one site; collections require an individual site's address. Full URLs must match the origin/mount, and decoded paths usesafeRelativePath. Revoked/expired share links intentionally remain historical report identifiers under independent management authorization and auditing; they never restore share access.Authorization exact lookup gives the same 404 for unknown, deleted, disabled-workspace and unauthorized targets. Elevated management/operator lookups record
site.management; ordinary owner/site-admin lookups recordsite.lookup. Group site-admin grants still authorize exact management but do not populate the selector. Editing an independent lookup preserves the dropdown selection.The console uses
/api/admin/sites/by-id/<site-id>and its/ownerroute; legacy slug APIs share the handlers. All three mutation handlers bound request bodies to 4096 bytes. Reasons are normalized and validated before changing state, including NUL rejection; restore/undelete retain optional reasons and shared administrative validation preserves readable error messages. Assignment records ownership and its reason atomically, reserves space for the recipient suffix within 500 characters, keeps the stored reason on one line and rejects excess text without truncation.Compatibility changes are documented in CHANGELOG, SELFHOST and the MCP operator guide:
{ email, reason }; email-only scripts receive 400.404 {error: "Site not found"}, replacing 400 withNo such site(take-down/delete) orThe site is not deleted(undelete). Existing-site state errors remain 400.Aggregate statistics and stored audit records remain intact. Obsolete catalog helpers, styles, translations and the unused administrative download component mode are removed.
Validation on
4153aa49: