docs: queries and stylesheets are deny-by-default for resource access (#59) - #23
Merged
Merged
Conversation
… (#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
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.
Documents deny-by-default resource access for caller-supplied queries and stylesheets (phoenixml
maina2b9963, #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