Idea: let deployments declare loopback trust in __DSH_BOOT__ instead of URL inference #2234
JUANWANG-BUAA
started this conversation in
Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Summary
The web client infers loopback trust from the page URL (
connection.isLoopback), and privileged APIs such assettings.*,credentials.*, andhost.listDirectoryare gated on that check. This makes every remote setup (phone on LAN, public tunnel) fail with 403 unless a plugin rewrites request headers.Proposal
Let the deployment declare trust explicitly in the boot contract instead of inferring it from
location. For example,__DSH_BOOT__(or a profile/config field) could carry a trust declaration such as:loopback(default): current behavior, inferred from the URL.deployment: set by an operator who deliberately exposes the web server behind their own TLS and authentication layer.Why
Host/Originto loopback. That workaround disables the original protection and each plugin must re-implement its own access-control layer to compensate.All reactions