> 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.
