docs(AppKit): document Files plugin policy API#71
Draft
atilafassina wants to merge 2 commits intomainfrom
Draft
Conversation
Update the Files skill reference for AppKit v0.21.0+ per-volume policy enforcement (PR databricks/appkit#197): - Add Permission Model section explaining the three layers (UC grants, execution identity, file policies) - Add Access Policies section with built-ins, combinators, custom policies, and policy-input types - Fix HTTP Routes intro: routes always run as service principal, user identity comes from x-forwarded-user and is passed to the policy (not asUser(req)) - Reframe Server-Side API: asUser(req) switches policy identity, not UC credentials - Refresh troubleshooting with policy-related errors and the default-publicRead() write-denial gotcha Co-authored-by: Isaac
Align with the jobs.md/lakebase.md style: keep gotchas and idioms in-skill, push encyclopedic reference to `npx @databricks/appkit docs`. - Flatten Access Policies subsections (5 H3s → 0) - Drop Policy inputs types block (duplicate of upstream `## Types`) - Drop standalone SP-bypass snippet (mention inline instead) - Inline Execution defaults table as a single sentence in Server-Side API - Drop full HTTP Routes table; keep the 403/security gotchas - Add `npx @databricks/appkit docs` pointers from each trimmed section (defer-to-docs count: 2 → 5, matching jobs.md) Net effect: 410 → 346 lines (-15%); the policy concepts and HTTP-route execution model stay, the redundant tables go. Co-authored-by: Isaac
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.
Summary
publicRead,allowAll,denyAll), combinators (all,any,not), customFilePolicyshape, exported types, andPolicyDeniedErrorx-forwarded-userand is passed to the policy (not viaasUser(req))asUser(req)is described as switching the policy identity, not the UC credentialspublicRead()default-write-denial gotchaTest plan
python3 scripts/skills.py validatepasses@databricks/appkitv0.31.0 typesThis pull request and its description were written by Isaac.