コンテンツにスキップ
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 Konnect
  • Home icon
  • Kong Konnect
  • Gateway Manager
  • Plugins
  • Editing or deleting a custom plugin's schema
report-issue問題を報告する
  • Kong Gateway
  • Kong Konnect
  • Kong Mesh
  • Kong AI Gateway
  • Plugin Hub
  • decK
  • Kong Ingress Controller
  • Kong Gateway Operator
  • Insomnia
  • Kuma

  • ドキュメント投稿ガイドライン
  • Introduction
    • Overview of Konnect
    • Architecture
    • Network Resiliency and Availability
    • Port and Network Requirements
    • Private Connections to Other Cloud Providers
      • Create a private connection with AWS PrivateLink
    • Geographic Regions
    • Centralized consumer management
    • Compatibility
    • Stages of Software Availability
    • Release Notes
    • Support
      • Control Plane Upgrades FAQ
      • Supported Installation Options
  • Get Started
    • Overview
    • Add your API
    • Migrating a Self-Managed Kong Gateway into Konnect
  • Gateway Manager
    • Overview
    • Dedicated Cloud Gateways
      • Overview
      • Provision a Dedicated Cloud Gateway
      • Securing Backend Traffic
      • Transit Gateways
      • Azure VNET Peering
      • Custom Domains
      • Custom Plugins
      • Data plane logs
    • Serverless Gateways
      • Overview
      • Provision a serverless Gateway
      • Securing Backend Traffic
      • Custom Domains
    • Data Plane Nodes
      • Installation Options
      • Upgrade a Data Plane Node
      • Verify a Data Plane Node
      • Secure Control Plane/Data Plane Communications
      • Renew Data Plane Certificates
      • Parameter Reference
      • Using Custom DP Labels
    • Control Plane Groups
      • Overview
      • Working with Control Plane Groups
      • Migrate Configuration into Control Plane Groups
      • Conflicts in Control Planes
    • Kong Gateway Configuration in Konnect
      • Overview
      • Manage Plugins
        • Overview
        • Adding Custom Plugins
        • Updating Custom Plugins
        • How to Create Custom Plugins
      • Create Consumer Groups
      • Secrets Management
        • Overview
        • Konnect Config Store
        • Set Up and Use a Vault in Konnect
      • Manage Control Plane Configuration with decK
    • Active Tracing
      • Overview
    • KIC Association
    • Backup and Restore
    • Version Compatibility
    • Troubleshooting
  • Mesh Manager
    • Overview
    • Create a mesh with the Kubernetes demo app
    • Federate a zone control plane to Konnect
    • Migrate a self-managed zone control plane to Konnect
  • Service Catalog
    • Overview
    • Integrations
      • Overview
      • Datadog
      • GitHub
      • GitLab
      • PagerDuty
      • SwaggerHub
      • Traceable
      • Slack
    • Scorecards
  • API Products
    • Overview
    • Product Documentation
    • Productize a Service
  • Dev Portal
    • Overview
    • Dev Portal Configuration Preparation
    • Create a Dev Portal
    • Sign Up for a Dev Portal Account
    • Publish an API to Dev Portal
    • Access and Approval
      • Manage Developer Access
      • Manage Developer Team Access
      • Add Developer Teams from IdPs
      • Manage Application Registrations
      • Configure generic SSO for Dev Portal
      • Configure Okta SSO for Dev Portal
    • Application Lifecycle
    • Register and create an application as a developer
    • Enable and Disable App Registration for API Product Versions
    • Dynamic Client Registration
      • Overview
      • Okta
      • Curity
      • Auth0
      • Azure
      • Custom IdP
    • Portal Management API Automation Guide
    • Audit Logging
      • Overview
      • Set up an Audit Log Webhook
      • Set up an Audit Log Replay Job
    • Portal Customization
      • Overview
      • About Self-Hosted Dev Portal
      • Host your Dev Portal with Netlify
      • Custom Domains
    • Dev Portal SDK
    • Troubleshoot
  • Advanced Analytics
    • Overview
    • Dashboard
    • Explorer
    • Analyze API Usage and Performance with Reports
    • Requests
  • Org Management
    • Plans and Billing
    • Authentication and Authorization
      • Overview
      • Teams
        • Overview
        • Manage Teams
        • Teams Reference
        • Roles Reference
      • Manage Users
      • Manage System Accounts
      • Personal Access Tokens
      • Social Identity Login
      • Org Switcher
      • Configure Generic SSO
      • Configure Okta SSO
      • Login Sessions Reference
      • Troubleshoot
    • Audit Logging
      • Overview
      • Set up an Audit Log Webhook
      • Set up an Audit Log Replay Job
    • Account and Org Deactivation
  • API
    • Overview
    • API Request API (Beta)
      • API Spec
    • API Products API
      • API Spec
    • Audit Logs API
      • API Spec
      • Audit Log Webhooks
    • Control Plane API
      • API Spec
    • Control Plane Configuration API
      • API Spec
    • Cloud Gateways API
      • API Spec
    • Identity API
      • API Spec
      • Identity Integration Guide
      • SSO Customization
    • Konnect Search API (Beta)
      • API Spec
    • Mesh Manager API
      • API Spec
      • Kong Mesh API Reference
    • Portal Client API
      • API Spec
    • Portal Management API
      • API Spec
    • Reference
      • Filtering
      • API Errors
  • Reference
    • Labels
    • Plugin Ordering Reference
    • Konnect Search
    • Terraform Provider
    • Audit Logs
    • Verify audit log signatures
    • IdP SAML attribute mapping
enterprise-switcher-icon 次に切り替える: OSS
On this pageOn this page
  • Updating a custom plugin
    • How the Konnect platform reads configuration
    • Custom plugin update path
    • Make changes to custom plugin schemas in Konnect
  • Delete custom plugin schemas from Konnect
  • More information

このページは、まだ日本語ではご利用いただけません。翻訳中です。

Editing or deleting a custom plugin's schema

The workflow for updating an in-use custom plugin depends on whether you need to update the schema:

  • No change to plugin schema: Editing a custom plugin’s logic without altering its schema won’t cause the control plane to go out of sync with the data planes.

    In this situation, you only need to make sure that each data plane node has the correct logic. The schema on the control plane doesn’t need to be updated.

  • Changes to plugin schema: If there are changes required in the plugin schema, you must update both the schema in Konnect and the plugin code itself on each data plane node.

  • Deleting a plugin and its schema: If you need to completely remove the plugin from your control plane, you must remove all existing plugin configurations of this entity, then remove the schema from the control plane and all plugin files from the data plane nodes.

There is no built-in versioning for custom plugins. If you need to version a schema (that is, maintain two or more similar copies of a custom plugin), upload it as a new custom plugin and add a version identifier to the name. For example, if your original plugin is named delay, you can name the new version delay-v2.

Updating a custom plugin

How the Konnect platform reads configuration

When a schema file is updated in Konnect, the Konnect platform doesn’t trigger payload reconciliation automatically.

This means that if you don’t make any configuration changes in the control plane, such as adding, modifying, or deleting a Kong Gateway entity, the data plane nodes won’t receive a payload update, and won’t use the updated schema.

When pushing changes to the control plane, the payload reconciliation only affects data plane nodes if an instance of the plugin that uses the updated schema has its configuration changed.

Since plugin configurations are stored as JSON blobs, a schema change alone doesn’t impact the plugin configuration. However, if an instance of this plugin is also updated, the new schema affects how any new plugin configuration is represented.

In summary:

  • Uploading a custom plugin schema adds a new configurable object to the Konnect Plugin Hub, both as a tile in the UI, and an API endpoint.

  • Modifying the schema itself does not trigger payload updates to data plane nodes.

  • The new tile or endpoint added by the schema lets you create plugin configurations. If you create a plugin configuration in this way, it triggers a payload reconciliation with the data plane nodes.

Custom plugin update path

When you need to make plugin changes, we recommend updating the schema in Konnect first, and then on the data plane nodes:

  1. Start a migration/maintenance window.
  2. Update the plugin schema in Konnect.
  3. (Optional) Update the configuration for existing plugin instances.

    Based on the nature of the schema updates, you might need this optional step after updating the schema in Konnect to make sure that any existing plugin entities are updated before the schemas are changed in the data plane nodes.

  4. Update the plugin schema on each data plane node.
  5. Stop the migration/maintenance window.

Important: In cases where a breaking change is made to the schema, we do not recommend updating data plane nodes first. The change will affect each data plane node as soon as the node receives its first payload. This will happen even if there are no changes in the control plane for existing or new plugins using the updated schema.

See the following table for a comparison of possible changes and upgrade paths, in the case of a configuration parameter change in a custom plugin’s schema.

Legend:

Based on the steps defined above and your specific use case, you have to take one of the following paths:

  • Short path: Follow steps 1 → 2 → 4 → 5, skipping step 3.
  • Long path: Follow steps 1 → 2 → 3 → 4 → 5
  • CP/DP sync required: 1 → 2 → Optionally 3, if the updated parameter is in use → 4 → 5
  Required Default Required Non-default Non-required Default Non-required Non-default
Configuration parameter added Short Long Short Short
Configuration parameter removed Long CP/DP sync required Long Long
Configuration parameter’s data type changed CP/DP sync required CP/DP sync required CP/DP sync required CP/DP sync required

Note: If the path requires a sync, that means the change doesn’t disrupt existing proxy functionality, but does cause temporary Out of Sync states until both the configured plugins and the data plane nodes are updated with the new schemas.

Adding or deleting fields

When new fields are introduced in a schema without default values and aren’t marked as required, a payload update won’t disrupt data plane payload validation. This means that even if new plugins are added or existing ones are updated, the data plane will stay in sync because null fields are gracefully handled and ignored.

Here’s an example of a non-breaking change to a schema. This snippet adds a non-required new_ttl configuration parameter without a default value, and a response header that references an existing typedef:

{ 
    new_ttl = {
        type = "integer",
        gt = 0,
    }
},
{ 
    new_response_header = typedefs.header_name
},

Similar to adding fields, when not-required fields are deleted, it doesn’t break the data plane - even when a plugin is created or updated. The data plane will only raise an error when a required field is removed and a payload update is triggered:

2023/09/01 07:14:26 [error] 2308#0: *160 [lua] data_plane.lua:244: [clustering] unable to update running config: bad config received from control plane in 'plugins':
  - in entry 1 of 'plugins':
    in 'config':
      in 'ttl': required field missing, context: ngx.timer

Make changes to custom plugin schemas in Konnect

To make any changes to a custom plugin schema, you need to access the Add Plugin page in Gateway Manager, or use the API:

Konnect UI
Konnect API
  1. From the Gateway Manager, open a control plane.
  2. Open Plugins from the side navigation, then click Add Plugin.
  3. Open the Custom Plugins tab.
  4. On the tile for your custom plugin, click the action menu in the corner, then select Edit. Make your changes and save.

To update a schema, use a PUT request with the /plugin-schemas endpoint:

curl -i -X PUT \
  https://{region}.api.konghq.com/v2/control-planes/{controlPlaneId}/core-entities/plugin-schemas/{customPluginName} \
  --header 'Content-Type: application/json' \
  --data "{\"lua_schema\": "<your escaped Lua schema>"}"

Tip: You can use jq to pass your schema directly from the file instead of manually escaping it:

--data "{\"lua_schema\": $(jq -Rs '.' < REPLACE-PATH-TO-SCHEMA-FILE)}"

Then, upload the updated schema file to each data plane node.

Delete custom plugin schemas from Konnect

To delete a custom plugin schema, you must delete all of its existing configuration entities first:

Konnect UI
Konnect API
  1. From the Gateway Manager, open a control plane.
  2. Open Plugins from the side navigation.
  3. Find any instances of the custom plugin that you want to delete, click on its action menu, then select Delete.
  4. Click Add Plugin from the Plugins page.
  5. Open the Custom Plugins tab.
  6. On the tile for your custom plugin, click the action menu in the corner, then select Delete.
  1. Find any existing plugin configs:

     curl -i -X GET \
       https://{region}.api.konghq.com/v2/control-planes/{controlPlaneId}/core-entities/plugins/
    

    You will get an HTTP 200 response listing all of your plugins:

     ...
     {
       "config": {
         "request_header": "Hello",
         "response_header": "Bye",
         "ttl": 600
       },
       "created_at": 1695837042,
       "enabled": true,
       "id": "1227e7d6-f615-4928-a7c4-dcaadff4b95b",
       "name": "example-plugin",
       "protocols": [
         "grpc",
         "grpcs",
         "http",
         "https"
       ],
       "updated_at": 1695837042
     },
     {
       "config": {
         "anonymous": null,
         "hide_credentials": true
       },
       "created_at": 1692806129,
       "enabled": true,
       "id": "266409a3-3dbe-4d72-b1dd-2d0cf85c60db",
       "name": "basic-auth",
       "protocols": [
         "grpc",
         "grpcs",
         "http",
         "https",
         "ws",
         "wss"
       ],
       "route": {
         "id": "449fea21-ed2c-4010-9ea1-1c07d068f078"
       },
       "updated_at": 1692806129
     },
     ...
    
  2. Find any instances of the plugin that you’re removing, copy their IDs, then delete them:

     curl -i -X DELETE \
       https://{region}.api.konghq.com/v2/control-planes/{controlPlaneId}/core-entities/plugins/{pluginID}
    

    You will get an HTTP 204 response for each successfully deleted plugin.

  3. Once all instances of the plugin are deleted from the control plane, you can delete its schema using the /plugin-schemas endpoint:

     curl -i -X DELETE \
       https://{region}.api.konghq.com/v2/control-planes/{controlPlaneId}/core-entities/plugin-schemas/{customPluginName}
    

    If the request fails and the plugin is still in use in your control plane, you will see the following response:

     {
       "code": 3,
       "message": "plugin schema is currently in use, please delete existing plugins using the schema and try again"
     }
    

    If successful, you should see an HTTP 204 response.

Finally, delete the plugin from each data plane node by going into each node’s filesystem and removing the plugin’s files.

More information

  • Add a custom plugin in Konnect
  • Custom plugin schema endpoints (Control Plane Config API)
  • Custom plugin template
  • Plugin development guide
  • PDK reference
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