Azure / Azure/data-api-builder

[Enhancement] : Allow role level query depth limits

オープン
#2,256 コメント 1 件 リアクション 0 件 担当者 0 名 GitHub で見る
config enhancement
主要言語
C#
スター
1.5k
フォーク
370
平均マージ
3日 22時間
マージ済み PR(30日)
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 を短くまとめたダイジェスト。