> 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 ワークスペース** 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/) 次の 2 つの条件がどちらも真である場合にのみ、バイパスすることを推奨します:
    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.
