Vault Secretsのロゴ

Vault Secrets

組織
vstorm-co
vault-secrets

Store, read or rotate a credential — a provider API key, a channel bot token, an MCP token, a third-party service key — or add a new secret kind. Use whenever a change touches a credential at rest, whenever something needs to be encrypted, and whenever reviewing code that could leak a plaintext key into a response, a log line or an audit entry. Everything seals through app/core/vault.py; there is deliberately no second mechanism.

Add to TypingMind

概要

公開者vstorm-co
リポジトリagenticos
スキル名vault-secrets
スター
137
フォーク
27
同梱ファイル
指示のみ
ライセンスApache-2.0
リンク
  • Markdown形式の指示

    モデルが必要に応じて読み込むSKILL.mdファイルです。関連するリクエストがあったときだけトークンを消費します。

  • どのLLMでも利用可能

    AIスキルはプロバイダー固有のコードではなく、通常のMarkdownなので、GPT、Claude、Gemini、Grok、ローカルモデルで利用できます。

  • 指示だけで完結

    モデルに必要なものはすべて指示に含まれているため、別途同期するファイルはありません。

  • オープンソース

    vstorm-coがGitHubで公開しています。インストールする前にソースを確認してください。

インストール

AIスキル「Vault Secrets」をTypingMindにインストールすれば、どのLLMでも利用できます。SKILL.mdを読み取れる別のAIエージェントに追加することもできます。

1

TypingMindにインストール

TypingMindはGitHubフォルダから直接スキルをインストールします。SKILL.mdを読み取り、リソースファイルをまとめてローカルに保存します。

  1. アプリを開き、「プラグイン」→「スキル」に移動します。
  2. 「GitHubからインストール」を選択します。
  3. 以下のスキルフォルダのURLを貼り付けて確定します。
    https://github.com/vstorm-co/agenticos/tree/main/.claude/skills/vault-secrets
  4. スキルを利用したいチャットごとに、そのスキルを有効にしてください。
「プラグイン」→「スキル」→「スキルを追加」→「GitHubのURLから」を選択し、フォルダのURLを貼り付けて「続行」を押します。
2

別のAIエージェントにインストール

Agent Skills形式を読み取れるAIエージェントなら、このスキルを利用できます。フォルダをそのAIエージェントのスキルディレクトリにコピーしてください。

Claude Code — .claude/skills
git clone --depth 1 https://github.com/vstorm-co/agenticos.git /tmp/agenticos
mkdir -p .claude/skills
cp -r /tmp/agenticos/.claude/skills/vault-secrets .claude/skills/vault-secrets
コピー後、新しいスキルを読み込むためにClaude Codeを再起動してください。

TypingMindで使用

TypingMindのチャットでVault Secretsを有効にするだけで、あとはモデルが対応します。名前と説明がシステムプロンプトに含まれ、関連するリクエストがあると、モデルが指示の全文を自動で読み込みます。手動で呼び出す必要はなく、実際に使用されるまでトークンを消費しません。

関連するリクエストがあるとすぐに、モデルが自動的にVault Secretsを読み込みます。

どのAIモデルでも利用可能

AIスキルはプロバイダー固有のコードではなく、通常のMarkdownで書かれた指示です。そのため、Vault Secretsは作成時に想定されたモデルに縛られません。TypingMindに一度インストールすれば、ご自身のAPIキーを使って、GPT-5、Claude、Gemini、Grok、DeepSeek、Mistral、Llama、またはご自身で実行するローカルモデルで利用できます。

  • 必要なときだけ読み込み

    システムプロンプトには名前と説明だけが含まれます。関連するリクエストが初めてあったときに指示を取得するため、スキルを使わない間は指示の読み込みにトークンを消費しません。

  • チャットの途中でモデルを切り替え

    スキルはコードではなく指示なので、モデルを切り替えてもそのまま使えます。次のモデルも同じSKILL.mdを読み込みます。

スキルの指示

モデルが読み込むSKILL.mdの内容です。スキルはモデルが従う指示なので、インストールする前に確認してください。

The vault — one mechanism, bound to an owner

Read docs/secrets.md. The module docstrings in app/core/vault.py and app/core/secret_kinds.py carry the reasoning.

The rule

Every provider key, channel bot token, MCP credential and third-party API key seals through app/core/vault.py. There is no second mechanism, and adding one is the mistake this design exists to prevent.

CHANNEL_ENCRYPTION_KEY and the deployment-wide Fernet keys are gone, removed before the migration chain was squashed into 0001_baseline. If you see them referenced anywhere — code, docs, a skill, an .env example — that reference is stale. Three mechanisms used to hold secrets and only one bound a ciphertext to its owner; a Slack token could be copied from one organization's row into another's and it decrypted.

Envelope, and what it buys

Each secret is sealed with its own random data key. That data key is sealed with a key derived from the master key and the scope that owns the secret.

  • A ciphertext cannot move between owners. A row copied from org A into org B fails to unwrap. Tenant isolation here is cryptographic, not a WHERE clause somebody might forget.
  • The master key is rotatable. It never encrypts payloads, only data keys, so rotation re-wraps one small blob per secret. key_version records which master key sealed an envelope — that column is what makes a staged rotation possible.

Scope is an organization, or the member for a personal MCP connection (which has no organization, and whose owner may belong to several).

VAULT_MASTER_KEY, falling back to SECRET_KEY so a fresh checkout runs. An environment validator refuses the default SECRET_KEY outside development.

Kinds

A secret is not always a string, and the kind decides which fields exist: none, api_key, azure_openai, aws_credentials, gcp_service_account.

StorableSecret is what a person can save; SecretValue adds none, which the runtime can hold but nobody can store. That difference keeps "a secret with no value" out of the API schema. The vault refuses to seal an empty value.

Adding a kind means: a new model in secret_kinds.py, a branch in model_resolver._build_provider if a provider needs it, a Builder form field, and a migration only if a stored shape changes. Validate on the way in — the failure mode of a malformed service account is an auth error hours later with nothing pointing back at the paste that caused it.

Four things that must stay true

  1. No API response returns a plaintext. There is no endpoint for it. Plaintext leaves the vault only through the few OrganizationSecretService readers its module docstring lists - resolve_for_bindings for the runner, and narrow ones that hand one value straight to a provider (listing_key, transcription_key, oauth_app). None returns it to a caller who could keep it. Do not add another without that shape.
  2. No log line or audit entry contains one. Every secret-bearing field is a SecretStr, which is what makes the carrying dataclasses mask themselves in a repr — the usual way a key escapes.
  3. No spec carries one. A binding stores secret_id; specs are exported to clients' git repositories.
  4. A capability never learns where its credential came from, and the model never sees it.

tests/api/test_no_secret_escapes.py pins these. If it fails, the leak is real.

Declaring a need, not an instance

A capability declares a SecretRequirement — a kind. Code says "I need an API key"; a binding's secret_id says which one. needs_secret(config) is consulted by publish validation and by the build, so the two cannot disagree.

A secret deleted after publish makes the run refuse, not degrade: a capability whose whole job is calling an authenticated API does not do half of it, and a run that quietly dropped the call would answer as if the API had said no.

Access

secrets:view / secrets:edit (resource permissions, so they carry a scope), mcp:manage, connections:manage. A secret can be shared to one member or agent with a grant. See the permissions-rbac skill.

Test

Cross-tenant unwrap must fail. That is an integration test — a mock cannot tell you the binding holds.

よくある質問

AIスキル「Vault Secrets」では何ができますか?

Store, read or rotate a credential — a provider API key, a channel bot token, an MCP token, a third-party service key — or add a new secret kind. Use whenever a change touches a credential at rest, whenever something needs to be encrypted, and whenever reviewing code that could leak a plaintext key into a response, a log line or an audit entry. Everything seals through app/core/vault.py; there is deliberately no second mechanism.

TypingMindでVault Secretsを使うメリットは何ですか?

一度インストールすれば、どのモデルでも使えるからです。Vault Secretsはプロバイダー固有のコードではなく、通常のMarkdownで記述されているため、同じスキルをGPT-5、Claude、Gemini、Grok、ローカルモデルで利用できます。チャットの途中でモデルを切り替えても、そのまま使い続けられます。TypingMindは自分のAPIキーで動作するため、シート単位のサブスクリプションではなく、プロバイダーに直接料金を支払います。スキルとチャットは自分のストレージに保持されます。

TypingMindにVault Secretsをインストールするにはどうすればよいですか?

TypingMindで「プラグイン」→「スキル」→「GitHubからインストール」を開き、https://github.com/vstorm-co/agenticos/tree/main/.claude/skills/vault-secretsを貼り付けてください。TypingMindがSKILL.mdを読み込み、チャットごとに有効にできるスキルとしてインストールします。

Vault Secretsを使えるAIモデルはどれですか?

TypingMindに接続したどのモデルでも利用できます。AIスキルはプロバイダー固有のコードではなく、通常のMarkdownで書かれた指示です。そのため、GPT、Claude、Gemini、Grok、ローカルモデルのいずれも、リクエストの内容がこのスキルの用途に合ったときに、このスキルを読み込めます。

Vault Secretsで使えるAIモデルの数に制限はありますか?

数に制限はありません。スキルに対応したモデルであれば、GPT、Claude、Gemini、Grok、DeepSeek、Mistral、Llamaなど、どのモデルでもVault Secretsを利用できます。すべてTypingMind上で、自分のAPIキーを使って利用できます。

AIスキル「Vault Secrets」は無料ですか?

はい。vstorm-coがApache-2.0ライセンスのもとでGitHubに公開しています。ご利用のAIプロバイダーに支払うのは、使用したトークンの料金だけです。

AIスキルとは何ですか?

AIスキルは、特定のタスクの実行方法をAIモデルに教える、再利用可能な指示のセットです。オープンなAgent Skills形式に従い、名前と説明を含むSKILL.mdファイルに加え、モデルが必要とするスクリプト、テンプレート、参照ファイルで構成されます。モデルはリクエストがスキルに合致したときだけ指示を読み込むため、インストール済みのスキルも、使うまでは費用がかかりません。

AIスキルは、プラグインやMCPサーバーとどう違いますか?

プラグインやMCPサーバーは、モデルが呼び出せる新しいツールを提供します。ツールとは、どこかで実行され、結果を返すコードです。一方、AIスキルは、タスクへの取り組み方、従うべき手順、望ましい出力の例といった知識や進め方をモデルに伝えます。スキルは通常のMarkdownで記述されているため、サーバー、APIキー、実行環境は不要で、どのモデルでも利用できます。

すべて見る

今すぐ自分専用のAIワークスペースを作成

ニュースレターに登録すると、新機能や今後のプレゼント企画のお知らせが届きます👇