> For the complete documentation index, see [llms.txt](https://help.aikido.dev/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://help.aikido.dev/docs/docs-ja/kdosukyan/miscellaneous/allowing-ip-addresses-for-code-container-scanning.md).

# コードおよびコンテナーのスキャンでIPアドレスを許可する

Git プロバイダーがコードへのアクセスを特定の固定 IP アドレスのみに許可している場合、スキャンを開始する前に、コードスキャン用の Aikido の固定 IP アドレスを許可リストに追加する必要があります。

## どの IP を許可リストに追加すべきですか？

コードおよびコンテナスキャンのトラフィックは、次のリージョンから送信されます： **お使いの Aikido ワークスペースが** がホストされているリージョンから送信され、Git プロバイダーやレジストリが稼働しているリージョンからではありません。Aikido にログインする際に使用する URL を確認し、そのリージョンの IP を許可リストに追加してください：

| Aikido の URL                                   | リージョン | IP リスト          |
| ---------------------------------------------- | ----- | --------------- |
| [app.aikido.dev](https://app.aikido.dev)       | EU    | EU ベースの IP アドレス |
| [app.us.aikido.dev](https://app.us.aikido.dev) | US    | US ベースの IP アドレス |
| [app.au.aikido.dev](https://app.au.aikido.dev) | AU    | AU ベースの IP アドレス |
| [app.me.aikido.dev](https://app.me.aikido.dev) | ME    | ME ベースの IP アドレス |

{% hint style="warning" %}
でログインすると `app.aikido.dev`、スキャンでは **EU** IP は、Git プロバイダーやレジストリが米国にホストされている場合でも同様です。その場合、米国の IP のみを許可リストに追加すると、スキャンは失敗します。
{% endhint %}

## IP アドレス

### EU ベースの IP アドレス（`app.aikido.dev`)

* 52.214.244.18
* 18.202.209.180
* 52.50.198.227
* 52.51.98.186

### US ベースの IP アドレス（`app.us.aikido.dev`)

* 3.211.221.73
* 54.163.131.24
* 54.225.143.47

### ME ベースの IP アドレス（`app.me.aikido.dev`)

* 3.29.13.194
* 40.172.18.244
* 40.172.67.79

### AU ベースの IP アドレス（`app.au.aikido.dev`)

* 3.24.60.82
* 52.65.15.49

開放する必要があるポートは、少なくともポート **443** HTTPS 用です。Docker コンテナレジストリでは、追加のポートが必要になる場合があります。たとえば、GitLab Container Registry ではポート **4567** を開放しておく必要があります。

IP を追加したら、リポジトリを再スキャンして接続を確認してください。

サードパーティプロバイダーで IP アドレスをホワイトリストに登録する方法については、次のリソースを参照してください:

* [Cloudflare WAF](https://developers.cloudflare.com/waf/custom-rules/use-cases/allow-traffic-from-ips-in-allowlist/)
  * Cloudflare Turnstile は、特定のクライアント IP アドレスの許可リスト登録をサポートしていません。必要であれば [Aikido のスキャン トラフィックに対して Turnstile をバイパスするには、アプリケーションコードで行う必要があります。](https://developers.cloudflare.com/turnstile/tutorials/conditionally-enforcing-turnstile/) 両方の条件が真のときのみバイパスすることを推奨します:
    1. リクエストの発信元が Aikido の IP 範囲である
    2. リクエストに次が含まれている `aikido` 上記で説明したヘッダー内の User Agent
* [Azure WAF](https://learn.microsoft.com/en-us/azure/web-application-firewall/ag/custom-waf-rules-overview)
* [AWS WAF](https://docs.aws.amazon.com/waf/latest/developerguide/waf-rule-statement-type-ipset-match.html).
  * Application Load Balancer または CloudFront の背後にある WAF では、 [WAF は最後の IP アドレスを確認する必要があります: `X-Forwarded-For` ヘッダー](https://docs.aws.amazon.com/waf/latest/developerguide/waf-rule-statement-forwarded-ip-address.html).
* [Vercel WAF](https://vercel.com/docs/vercel-firewall/vercel-waf/custom-rules)
  * 次を使用してください: [「bypass」アクション](https://vercel.com/docs/vercel-firewall/firewall-concepts#bypass) 信頼済み IP 向け

{% hint style="info" %}
[IP アドレスの一覧は JSON 配列としても利用できます](https://aikido.help/ips/)
{% endhint %}


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://help.aikido.dev/docs/docs-ja/kdosukyan/miscellaneous/allowing-ip-addresses-for-code-container-scanning.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
