Azure / Azure/data-api-builder

[Enhancement] : Allow role level query depth limits

未关闭
#2,256 1 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
config enhancement
主要语言
C#
星标
1.5k
派生
372
平均合并
3 天 22 小时
30 天内合并 PR
9

描述

With this feature https://github.com/Azure/data-api-builder/issues/1577 coming in place, we should also have a way to define this at role level.

"runtime": {
```
"rest": {
"enabled": false,
"path": "/api",
"request-body-strict": true
},
"graphql": {
"enabled": true,
"path": "/graphql",
"allow-introspection": true
"depth-limit": 1
},
```

and the above configuration should also be applicable to specific role.

```
"permissions": [
{
"role": "anonymous",
"depth-limit": 2
"actions": [
{
"action": "*"
}
]
}
]
```

贡献指南

打开贡献指南

调研方向

首先查看 issue 1577 以及此处描述的现有 runtime GraphQL 和权限配置。确定深度限制应如何在角色级别表示和应用,包括它与 runtime 设置的关系。完成的标准是:角色可以定义自己的查询深度限制,并且配置会经过验证且得到遵循。

由索引模型根据 Issue 内容生成。

评估

技术栈
csharp, graphql
领域
api, authorization
Issue 类型
功能
难度
4/5
预计耗时
3-5 天
活跃度
停滞
描述清晰度
基本清楚
新手友好度
35/100

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。