data-api-builder-rls-policies
Choose between DAB database policies and SQL Server Row-Level Security, and wire SESSION_CONTEXT claims for per-row authorization.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Choose between DAB database policies and SQL Server Row-Level Security, and wire SESSION_CONTEXT claims for per-row authorization.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Run SQL Commander as a companion container for browser-based SQL access, with optional Azure Container Apps configuration.
Orchestrate SQL Server and Data API Builder with .NET Aspire for local development, health-aware startup, and dashboard-driven diagnostics.
Add MCP Inspector to .NET Aspire AppHost for local SQL MCP Server validation and tool discovery.
Add SQL Commander to .NET Aspire for lightweight SQL browsing and query execution during local DAB development.
Use SQL Database Projects (.sqlproj) with .NET Aspire for declarative schema deployment via dacpac.
Deploy Data API Builder and SQL MCP Server to Azure App Service for Linux, with or without containers.
| name | data-api-builder-rls-policies |
| description | Choose between DAB database policies and SQL Server Row-Level Security, and wire SESSION_CONTEXT claims for per-row authorization. |
| license | MIT |
policy.database (DAB-generated predicates) and database-native SQL Server RLS.SESSION_CONTEXT.permissions[].actions[].policy.database; uses @item.<field> and @claims.<claim>.CREATE SECURITY POLICY plus inline table-valued predicate function; enforced by SQL for tables/views and SQL objects that query them.sp_set_session_context for authenticated claims when set-session-context is enabled.read, update, or delete queries.eq, ne, gt, ge, lt, le, and, or; use mapped API field names after @item..options.set-session-context: true, read claims with SESSION_CONTEXT(N'<claim>'), and test sp_set_session_context manually.@claims.* values should produce 403.SESSION_CONTEXT.@authorize plus entity permissions.execute; use SQL logic/RLS where supported.@claims; Unauthenticated has no claims.set-session-context disables response caching for that data source.data-api-builder-auth-masterydata-api-builder-authdata-api-builder-config