You cannot edit enabled plug-ins. To update a plug-in, you must release a new version. This topic describes how.
Prerequisites
-
Note
You can only update custom plug-ins. Built-in plug-ins that are included with the cloud-native gateway cannot be updated.
Procedure
-
Log on to the MSE console, and select a region in the top navigation bar.
-
In the left-side navigation pane, choose Cloud-native Gateway > Gateways. On the Gateways page, click the ID of the gateway.
-
In the left-side navigation pane of the gateway details page, click Plug-in Marketplace.
-
On the All Plug-ins tab, click the Custom tab.
-
On the resource card of the target plug-in, click the
icon on the right and select Release New Version. -
In the Release New Version panel, enter the plug-in information and click OK.
Parameter
Description
Plug-in Name
Enter the name of the plug-in. The name must be unique.
Plug-in Description
Enter a description of the plug-in. After you configure this parameter, the description is displayed on the plug-in card.
WebAssembly Language
Select a programming language that is used to develop a WebAssembly plug-in from the drop-down list.
WebAssembly File
Upload the plug-in binary file that is compiled and created on your on-premises machine. The filename extension must be .wasm and the file size cannot exceed 50 MB.
Plug-in Execution Stage
The stages are processed in the following order: Authorization > Authentication > Statistics > Default. If the plug-in's execution does not depend on other plug-ins, select the Default stage.
Plug-in Execution Priority
The execution priority of the plug-in in the specified stage. A large value indicates a high priority. If the execution of the plug-in does not depend on the execution order of other plug-ins, retain the default value. If you want to specify a value, we recommend that you enter an integral multiple of 10.
-
After the new version is released, click the plug-in's resource card. On the Plug-in Configuration tab, select the desired Target version and click Update Version.