> 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/autofix-to/connect-private-packages/secret-files-private-packages.md).

# シークレットファイル - プライベートパッケージ

Aikido がプライベートパッケージを含む依存関係を更新するには、 **プライベートレジストリへのアクセスが必要です** 正確なロックファイルの更新を生成できるようにするためです。

Kubernetes や Docker のような多くのコンテナベースのシステムでは、 **シークレットファイル** ファイルシステム上にシークレットをマウントできるものです。Aikido ではシークレットファイルを指定でき、暗号化して保存され、ワークフローに注入されます。

Autofix 中、シークレットファイルはファイルシステム上の一時ファイルに書き込まれます。一時ファイルのパスは、指定した環境変数に保存されます。

つまり、当社のシステムが依存関係の脆弱性を検出すると、プライベートレジストリにシームレスに認証し、影響を受けるパッケージを自動的に修正し、ロックファイルを更新できます。その間も認証情報は安全に保たれます。

## Aikido での設定

リポジトリへの書き込みアクセスが設定されたら、以下の手順に従って Aikido がプライベートレジストリに認証できるよう構成できます：

1. AutoFix のアカウント設定ページに移動し、 [こちら](https://app.aikido.dev/issues/fix/settings).
2. 「*レジストリを接続*」すると、以下のモーダルが表示されます

<figure><img src="/files/93d539d9c2979772d40a2c418b778a2cd588532f" alt=""><figcaption></figcaption></figure>

3. 選択すると *「シークレットファイル」* シークレットファイルの内容と、シークレットファイルのパスを読み取るために使用する環境変数の名前を入力できるようになります。

<figure><img src="/files/9879c37213ed50681f9e8bf766eb3b2595d82697" alt=""><figcaption></figcaption></figure>

4. 「Secret Content」と「Environment Variable」を入力し、必要な数だけシークレットファイルを追加してください。


---

# 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/autofix-to/connect-private-packages/secret-files-private-packages.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.
