<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>yigarashi</author_name>
  <author_url>https://blog.hatena.ne.jp/yigarashi/</author_url>
  <blog_title>yigarashiのブログ</blog_title>
  <blog_url>https://yigarashi.hatenablog.com/</blog_url>
  <categories>
  </categories>
  <description>実サービスで GraphQL API をインターネットに公開する際は、悪意あるクエリに対する防衛が欠かせません。この記事における「悪意あるクエリ」とはサービスに意図的に負荷をかけるクエリのことです。GraphQL では 、木構造や再帰的な構造を利用して、一回のクエリで容易に数百万・数千万件のデータを取得することができます。そのようなクエリを実行してしまうと、アプリケーションサーバーや、その後ろにいる別のサービスに甚大な負荷がかかります。これは攻撃者からしてみれば恰好の的で、なんらか対策を講じる必要があります。 幸いこうした問題はよく知られており、クエリを静的に解析するライブラリがいくつか存在し…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fyigarashi.hatenablog.com%2Fentry%2Fgraphql-query-analysis&quot; title=&quot;GraphQL API を悪意あるクエリから守る手法 - yigarashiのブログ&quot; class=&quot;embed-card embed-blogcard&quot; scrolling=&quot;no&quot; frameborder=&quot;0&quot; style=&quot;display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;&quot;&gt;&lt;/iframe&gt;</html>
  <image_url></image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2020-05-07 09:30:00</published>
  <title>GraphQL API を悪意あるクエリから守る手法</title>
  <type>rich</type>
  <url>https://yigarashi.hatenablog.com/entry/graphql-query-analysis</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
