Conversation
- fix SQL GRANT syntax: READ_VOLUME → READ VOLUME - fix Streamlit snippet: use DATABRICKS_WAREHOUSE_ID instead of nonexistent DATABRICKS_HTTP_PATH - restore deployment safety warning (USER CONSENT REQUIRED) - use jsonc tag for Next.js snippet with comments
calreynolds
left a comment
There was a problem hiding this comment.
Light feedback in Slack -- otherwise awesome!!
| # 2. deploy code | ||
| databricks bundle deploy -t <TARGET> --profile <PROFILE> |
There was a problem hiding this comment.
databricks apps deploy works too for this I think no?
There was a problem hiding this comment.
Good call — databricks apps deploy in a DABs project directory does validate + bundle deploy + bundle run in one shot. Updated the deployment section to recommend it as Option A.
| ### ⚠️ CRITICAL AGENT BEHAVIOR | ||
| After adding ANY resource to the app, IMMEDIATELY grant the SP access. Do NOT wait for a permission error — do it proactively every time. | ||
|
|
||
| ### How to Grant Permissions |
There was a problem hiding this comment.
do we actually need this? as long as the resource gets added into the app (basically having it declared as a resource in the databricks.yml) once deploy gets done the resource is added to the app, granting the service principal access to it (but maybe I'm missing something)
There was a problem hiding this comment.
You're right — checked the SDK and CLI code: the permission field on app resources is literally "Permission to grant" (SDK godoc), so the backend auto-grants it to the SP on deploy. Removed the manual set-permissions / put-acl commands and replaced the section with a declarative databricks.yml example + default permissions table.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Summary
Adds platform documentation for Databricks Apps, split into two reference pages:
references/platform-guide.md— universal platform rules for ALL apps (AppKit included): SP permissions, resource types & injection, OBO vs SP auth, deployment workflow, runtime environment, compute & limits, HTTP proxy & streaming, common errors.references/other-frameworks.md— non-AppKit framework setup: port/host config,app.yaml/databricks.yml, dependency management, networking/CORS, Streamlit gotchas.SKILL.mdrouting table updated to point AppKit agents at platform-guide.md and non-AppKit agents at other-frameworks.md.Documentation safety checklist
ALL PRIVILEGES, admin tokens, or broad scopes)