Add a note in make-extend-schema-plugin docs - JS doesn't bypass security.

オープン
#101 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

評価

難易度
1/5
見積もり時間
1時間未満
初心者へのやさしさ
45/100
issue の種類
ドキュメント
明瞭さ
おおむね明確
活発さ
停滞
技術スタック
javascript

調査の方向性

make-extend-schema-plugin のドキュメントを読み、schema extensions と security を扱っているセクションを見つけてください。JavaScript はデータベースのセキュリティを回避するものではなく、このユースケースには小さな security definer function が必要であることを説明する注記を追加してください。register mutation のシナリオがガイダンスで明確に扱われていれば完了です。

索引モデルが issue の本文から書いたものです。

説明

See discord chat

"Hi, I'm trying to implement a register form, users should only can see their user by calling userById() query.

but in my custom mutation registerUser I need to know if user already registered or not.
default-role states:

So the default_role should have restricted privileges to only your data that is publicly accessible.

as my users table is not public, how can I implimnet my mutation?"

"The JS is not permitted to bypass the security (that's why PostGraphile can be so secure); so you'll need to call a small security definer function from your schema extension."

主要言語
SCSS
スター
27
フォーク
124
PR マージ指標
30日以内にマージされた PR はありません

環境構築

  • Dockerfile・Docker Compose ファイルなし
  • プルリクエストのテンプレートあり
  • コントリビューションガイドなし

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

graphile/graphile.github.io のほかの issue

graphile/graphile.github.io の issue をすべて見る

似ている issue

Documentation の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。