Skip to content

docs: queries and stylesheets are deny-by-default for resource access (#59) - #23

Merged
elvogel merged 1 commit into
mainfrom
docs/resource-access
Sep 30, 2026
Merged

elvogel merged 1 commit into
mainfrom
docs/resource-access

Conversation

@elvogel

@elvogel elvogel commented Sep 30, 2026

Copy link
Copy Markdown
Contributor

Documents deny-by-default resource access for caller-supplied queries and stylesheets (phoenixml main a2b9963, #59): a new Resource Access page (what is blocked, server settings, embedded API, errors, constructs currently refused by the REST server), links from Server Mode and Embedded Mode, and a breaking entry in the unreleased release notes. Verified in source at a2b9963.

🤖 Generated with Claude Code

https://claude.ai/code/session_019zMS2EzLV6KZG6ooYco8Uf

… (#59)

phoenixml main a2b9963. Caller-supplied XQuery/XSLT reads stored documents only; files, HTTP,
import locations, xsl:evaluate and external DTDs/entities are denied until the operator lists
directories or origins in PhoenixmlDb:ResourceAccess (servers) or sets
DocumentDatabase.ResourceAccessPolicy (embedded). New Resource Access page with settings,
embedded API, errors and the stylesheet constructs the REST server currently refuses; links
from Server Mode and Embedded Mode; breaking entry in the unreleased release notes.

Facts from the db-engine session, verified at a2b9963 in ResourceAccessPolicy.cs,
ResourceAccessOptions.cs, GuardedFunctions.cs, StylesheetResourceGuard.cs, PolicyHttp.cs and
both servers' startup wiring. Two points follow the source rather than the summary: in XQuery,
doc()/collection() never read files even when allowed, and fn:transform needs Unrestricted.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_019zMS2EzLV6KZG6ooYco8Uf
@elvogel
elvogel merged commit 7dec0f8 into main Sep 30, 2026
2 checks passed
@elvogel
elvogel deleted the docs/resource-access branch September 30, 2026 22:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant