> 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/sonono/private-registries/jfrog-artifactory.md).

# JFrog Artifactory

JFrog Artifactoryを仲介役として設定し、Aikidoのレジストリプロキシ経由でレジストリトラフィックをルーティングします。Artifactoryは公開レジストリではなくAikidoからパッケージを取得するため、チームがインストールするすべてのパッケージがマルウェア、年齢制限、および既知の脆弱性についてチェックされます。

{% stepper %}
{% step %}

### Aikido のプロキシ URL を取得する

移動先 [設定 > レジストリプロキシ](https://app.aikido.dev/issues/fix/extended-lifecycle-support/setup-instructions)、エコシステムを選択してアップストリームプロキシ URL をコピーします

<figure><img src="/files/2182cd5f7e8192bcddbb04f4e6868812d1851b90" alt=""><figcaption></figcaption></figure>
{% endstep %}

{% step %}

### Artifactoryでリモートリポジトリを作成する

1. Artifactoryで、次へ移動します **管理 > リポジトリ**.
2. クリック **新しいリポジトリ** をクリックして、次を選択します: **リモート**.
3. 設定 **パッケージタイプ**
4. リポジトリにキーを付けます。例： `aikido`.
5. 次を設定します。 **URL** フィールドに、ステップ1で取得したAikidoプロキシURLを入力します。
6. リポジトリを保存します。

{% hint style="info" %}
パッケージがAikidoの最新データを反映しない場合は、次を設定します **メタデータキャッシュの有効期間** を次に設定します: `0` をリモートリポジトリ設定で。これにより、Artifactoryはキャッシュされた版を返すのではなく、常にAikidoプロキシから新しいメタデータを取得するようになります。
{% endhint %}
{% endstep %}

{% step %}

### （任意）仮想リポジトリを作成する

ローカルのArtifactoryリポジトリに内部パッケージも保存している場合は、両方を集約する仮想リポジトリを作成します。

1. 移動先 **管理 > リポジトリ > 新しいリポジトリ > 仮想**.
2. 設定 **パッケージタイプ** をリモートリポジトリに一致させる
3. ローカルリポジトリとリモートリポジトリをメンバーとして追加します。
4. 代わりに、パッケージマネージャーを仮想リポジトリのURLに向けます。

これにより、Aikido経由で内部パッケージと外部プロキシ経由のパッケージの両方を提供する、チーム向けの単一のレジストリエンドポイントが得られます。
{% endstep %}

{% step %}

### 開発者マシンをArtifactoryを使用するように設定する

各開発者のパッケージマネージャーをArtifactoryリポジトリに向けます。正確な手順については、JFrogのドキュメントを参照してください。

{% tabs %}
{% tab title="npm" %}
[npmリポジトリ - クライアントを接続する](https://docs.jfrog.com/artifactory/docs/npm-repositories#connect-your-npm-client-to-artifactory)
{% endtab %}

{% tab title="PyPI" %}
[PyPIリポジトリ - クライアントを接続する](https://docs.jfrog.com/artifactory/docs/pypi-repositories#connect-your-pypi-client-to-artifactory)
{% endtab %}

{% tab title="Maven" %}
[Mavenリポジトリ - クライアントを接続する](https://docs.jfrog.com/artifactory/docs/maven-repositories#connect-your-maven-client-to-artifactory)
{% endtab %}
{% endtabs %}
{% endstep %}

{% step %}

### (任意) Device Protection で公開レジストリをブロックする

Artifactoryを導入しても、開発者はパッケージマネージャーを公開レジストリに直接向けることで依然として迂回できます。すべてのトラフィックがプライベートレジストリを通るように強制するには、Aikido Device Protectionを導入してください。

{% content-ref url="/pages/7fa47c5a1ee5b3c664f0ab37ca9a23372513ddeb" %}
[公開パッケージレジストリをブロック](/docs/docs-ja/aikido-device-protection/using-aikido-endpoint/block-public-package-registries.md)
{% endcontent-ref %}
{% endstep %}
{% endstepper %}


---

# 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/sonono/private-registries/jfrog-artifactory.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.
