コンテンツにスキップ
Kong Logo | Kong Docs Logo
  • ドキュメント
    • API仕様を確認する
      View all API Specs すべてのAPI仕様を表示 View all API Specs arrow image
    • ドキュメンテーション
      API Specs
      Kong Gateway
      軽量、高速、柔軟なクラウドネイティブAPIゲートウェイ
      Kong Konnect
      SaaSのエンドツーエンド接続のための単一プラットフォーム
      Kong AI Gateway
      GenAI インフラストラクチャ向けマルチ LLM AI Gateway
      Kong Mesh
      Kuma と Envoy をベースにしたエンタープライズサービスメッシュ
      decK
      Kongの構成を宣言型で管理する上で役立ちます
      Kong Ingress Controller
      Kubernetesクラスタ内で動作し、Kongをプロキシトラフィックに設定する
      Kong Gateway Operator
      YAMLマニフェストを使用してKubernetes上のKongデプロイメントを管理する
      Insomnia
      コラボレーティブAPI開発プラットフォーム
  • Plugin Hub
    • Plugin Hubを探索する
      View all plugins すべてのプラグインを表示 View all plugins arrow image
    • 機能性 すべて表示 View all arrow image
      すべてのプラグインを表示
      AI's icon
      AI
      マルチ LLM AI Gatewayプラグインを使用してAIトラフィックを管理、保護、制御する
      認証's icon
      認証
      認証レイヤーでサービスを保護する
      セキュリティ's icon
      セキュリティ
      追加のセキュリティレイヤーでサービスを保護する
      トラフィック制御's icon
      トラフィック制御
      インバウンドおよびアウトバウンドAPIトラフィックの管理、スロットル、制限
      サーバーレス's icon
      サーバーレス
      他のプラグインと組み合わせてサーバーレス関数を呼び出します
      分析と監視's icon
      分析と監視
      APIとマイクロサービストラフィックを視覚化、検査、監視
      変革's icon
      変革
      Kongでリクエストとレスポンスをその場で変換
      ログ記録's icon
      ログ記録
      インフラストラクチャに最適なトランスポートを使用して、リクエストと応答データをログに記録します
  • サポート
  • コミュニティ
  • Kongアカデミー
デモを見る 無料トライアルを開始
Kong Gateway
3.8.x
  • Home icon
  • Kong Gateway
  • Kong Enterprise
  • Secrets Management
  • シークレット管理
report-issue問題を報告する
  • Kong Gateway
  • Kong Konnect
  • Kong Mesh
  • Kong AI Gateway
  • Plugin Hub
  • decK
  • Kong Ingress Controller
  • Kong Gateway Operator
  • Insomnia
  • Kuma

  • ドキュメント投稿ガイドライン
  • 3.10.x (latest)
  • 3.9.x
  • 3.8.x
  • 3.7.x
  • 3.6.x
  • 3.5.x
  • 3.4.x (LTS)
  • 3.3.x
  • 2.8.x (LTS)
  • アーカイブ (2.6より前)
  • はじめに
    • Kong Gatewayの概要
    • サポート
      • バージョンサポートポリシー
      • サードパーティの依存関係
      • ブラウザサポート
      • 脆弱性パッチ適用プロセス
      • ソフトウェア部品表
    • 安定性
    • リリースノート
    • 破壊的な変更
      • Kong Gateway 3.8.x
      • Kong Gateway 3.7.x
      • Kong Gateway 3.6.x
      • Kong Gateway 3.5.x
      • Kong Gateway 3.4.x
      • Kong Gateway 3.3.x
      • Kong Gateway 3.2.x
      • Kong Gateway 3.1.x
      • Kong Gateway 3.0.x
      • Kong Gateway 2.8.x 以前
    • キーコンセプト
      • サービス
      • ルート
      • コンシューマ
      • アップストリーム
      • プラグイン
      • コンシューマグループ
    • How Kong Works
      • ルーティングトラフィック
      • ロードバランシング
      • ヘルスチェックとサーキットブレーカ
    • 用語集
  • Kong を始めよう
    • Kong をゲットする
    • サービスとルート
    • レート制限
    • プロキシキャッシュ
    • キー認証
    • ロードバランシング
  • コングをインストールする
    • 概要
    • Kubernetes
      • 概要
      • Kong Gatewayをインストール
      • Admin API
      • Kong Manager をインストールする
    • Docker
      • docker run を使用する
      • 独自の Docker イメージをビルドする
    • Linux
      • Amazon Linux
      • Debian
      • Red Hat
      • Ubuntu
    • インストール後
      • データストアを設定
      • エンタープライズライセンスを適用
      • Kong Managerを有効にする
  • Kong in production
    • 展開のトポロジーズ
      • 概要
      • ハイブリッドモード
        • 概要
        • ハイブリッドモードでKong Gatewayをデプロイする
      • DB-lessデプロイ
      • 繁体字版
    • Running Kong
      • non-rootユーザーとしてKongを実行しています
      • 管理者 API の保護
      • systemdの使用
    • アクセスコントロール
      • コングゲートウェイを安全に開始
      • プログラムによる管理者の作成
      • RBAC を有効にする
    • ライセンス
      • 概要
      • ライセンスをダウンロード
      • エンタープライズライセンスのデプロイ
      • ライセンスAPIの使用
      • ライセンス使用状況をモニターする
    • ネットワーク
      • デフォルトのポート
      • DNSに関する考察
      • ネットワークとファイアウォール
      • CP/DP Communication through a Forward Proxy
      • PostgreSQL TLS
        • PostgreSQL TLS の設定
        • PostgreSQL TLS のトラブルシューティング
    • Kongの設定ファイル
    • 環境変数
    • KongからウェブサイトとAPIを提供する
    • モニタリング
      • 概要
      • Prometheus
      • StatsD
      • Datadog
      • ヘルスチェックプローブ
      • AIメトリクスを公開してグラフ
    • トレース
      • 概要
      • カスタム・トレース・エクスポーターの作成
      • トレースAPIリファレンス
    • リソースサイズのガイドライン
    • セキュリティアップデートプロセス
    • ブルー・グリーンの展開
    • カナリアのデプロイ
    • クラスタリングリファレンス
    • パフォーマンス
      • パフォーマンステストのベンチマーク
      • パフォーマンスのベンチマークを作成
      • Brotli圧縮によるパフォーマンスの向上
    • ロギングとデバッグ
      • ログの参照
      • ダイナミックログレベルの更新
      • ゲートウェイログをカスタマイズ
      • デバッグリクエスト
      • AIゲートウェイ分析
    • gRPCサービスの設定
    • 式ルータを使用
    • アップグレードと移行
      • 香港ゲートウェイ3.x.xをアップグレードする
      • バックアップと復元
      • アップグレードの戦略
        • デュアルクラスターのアップグレード
        • インプレイスアップグレード
        • 青緑色のアップグレード
        • ローリングアップグレード
      • 2.8 LTSから3.4 LTSにアップグレード
      • OSSからエンタープライズへ移行
      • 移行ガイドライン Cassandra から PostgreSQL
      • 新しい DNS クライアントに移行
      • 破壊的な変更
  • Kong Gateway Enterprise
    • 概要
    • シークレット管理
      • 概要
      • はじめに
      • ローテーション
      • 高度な使い方
      • バックエンドの設定
        • 概要
        • 環境変数
        • AWS シークレットマネージャー
        • Azure Key Vault
        • Google Cloud Secret Manager
        • HashiCorp Vault
      • How-To
        • AWS シークレットマネージャでデータベースを保護する
      • 参照フォーマット
    • 動的なプラグインの順序
      • 概要
      • 動的なプラグインの順序を始めましょう
    • 監査ログ
    • キーリングとデータ暗号化
    • ワークスペース
    • コンシューマグループ
    • イベントフック
    • データ プレーンレジリエンスの設定
    • 制御機の停止管理について
    • FIPS 140-2
      • 概要
      • FIPS 準拠パッケージをインストール
      • FIPS 140-2 準拠プラグイン
    • AWS IAMでKong Gateway Amazon RDSデータベースを認証する
    • 署名された香港の画像の署名を確認します
    • 署名された香港画像のビルド証明書を確認する
  • Kong AI Gateway
    • 概要
    • AI ゲートウェイを始めよう
    • LLM プロバイダー統合ガイド
      • OpenAI
      • Cohere
      • Azure
      • Anthropic
      • ミストラル
      • Llama2
    • AIプラットフォーム統合ガイド
      • Gemini
      • Amazon Bedrock
    • AIゲートウェイ分析
    • AI指標を公開・グラフ
    • AI Gateway plugins
  • Kong Manager
    • 概要
    • Kong Managerを有効にする
    • Kong Manager を始めましょう
      • サービスとルート
      • レート制限
      • プロキシキャッシュ
      • コンシューマーとの認証
      • 負荷バランス
    • 認証と承認
      • 概要
      • スーパー管理者を作成
      • ワークスペースとチーム
      • パスワードとRBACトークンをリセット
      • ベーシック認証
      • LDAP
        • LDAP の設定
        • LDAP サービス ディレクトリ マッピング
      • OIDC
        • OIDCの設定
        • OIDC 認証済みグループマッピング
        • 以前の設定から移行
      • セッション
      • RBAC
        • 概要
        • RBACを有効にする
        • ロールと権限を追加
        • ユーザーを作成
        • 管理者を作成
    • ネットワーク設定
    • ワークスペース
    • 顧客グループを作成
    • メールを送信中
    • トラブルシューティング
  • カスタムプラグインを開発
    • 概要
    • はじめに
      • はじめに
      • プラグインプロジェクトの設定
      • プラグインテストを追加
      • プラグイン設定を追加
      • 外部サービスを消費する
      • プラグインをデプロイ
    • ファイル構造
    • カスタムロジックの実装
    • プラグインの設定
    • データストアへのアクセス
    • カスタムエンティティの保存
    • カスタムエンティティをキャッシュ中
    • 管理者 API の拡張
    • テストを書く
    • 設置と配布
    • プロキシ-ワズムフィルター
      • プロキシワズムフィルタを作成
      • プロキシ-ワズムフィルタの設定
    • プラグイン開発キット
      • 概要
      • kong.client
      • kong.client.tls
      • kong.cluster
      • kong.ctx
      • kong.ip
      • kong.jwe
      • kong.log
      • kong.nginx
      • kong.node
      • kong.plugin
      • kong.request
      • kong.response
      • kong.router
      • kong.service
      • kong.service.request
      • kong.service.response
      • kong.table
      • kong.telemetry.log
      • kong.tracing
      • kong.vault
      • kong.websocket.client
      • kong.websocket.upstream
    • 他の言語でのプラグイン
      • 移動
      • Javascript
      • Python
      • コンテナでのプラグインの実行
      • 外部プラグインのパフォーマンス
  • Kong Plugins
    • 概要
    • 認証リファレンス
    • 複数の認証プラグインを許可
    • プラグインのキュー
      • 概要
      • プラグインキューイングリファレンス
  • Admin API
    • 概要
    • 宣言設定
    • Enterprise API
      • 情報ルート
      • 健康ルート
      • タグ
      • デバッグルート
      • サービス
      • ルート
      • コンシューマ
      • プラグイン
      • 証明書
      • CA 証明書
      • SNI
      • アップストリーム
      • ターゲット
      • ヴォールト
      • キー
      • チェーンをフィルター
      • ライセンス
      • ワークスペース
      • RBAC
      • 管理者
      • コンシューマグループ
      • イベントフック
      • キーリングとデータ暗号化
      • 監査ログ
      • Status API
    • オープンソースAPI
  • 参照
    • kong.conf
    • Nginx ディレクティブの注入中
    • CLI
    • キー管理
    • 表現の言語
      • 概要
      • 言語リファレンス
      • パフォーマンスの最適化
    • ライブラリのレート制限
    • WebAssembly
    • FAQ
enterprise-switcher-icon 次に切り替える: OSS
On this pageOn this page
  • 参照可能な値
  • シークレットとして保存できるもの
    • 参照可能なプラグインフィールド
  • サポートされているバックエンド
  • 使用開始
旧バージョンのドキュメントを参照しています。 最新のドキュメントはこちらをご参照ください。

シークレット管理

シークレットとは、APIゲートウェイの操作に必要な機密情報です。シークレットはプラグインで使用される可能性のあるコアKong Gateway構成の一部、またはゲートウェイによって処理されるAPIに関連する構成の一部である可能性があります。

Kong Gatewayで使用される最も一般的なシークレットのタイプには以下のものが含まれます。

  • PostgreSQL および Redis で使用するデータストアのユーザー名とパスワード
  • プライベートX.509証明書
  • API キー
  • 一般的に認証、ハッシュ化、署名、暗号化に使用される機密性の高いプラグイン構成フィールド。

Kong Gateway では、特定の値を vault に保存します。 機密情報をシークレットとして保存することで、kong.conf、 宣言型構成ファイル、ログ、または Kong Manager UI など、プラットフォーム全体でプレーンテキストで 表示されないようにします。代わりに、 vault リファレンスを使用して各シークレットを参照することができます。

たとえば、次のリファレンスは、環境変数MY_SECRET_POSTGRES_PASSWORDを解決します。

{vault://env/my-secret-postgres-password}

上記の方法でシークレット管理が一元化されます。

参照可能な値

シークレットリファレンスは文字列値を指します。他のデータタイプは現在サポートされていません。

Vaultバックエンドでは、関連するシークレットをオブジェクト内に複数保存することができますが、参照が指すのは常に文字列値に変換されるキーです。 たとえば、次の参照があるとします。

{vault://hcv/pg/username}

HashiCorp Vault内のpgと呼ばれるシークレットオブジェクトを指し、次の値を返す可能性があります。

{
  "username": "john",
  "password": "doe"
}

Kongはペイロードを受信し、{vault://hcv/pg/username}の秘密参照の"john"の "username"値を抽出します。

識別子「pg/username」を単一の値とするシークレットがある場合、参照に/をサフィックスとして追加し、Vault APIに適切に送信されるようにします。

{vault://hcv/pg/username/}

シークレットとして保存できるもの

ほとんどのKongの構成の値は、pg_userやpg_passwordなどのシークレットとして保存できます。

デフォルトの証明書をVaultに保存することもできます。例:

SSL_CERT=$(cat cluster.crt) \
SSL_CERT_KEY=$(cat cluster.key) \
KONG_SSL_CERT={vault://env/ssl-cert} \
KONG_SSL_CERT_KEY={vault://env/ssl-cert-key} \
kong prepare

Kongライセンスは通常 KONG_LICENSE_DATA環境変数で構成され、シークレットとして保存可能です。

Kong Admin API の証明書オブジェクトはシークレットとして保存できます。

参照可能なプラグインフィールド

一部のプラグインには、Vaultバックエンドにシークレットとして保存できる フィールドがあります。これらのフィールドはreferenceableとラベル付けされています。

以下のプラグインは特定のフィールドに対して Vault リファレンスをサポートしています。 各フィールドの詳細については、各プラグインのドキュメントを参照してください。

Plugin Referenceable fields
ACME config.account_email config.eab_kid config.eab_hmac_key config.storage_config.redis.username config.storage_config.redis.password config.storage_config.consul.token config.storage_config.vault.token
AI Azure Content Safety config.content_safety_url config.content_safety_key
AI Proxy config.auth.header_name config.auth.header_value config.auth.param_name config.auth.param_value config.auth.azure_client_id config.auth.azure_client_secret config.auth.azure_tenant_id config.auth.gcp_service_account_json config.auth.aws_access_key_id config.auth.aws_secret_access_key
AI Proxy Advanced config.embeddings.auth.header_name config.embeddings.auth.header_value config.embeddings.auth.param_name config.embeddings.auth.param_value config.embeddings.auth.azure_client_id config.embeddings.auth.azure_client_secret config.embeddings.auth.azure_tenant_id config.embeddings.auth.gcp_service_account_json config.embeddings.auth.aws_access_key_id config.embeddings.auth.aws_secret_access_key config.vectordb.redis.username config.vectordb.redis.password config.vectordb.redis.sentinel_username config.vectordb.redis.sentinel_password config.targets.auth.header_name config.targets.auth.header_value config.targets.auth.param_name config.targets.auth.param_value config.targets.auth.azure_client_id config.targets.auth.azure_client_secret config.targets.auth.azure_tenant_id config.targets.auth.gcp_service_account_json config.targets.auth.aws_access_key_id config.targets.auth.aws_secret_access_key
AI Rate Limiting Advanced config.redis.username config.redis.password config.redis.sentinel_username config.redis.sentinel_password
AI Request Transformer config.llm.auth.header_name config.llm.auth.header_value config.llm.auth.param_name config.llm.auth.param_value config.llm.auth.azure_client_id config.llm.auth.azure_client_secret config.llm.auth.azure_tenant_id config.llm.auth.gcp_service_account_json config.llm.auth.aws_access_key_id config.llm.auth.aws_secret_access_key
AI Response Transformer config.llm.auth.header_name config.llm.auth.header_value config.llm.auth.param_name config.llm.auth.param_value config.llm.auth.azure_client_id config.llm.auth.azure_client_secret config.llm.auth.azure_tenant_id config.llm.auth.gcp_service_account_json config.llm.auth.aws_access_key_id config.llm.auth.aws_secret_access_key
AI Semantic Cache config.embeddings.auth.header_name config.embeddings.auth.header_value config.embeddings.auth.param_name config.embeddings.auth.param_value config.embeddings.auth.azure_client_id config.embeddings.auth.azure_client_secret config.embeddings.auth.azure_tenant_id config.embeddings.auth.gcp_service_account_json config.embeddings.auth.aws_access_key_id config.embeddings.auth.aws_secret_access_key config.vectordb.redis.username config.vectordb.redis.password config.vectordb.redis.sentinel_username config.vectordb.redis.sentinel_password
AI Semantic Prompt Guard config.embeddings.auth.header_name config.embeddings.auth.header_value config.embeddings.auth.param_name config.embeddings.auth.param_value config.embeddings.auth.azure_client_id config.embeddings.auth.azure_client_secret config.embeddings.auth.azure_tenant_id config.embeddings.auth.gcp_service_account_json config.embeddings.auth.aws_access_key_id config.embeddings.auth.aws_secret_access_key config.vectordb.redis.username config.vectordb.redis.password config.vectordb.redis.sentinel_username config.vectordb.redis.sentinel_password
AWS Lambda config.aws_key config.aws_secret config.aws_assume_role_arn
Azure Functions config.apikey config.clientid
Confluent config.cluster_api_key config.cluster_api_secret config.confluent_cloud_api_key config.confluent_cloud_api_secret
Datadog config.host
Forward Proxy Advanced config.auth_username config.auth_password
GraphQL Proxy Caching Advanced config.redis.username config.redis.password config.redis.sentinel_username config.redis.sentinel_password
GraphQL Rate Limiting Advanced config.redis.username config.redis.password config.redis.sentinel_username config.redis.sentinel_password
HTTP Log config.http_endpoint config.headers
Kong JWT Signer config.access_token_keyset_client_username config.access_token_keyset_client_password config.access_token_jwks_uri_client_username config.access_token_jwks_uri_client_password config.channel_token_keyset_client_username config.channel_token_keyset_client_password config.channel_token_jwks_uri_client_username config.channel_token_jwks_uri_client_password
Kafka Log config.authentication.user config.authentication.password
Kafka Upstream config.authentication.user config.authentication.password
LDAP Authentication Advanced config.ldap_password config.bind_dn
Loggly config.key
OAuth 2.0 Introspection config.authorization_value
OpenID Connect config.client_id config.client_secret config.client_jwk.k config.client_jwk.d config.client_jwk.p config.client_jwk.q config.client_jwk.dp config.client_jwk.dq config.client_jwk.qi config.client_jwk.oth config.client_jwk.r config.client_jwk.t config.login_redirect_uri config.logout_redirect_uri config.scopes config.introspection_headers_values config.session_secret config.redis.username config.redis.password config.redis.sentinel_username config.redis.sentinel_password config.cluster_cache_redis.username config.cluster_cache_redis.password config.cluster_cache_redis.sentinel_username config.cluster_cache_redis.sentinel_password
OpenTelemetry config.traces_endpoint config.logs_endpoint config.headers
Proxy Caching Advanced config.redis.username config.redis.password config.redis.sentinel_username config.redis.sentinel_password
Rate Limiting config.redis.username config.redis.password
Rate Limiting Advanced config.redis.username config.redis.password config.redis.sentinel_username config.redis.sentinel_password
Request Transformer Advanced config.rename.body config.rename.headers config.rename.querystring config.replace.body config.replace.headers config.replace.querystring config.add.body config.add.headers config.add.querystring config.append.body config.append.headers config.append.querystring
Response Rate Limiting config.redis.username config.redis.password
SAML config.idp_certificate config.response_encryption_key config.request_signing_key config.request_signing_certificate config.session_secret config.redis.username config.redis.password config.redis.sentinel_username config.redis.sentinel_password
Session config.secret
Standard Webhooks config.secret_v1
Upstream OAuth config.oauth.token_headers config.oauth.token_post_args config.oauth.client_id config.oauth.client_secret config.oauth.username config.oauth.password config.cache.redis.username config.cache.redis.password config.cache.redis.sentinel_username config.cache.redis.sentinel_password

Note: The Vault plugin interacts with the vaults and vault_credentials entities. For these entities, the vaults.vault_token and vault_credentials.secret_token parameters are referenceable.

サポートされているバックエンド

Kong Gatewayは以下の保管庫バックエンドをサポートしています:

  • 環境変数
  • AWS Secrets Manager
  • GCP Secret Manager
  • Azure Key Vault
  • HashiCorp Vault

各オプションの詳細については、バックエンドの概要を参照してください。

使用開始

シークレット管理の詳細については、次のトピックを参照してください。

  • シークレット管理の使用方法
  • シークレットローテーション
  • バックエンドの概要
  • 参照形式
  • 高度な使用法
Thank you for your feedback.
Was this page useful?
情報が多すぎる場合 close cta icon
Kong Konnectを使用すると、より多くの機能とより少ないインフラストラクチャを実現できます。月額1Mリクエストが無料。
無料でお試しください
  • Kong
    APIの世界を動かす

    APIマネジメント、サービスメッシュ、イングレスコントローラーの統合プラットフォームにより、開発者の生産性、セキュリティ、パフォーマンスを大幅に向上します。

    • 製品
      • Kong Konnect
      • Kong Gateway Enterprise
      • Kong Gateway
      • Kong Mesh
      • Kong Ingress Controller
      • Kong Insomnia
      • 製品アップデート
      • 始める
    • ドキュメンテーション
      • Kong Konnectドキュメント
      • Kong Gatewayドキュメント
      • Kong Meshドキュメント
      • Kong Insomniaドキュメント
      • Kong Konnect Plugin Hub
    • オープンソース
      • Kong Gateway
      • Kuma
      • Insomnia
      • Kongコミュニティ
    • 会社概要
      • Kongについて
      • お客様
      • キャリア
      • プレス
      • イベント
      • お問い合わせ
  • 利用規約• プライバシー• 信頼とコンプライアンス
© Kong Inc. 2025