@kong-ui-public/entities-plugins 9.199.2 → 9.199.3-pr.3205.d15ebd4d0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -1712,7 +1712,7 @@ const Li = (e) => {
|
|
|
1712
1712
|
group: i("custom_field.key_auth_identity_realms.cp_group_label")
|
|
1713
1713
|
}, a = kt(fi), { axiosInstance: r } = In(a == null ? void 0 : a.axiosRequestConfig), s = () => {
|
|
1714
1714
|
if ((a == null ? void 0 : a.app) === "konnect") {
|
|
1715
|
-
const f = /\b(us|eu|au|me|in)\b/.exec((a == null ? void 0 : a.apiBaseUrl) || "");
|
|
1715
|
+
const f = /\b(us|eu|au|me|in|sg)\b/.exec((a == null ? void 0 : a.apiBaseUrl) || "");
|
|
1716
1716
|
if (f)
|
|
1717
1717
|
return { region: f[1] };
|
|
1718
1718
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
(function(Ke,n){typeof exports=="object"&&typeof module<"u"?n(exports,require("vue"),require("@kong-ui-public/entities-shared"),require("@kong/icons"),require("@kong/kongponents"),require("@kong-ui-public/entities-plugins-icon"),require("@kong-ui-public/i18n"),require("@kong-ui-public/entities-plugins-metadata"),require("@kong-ui-public/forms"),require("marked"),require("@vueuse/core"),require("@kong-ui-public/entities-redis-configurations"),require("@kong-ui-public/entities-redis-configurations/dist/style.css"),require("@kong-ui-public/monaco-editor"),require("monaco-editor"),require("vue-router"),require("@kong-ui-public/monaco-editor/dist/runtime/style.css"),require("@vue-flow/core"),require("@vue-flow/background"),require("@vue-flow/controls"),require("@vue-flow/controls/dist/style.css"),require("@vue-flow/core/dist/style.css"),require("@vue-flow/core/dist/theme-default.css"),require("@kong-ui-public/entities-vaults"),require("shiki"),require("zod"),require("axios"),require("@kong-ui-public/entities-vaults/dist/style.css")):typeof define=="function"&&define.amd?define(["exports","vue","@kong-ui-public/entities-shared","@kong/icons","@kong/kongponents","@kong-ui-public/entities-plugins-icon","@kong-ui-public/i18n","@kong-ui-public/entities-plugins-metadata","@kong-ui-public/forms","marked","@vueuse/core","@kong-ui-public/entities-redis-configurations","@kong-ui-public/entities-redis-configurations/dist/style.css","@kong-ui-public/monaco-editor","monaco-editor","vue-router","@kong-ui-public/monaco-editor/dist/runtime/style.css","@vue-flow/core","@vue-flow/background","@vue-flow/controls","@vue-flow/controls/dist/style.css","@vue-flow/core/dist/style.css","@vue-flow/core/dist/theme-default.css","@kong-ui-public/entities-vaults","shiki","zod","axios","@kong-ui-public/entities-vaults/dist/style.css"],n):(Ke=typeof globalThis<"u"?globalThis:Ke||self,n(Ke["kong-ui-public-entities-plugins"]={},Ke.Vue,Ke["kong-ui-public-entities-shared"],Ke.KongIcons,Ke.Kongponents,Ke.entitiesPluginsIcon,Ke["kong-ui-public-i18n"],Ke.entitiesPluginsMetadata,Ke.forms,Ke.marked,Ke.core$1,Ke.entitiesRedisConfigurations,null,Ke.monacoEditor,Ke.monaco,Ke.VueRouter,null,Ke.core$2,Ke.background,Ke.controls,null,null,null,Ke.entitiesVaults,Ke.shiki,Ke.zod,Ke.axios))})(this,function(Ke,n,fe,Ae,Ge,Er,Kt,Z,et,cl,Bt,zh,bG,ul,yo,xr,_G,kt,K1,Wh,wG,kG,CG,ka,q1,G,dl){"use strict";function G1(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const r in e)if(r!=="default"){const o=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,o.get?o:{enumerable:!0,get:()=>e[r]})}}return t.default=e,Object.freeze(t)}function H1(e,t){for(var r=0;r<t.length;r++){const o=t[r];if(typeof o!="string"&&!Array.isArray(o)){for(const i in o)if(i!=="default"&&!(i in e)){const a=Object.getOwnPropertyDescriptor(o,i);a&&Object.defineProperty(e,i,a.get?a:{enumerable:!0,get:()=>o[i]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}const fl=G1(yo),z1="#ecfcff",W1="#f1f0ff",J1="#52596e",Y1="#e0e4ea",X1="#007d60",Z1="#fffce0",Q1="#6c7489",eE="#0044f4",tE="#5f9aff",wd="#000933",Jh="#d60027",nE="#00abd2",Yh="#6f28ff",Xh="#afb7c5",cr="#6c7489",rE="#0044f4",oE="#eefaff",Zh="#007d60",iE="#ecfffb",aE="#995c00",sE="#306fff",pl="12px",Jn="16px",Ca="20px",lE="2px",Qh="8px",cE="32px",Wt={actions:{cancel:"Cancel",view_configuration:"View configuration",create:"New plugin",create_custom:"Create",configure:"Configure",copy_id:"Copy ID",copy_json:"Copy JSON",edit:"Edit",enable:"Enable",enabled:"Enabled",delete:"Delete",disabled:"Disabled",confirm_delete:"Yes, delete",view:"View details",configure_dynamic_ordering:"Configure dynamic ordering",go_to_plugins:"Go to plugins",save:"Save",add_entity:"Add {entity}",remove_entity:"Remove {entity}",loading_spinner:"Loading..."},view_configuration:{title:"Configuration",message:"Export configurations for core Kong Gateway objects, like services, routes, and plugins, to either YAML, JSON, or Terraform. This allows for straightforward importing into APIOps tools like decK with YAML, Insomnia and cURL with JSON, or Terraform products with Terraform.",yaml:"YAML",terraform:"Terraform",json:"JSON",deck:"decK"},delete:{title:"Delete a plugin",custom_title:"Delete {name}",custom_plugin:"Custom plugin",description:"This action cannot be reversed.",description_custom:"Please ensure this plugin is not in use. This action cannot be reversed.",plugin_schema_in_use_title:"Unable to delete custom plugin",plugin_schema_in_use_message:"The custom plugin schema {name} is being used in this control plane, please delete any existing instances before you delete this schema.",confirmModalText1:"Are you sure you want to delete",confirmModalText2:"Please ensure this plugin is not in use. This delete action cannot be reversed.",confirm_text:"Type {name} to confirm your action",success_message:"Successfully deleted custom plugin {name}"},copy:{success:"Copied {val} to clipboard",success_brief:"Successfully copied to clipboard",tooltip:"Copy {label}",success_tooltip:"Copied!"},errors:{general:"Plugins could not be retrieved",delete:"The plugin could not be deleted at this time.",copy:"Failed to copy to clipboard",load_results:"Error loading available plugins",load_schema:"Error loading plugin schema"},search:{placeholder:{konnect:"Filter by name",exact:"Filter by exact instance name or ID",kongManager:"Filter by exact instance name or ID",select:"Filter plugins",search_plugins:"Search plugins"},filter:{field:{enabled:"Enabled"}},no_results:'No results found for "{filter}"'},labels:{new:"New"},plugins:{title:"Plugins",list:{toolbar_actions:{new_plugin:"New plugin"},table_headers:{applied_to:"Applied to",applied_to_badges:{consumer:"Consumer",global:"Global",route:"Route",service:"Service",consumer_group:"Consumer group"},id:"ID",name:"Name",instance_name:"Instance name",ordering:"Ordering",ordering_badge:{dynamic:"Dynamic",static:"Static"},enabled:"Enabled",tags:"Tags"},empty_state:{title:"Configure a new plugin",description:"Plugins are used to extend Kong functionality."},empty_state_v2:{title:"Configure your first plugin",description:"Plugins extend gateways functionalities, offering features like authentication, rate limiting, and request transformations to enhance security and performance.",create_cta:"New plugin",group:"Plugins created in gateways within this group will automatically appear here.",learn_more:"Learn more"}},meta:{"basic-auth":{name:"Basic Authentication",credential_name:"Basic Auth Credential",description:"Add Basic Authentication to your Services"},"hmac-auth":{name:"HMAC Authentication",credential_name:"HMAC Credential",description:"Add HMAC Authentication to your Services"},"jwt-signer":{name:"JWT Signer",description:"Verify and (re-)sign one or two tokens in a request"},jwt:{name:"JWT",credential_name:"JWT Credential",description:"Verify and authenticate JSON Web Tokens"},"key-auth":{name:"Key Authentication",credential_name:"Key Auth Credential",description:"Add key authentication to your Services"},"key-auth-enc":{name:"Key Authentication Encrypted",credential_name:"Key Auth Encrypted",description:"Add key authentication to your Services with an encrypted token"},"ldap-auth-advanced":{name:"LDAP Authentication Advanced",description:"Integrate Kong with a LDAP server"},"ldap-auth":{name:"LDAP Authentication",description:"Integrate Kong with a LDAP server"},"oauth2-introspection":{name:"OAuth 2.0 Introspection",description:"Integrate Kong with a third-party OAuth 2.0 Authorization Server"},oauth2:{name:"OAuth 2.0 Authentication",credential_name:"OAuth 2.0 Application",description:"Add OAuth 2.0 authentication to your Services"},"openid-connect":{name:"OpenID Connect",description:"Integrate Kong with a third-party OpenID Connect 1.0 Provider"},"mtls-auth":{name:"Mutual TLS Authentication",description:"Secure routes and services with client certificate and mutual TLS authentication"},"vault-auth":{name:"Vault Authentication",description:"Secure routes and services with an access token and secret token, stored securely via Vault"},"bot-detection":{name:"Bot Detection",description:"Detect and clock bots or custom clients"},cors:{name:"CORS",description:"Allow developers to make requests from the browser"},"ip-restriction":{name:"IP Restriction",description:"Whitelist or blacklist IPs that can make requests"},opa:{name:"OPA",description:"Authorize requests against Open Policy Agent"},"kubernetes-sidecar-injector":{name:"Kubernetes Sidecar Injector",description:"This plugin will inject Kong dataplane nodes and form a service mesh on top of Kubernetes"},"request-validator":{name:"Request Validator",description:"Validate requests before they reach their upstream Service."},acl:{name:"ACL",credential_name:"Access Control Group",description:"Control which consumers can access Services"},canary:{name:"Canary Release",description:"Methodically roll out software changes to a subset of users"},"forward-proxy":{name:"Forward Proxy",description:"Allow Kong to connect to intermediary transparent HTTP proxies"},"proxy-cache":{name:"Proxy Caching",description:"Cache and serve commonly requested responses in Kong"},"proxy-cache-advanced":{name:"Proxy Caching Advanced",description:"Cache and serve commonly requested responses in Kong"},"graphql-proxy-cache-advanced":{name:"GraphQL Proxy Caching Advanced",description:"Cache and serve commonly requested responses in Kong"},"rate-limiting-advanced":{name:"Rate Limiting Advanced",description:"Rate-limit how many HTTP requests a developer can make"},"rate-limiting":{name:"Rate Limiting",description:"Rate-limit how many HTTP requests a developer can make"},"graphql-rate-limiting-advanced":{name:"GraphQL Rate Limiting Advanced",description:"Rate-limit how many HTTP requests a developer can make"},mocking:{name:"Mocking",description:"Provide mock endpoints to test your APIs in development against your services"},"request-size-limiting":{name:"Request Size Limiting",description:"Block requests with bodies greater than a specific size"},"request-termination":{name:"Request Termination",description:"Terminate all requests with a specific response"},"response-ratelimiting":{name:"Response Rate Limiting",description:"Rate-Limiting based on a custom response header value"},"route-by-header":{name:"Route by Header",description:"Route requests based on request headers"},"ai-proxy":{name:"AI Proxy",description:"Directly call a configured LLM, with mediated security and tuning parameters, and using standardised Kong request and response formats."},"ai-prompt-decorator":{name:"AI Prompt Decorator",description:"Prepend and append chat prompts to AI Proxy plugin LLM requests."},"ai-prompt-template":{name:"AI Prompt Template",description:"Define a set of templates, containing string variable placeholders, that can be consumed by users when used with the AI Proxy plugin."},"ai-prompt-guard":{name:"AI Prompt Guard",description:"Define a set of valid, and a set of invalid, regular expression patterns when calling LLM models with the AI Proxy plugin."},"ai-request-transformer":{name:"AI Request Transformer",description:"Use an LLM to transform API request from a user, before sending to the upstream service."},"ai-response-transformer":{name:"AI Response Transformer",description:"Use an LLM to transform API responses from the upstream service, before returning to the user."},"ai-rate-limiting-advanced":{name:"AI Rate Limiting Advanced",description:"Provides rate limiting for the providers used by any AI plugins."},"ai-azure-content-safety":{name:"AI Azure Content Safety",description:"Allows checking and auditing of AI-Proxy plugin messages, using Azure Cognitive Services, before proxying to upstream large-language model."},"aws-lambda":{name:"AWS Lambda",description:"Invoke and manage AWS Lambda functions from Kong"},"azure-functions":{name:"Azure Functions",description:"Invoke Azure functions"},openwhisk:{name:"OpenWhisk",description:"Invoke and manage OpenWhisk actions from Kong"},"pre-function":{name:"Kong Functions (Pre-Plugins)",description:"Add and manage custom lua functions to run before other plugins"},"post-function":{name:"Kong Functions (Post-Plugins)",description:"Add and manage custom lua functions to run after other plugins"},datadog:{name:"Datadog",description:"Visualize metrics on Datadog"},prometheus:{name:"Prometheus",description:"Export performance metrics to Prometheus"},zipkin:{name:"Zipkin",description:"Propagate zipkin spans and report spans to a zipkin server"},collector:{name:"Collector",description:"Automate spec-driven development & anomaly detection (Early Access)"},"response-transformer-advanced":{name:"Response Transformer Advanced",description:"Transform the response sent by the upstream server on the fly on Kong, before returning the response to the client."},"correlation-id":{name:"Correlation ID",description:"Correlate requests and responses using a unique ID"},"request-transformer-advanced":{name:"Request Transformer Advanced",description:"Use powerful regular expressions, variables and templates to transform API requests"},"request-transformer":{name:"Request Transformer",description:"Modify the request before hitting the upstream server"},"response-transformer":{name:"Response Transformer",description:"Modify the upstream response before returning it to the client"},"route-transformer-advanced":{name:"Route Transformer Advanced",description:"Transforms the routing on the fly in Kong, changing the upstream server/port/path to hit"},"kafka-upstream":{name:"Kafka Upstream",description:"Transform requests into Kafka messages in a topic"},degraphql:{name:"DeGraphQL",description:"Transform a GraphQL upstream into a REST API"},"exit-transformer":{name:"Exit Transformer",description:"Customize Kong exit responses sent downstream"},jq:{name:"jq",description:"Transform JSON objects included in API requests or responses using jq programs"},"file-log":{name:"File Log",description:"Append request and response data to a log file on disk"},"http-log":{name:"HTTP Log",description:"Send request and response logs to an HTTP server"},loggly:{name:"Loggly",description:"Send request and response logs to Loggly"},"statsd-advanced":{name:"StatsD Advanced",description:"Send traffic and Kong performance metrics to StatsD"},statsd:{name:"StatsD",description:"Send request and response logs to StatsD"},syslog:{name:"Syslog",description:"Send request and response logs to Syslog"},"tcp-log":{name:"TCP Log",description:"Send request and response logs to a TCP server"},"udp-log":{name:"UDP Log",description:"Send request and response logs to a UDP server"},"kafka-log":{name:"Kafka Log",description:"Publish request and response logs to a Kafka topic"},session:{name:"Session",description:"Sessions for Kong authentication"},"upstream-tls":{name:"Upstream TLS",description:"Enable TLS on upstream traffic by providing Kong with a list of trusted certificates."},"application-registration":{name:"Portal Application Registration",description:"Allow portal developers to register applications against services"},"konnect-application-auth":{name:"Konnect Application Auth",description:"Allow Konnect portal developers to register applications against services"},acme:{name:"ACME",description:"Let's Encrypt and ACMEv2 integration with Kong"},"grpc-gateway":{name:"gRPC Gateway",description:"Access gRPC services through HTTP REST"},"grpc-web":{name:"gRPC Web",description:"Allow browser clients to call gRPC services"},"upstream-timeout":{name:"Upstream Timeout",description:"Configure read, send and connect timeouts to an upstream"},opentelemetry:{name:"OpenTelemetry",description:"Propagate distributed tracing spans and report low-level spans to a OTLP-compatible server"},"websocket-validator":{name:"WebSocket Validator",description:"Validate individual WebSocket messages against to a user-specified schema before proxying them"},"websocket-size-limit":{name:"WebSocket Size Limit",description:"Allows operators to specify a maximum size for incoming WebSocket messages"},"tls-metadata-headers":{name:"TLS Metadata Headers",description:"Detects client certificates in requests, retrieves the TLS metadata, and proxies this metadata via HTTP headers"},"tls-handshake-modifier":{name:"TLS Handshake Modifier",description:"Requests the client certificate and if it exists, makes it available to other plugins acting on the request"},"oas-validation":{name:"OAS Validation",description:"Validate HTTP requests and responses based on an API Specification."},"jwe-decrypt":{name:"Kong JWE Decrypt",description:"The Kong JWE Decrypt plugin makes it possible to decrypt an inbound token(JWE) in a request."},"xml-threat-protection":{name:"XML Threat Protection",description:"Reduce the risk of XML attacks by checking the structure of XML payloads."},saml:{name:"SAML",description:"Security Assertion Markup Language (SAML) is an open standard for exchanging authentication and authorization data between an identity provider and a service provider."},"app-dynamics":{name:"AppDynamics",description:"This plugin integrates Kong with the AppDynamics APM platform so that proxy requests handled by Kong can be identified and analyzed in AppDynamics."},"json-threat-protection":{name:"JSON Threat Protection",description:"Apply size checks on JSON payload and minimize risk of content-level attacks"},"standard-webhooks":{name:"Standard Webhooks",description:"Validate incoming webhooks adhere to the Standard Webhooks specification, to which Kong is a contributor"},"ai-proxy-advanced":{name:"AI Proxy Advanced",description:"Route across different LLMs and models using advanced load balancing algorithms, including semantic routing."},"ai-semantic-cache":{name:"AI Semantic Cache",description:"Semantically cache AI requests to any LLM to reduce latency, improve end-user experiences and optimize GenAI costs."},"ai-semantic-prompt-guard":{name:"AI Semantic Prompt Guard",description:"Semantically and intelligently create allow and deny lists of topics that can be requested across every LLM."},"header-cert-auth":{name:"Header Certificate Authentication",description:"Authenticate clients with MTLS certificate passed in header by a WAF or load balancer"},"upstream-oauth":{name:"Upstream OAuth",description:"Configure Kong to obtain a OAuth2 token to consume an upstream API"},confluent:{name:"Confluent",description:"Streamlines integration with Confluent Cloud and transforms requests into messages published to a Confluent topic."},"service-protection":{name:"Service Protection",description:"Prevent abuse and protect services with absolute limits on the number of requests reaching the service."},"injection-protection":{name:"Injection Protection",description:"Protect against injection attacks by rejecting requests that match common injections patterns."},redirect:{name:"Redirect",description:"Redirect incoming requests to a new URL"},"kafka-consume":{name:"Kafka Consume",description:"Consume messages from Kafka topics over HTTP protocols."},"confluent-consume":{name:"Confluent Consume",description:"Consume messages from Confluent Kafka topics over HTTP protocols"},"request-callout":{name:"Request Callout",description:"Callout to third party APIs as part of request processing."},"ai-sanitizer":{name:"AI Sanitizer",description:"Sanitize personal or sensitive information from prompts before sending to LLM."},"ai-rag-injector":{name:"AI RAG Injector",description:"Attach contextual knowledge from vector databases with flexible template to LLM prompts."},datakit:{name:"Datakit",description:"Datakit is a workflow engine for working with external APIs."},"ai-prompt-compressor":{name:"AI Prompt Compressor",description:"The AI Prompt Compressor reduces costs associated with LLMs by compressing prompts."},"solace-upstream":{name:"Solace Upstream",description:"Transform requests into Solace messages in a Solace queue or topic."},"ai-aws-guardrails":{name:"AI AWS GuardRails",description:"The AI AWS GuardRails enables enforcement of introspection with the AWS GuardRails service for all requests processed by the AI Proxy plugin."},ace:{name:"Konnect Access Control Enforcement",description:"Enable Developer Self-Service for Konnect Dev Portals."},"solace-consume":{name:"Solace Consume",description:"Consume messages from Solace and make them available through HTTP endpoints."},"solace-log":{name:"Solace Log",description:"Publish request and response logs to a Solace topic."},"ai-llm-as-judge":{name:"AI LLM Judge",description:"Evaluate LLM responses with an external LLM service and use accuracy scores to drive dynamic load balancing for `llm/v1/chat` requests."},"ai-mcp-proxy":{name:"AI MCP Proxy",description:"Convert APIs into MCP tools, proxy MCP servers, expose multiple MCP tools, and observe MCP traffic in real time."},"ai-gcp-model-armor":{name:"AI GCP Model Armor",description:"Audit and validate AI Proxy messages with Google Cloud Model Armor before forwarding them to an upstream LLM."},"ai-mcp-oauth2":{name:"AI MCP OAuth2",description:"Secure MCP server access with OAuth2 authentication."},"ai-semantic-response-guard":{name:"AI Semantic Response Guard",description:"Permit or block prompts based on semantic similarity to known LLM responses, preventing misuse of `llm/v1/chat` or `llm/v1/completions` requests."},"ai-lakera-guard":{name:"AI Lakera Guard",description:"Audit and enforce safety policies on LLM requests and responses using the AI AWS Lakera plugin before they reach upstream LLMs."},"ai-a2a-proxy":{name:"AI A2A Proxy",description:"Securely proxy A2A Agents, with real-time RPC tracing and monitoring."},"ai-custom-guardrail":{name:"AI Custom Guardrail",description:"Integrate with any 3rd-party Guardrail service, with customizable enforcement modes — choose whether violations block, log, or allow traffic to proceed."},"metering-and-billing":{name:"Metering & Billing",description:"Meter API requests and AI token usage for usage-based billing. Supports flexible customer identification, custom pricing dimensions, and fine-grained traffic filtering. Integrates natively with Konnect Metering & Billing."}},fields:{service:"Service ID",route:"Route ID",consumer:"Consumer ID",consumer_group:"Consumer group ID"},select:{custom_badge_text:"This plugin is data plane node specific",unavailable_tooltip:"This plugin is not available",already_exists:"This plugin is already applied to this resource",misc_plugins:"Other plugins",show_all:"Show all",view_more:"View more",view_less:"View less",filter:{title:"Filter plugins",featured:"Featured",type:"Type",clear:"Clear"},list:{table_headers:{name:"Plugin",description:"Description"}},tabs:{kong:{title:"Kong plugins",description:"Kong plugins are bundled by default with Kong Gateway and are available across all control planes.",empty_title:"No plugins",empty_description:"No plugins are available."},custom:{title:"Custom plugins",description:"Custom plugins will be available in this control plane only.",disabled_tooltip:"Custom plugins are not available with this gateway. Create a hybrid or dedicated cloud gateway to leverage custom plugins.",empty_title:"No custom plugins",empty_description:"No custom plugins have been added to this control plane.",create:{name:"Custom plugin",description:"Upload schema file to create custom plugin"}}},highlighted_plugins:{title:"Highlighted plugins"}},form:{button_deck_customize:"Customize before copying to CLI",disable_data_retrieving:"You do not have permission to select {scope}",disable_source_scope_change:"Changing the {scope} is not allowed when configuring a plugin under it",no_selection:"No selection...",fields:{enabled:{label:"Enabled",on_text:"This plugin is enabled",off_text:"This plugin is disabled"},plugin_status:{label:"Plugin status",text_on:"Enabled",text_off:"Disabled"},instance_name:{label:"Name",placeholder:"Enter a unique name",help:"A custom name for this plugin instance to help with identifying from the list view."},condition:{label:"Execution condition",placeholder:"Enter an expression",tooltip:"An expression used for conditional control over plugin execution. If the expression evaluates to true during the request flow, the plugin is executed; otherwise, it is skipped.",help:{learn:"Learn more",about:"{link} about plugin conditions."}},protocols:{label:"Protocols",placeholder:"Select valid protocols for the plugin",placeholderWithDefaultValues:"Select valid protocols for the plugin. Default protocols: {protocols}",help:"A list of the request protocols that will trigger this plugin. The default value, as well as the possible values allowed on this field, may change depending on the plugin type."},tags:{label:"Tags",help:"An optional set of strings for grouping and filtering, separated by commas.",placeholder:"Tag1, Tag2, Tag3"}},scoping:{label:"Scoped",placeholder:"Search by name or UUID",disable_global_radio:"The plugin is set to 'scoped' by default. To apply a plugin globally, please navigate to the global plugin list page.",global:{label:"Global",help:"All services, routes, and consumers"},gateway_service:{label:"Select a gateway service",help:"The gateway service to which this plugin configuration will apply",placeholder:"Select a gateway service",plural:"Gateway services"},route:{label:"Select a route",help:"The route that this plugin configuration will target",placeholder:"Select a route",plural:"Routes"},consumer:{label:"Select a consumer",help:"The consumer that this plugin configuration will target",placeholder:"Select a consumer",plural:"Consumers"},consumer_group:{label:"Select a consumer group",help:"The consumer group that this plugin configuration will target",placeholder:"Select a consumer group",plural:"Consumer groups"}},grouping:{plugin_configuration:{title:"Plugin configuration",description:"Configuration parameters for this plugin. View advanced parameters for extended configuration.",empty:"This plugin does not have required parameters."},advanced_parameters:{view:"Show additional settings",hide:"Hide additional settings"}},field_rules:{at_least_one_of:"At least one of the following values is required: {parameters}.",only_one_of:"Exactly one of these parameters is required: {parameters}",mutually_required:"These values must be used together: {parameters}.",mutually_exclusive:"Only one of these values can be used: {parameters}.",only_one_of_mutually_required:"Exactly one of the following parameter combinations is required (all parameters within a chosen combination are required):"},sections:{plugin_scope:{title:"Plugin scope",description:"Choose whether this plugin applies to all traffic (global) or is scoped to a specific service, route, or consumer."},general_info:{title:"General information",description:"Add details to help identify and manage your plugin."},plugin_config:{title:"Plugin configuration",description:"Set the plugin's behavior by defining its configuration settings."},plugin_general_info:{description:"Add a name or tags to help you identify and manage this plugin later."},code_mode:{title:"Code editor",description:"Configure this plugin by using YAML configuration."}}},"free-form":{editor_mode:{visual:"Visual editor",code:"Code editor"},"code-lens":{entity:{service:"Service",route:"Route",consumer:"Consumer",consumer_group:"Consumer Group",certificate:"Certificate"},field:{name:'{entity} "{value}"',username:'Username "{value}"',custom_id:'Custom ID "{value}"',subject:'Subject "{value}"',expires_after:'Expires after "{value}"'},action:{view_entity:"View {title}",copy_certificate:"Copy certificate",copy_uuid:"Copy UUID",retry_fetch:"Retry fetch (Hover for details)"},unknown_error:"Unknown error"},acl:{mode:{allow:"Use allow list",deny:"Use deny list"}},"ai-mcp-proxy":{default_acl_item_label:"Default ACL #{index}",tool_item_label:"Tool #{index}"},"request-callout":{entity_name:"Request callout",by_lua_placeholder:"Enter Lua script here..."},"metering-and-billing":{sections:{plugin_config:{title:"Plugin configuration",description:"Configure the Metering & Billing plugin."},metering:{title:"What to meter"},subject:{title:"Who to bill (Subject)",description:"Define how billing subjects are identified."},ingestion:{title:"Connection",description:"Configure how metered data is delivered to the billing service."},queue:{title:"Queue",description:"Configure internal event queue settings."}},fields:{meter_api_requests:{label:"Meter API requests",description:"Emit a usage event for each API Gateway request."},meter_ai_token_usage:{label:"Meter AI token usage",description:"Emit events for LLM input and output tokens on AI Gateway requests. Each request produces separate input/output events so they can be priced independently."},ingest_endpoint:{description:"The URL of the metering data ingest endpoint.",help:"For Konnect Metering & Billing, use the regional endpoint from your Metering & Billing settings. For self-hosted OpenMeter, use your ingest URL."},api_token:{description:"Bearer token for authenticating requests to the ingest endpoint."},look_up_value_in:{label:"Look up subject in",help:"Where to find the customer identifier in the request."},subject_field:{label:"Subject field name",placeholder:"e.g., x-customer-id",help:"e.g. x-customer-id, x-api-key, x-tenant"},queue:{max_coalescing_delay:{label:"Max coalescing delay (s)"},initial_retry_delay:{label:"Initial retry delay (s)"},max_retry_delay:{label:"Max retry delay (s)"},max_retry_time:{label:"Max retry time (s)"}},attributes:{title:"Event attributes",description:"Attach custom dimensions to metered events.",look_up_value_in:{placeholder:"e.g., x-priority-id"},event_property_name:{placeholder:"e.g., priority"}},ssl_verify:{label:"Verify TLS certificate",description:"Disable only for local development with self-signed certificates."},timeout:{label:"Request timeout (ms)"},keepalive:{label:"Connection keep-alive (ms)"}}},datakit:{plugin_config:{title:"Flow editor"},description_code:"Configure this plugin by using YAML configuration. If you are copy/pasting in examples from the documentation - paste from below the <code>config</code> block.",description_flow:"Build flows visually with a drag-and-drop editor for Datakit. Visualize node connections, inputs, and outputs as you design.",description_example:"Start with a use case:",detected_config_format:"Detected {format} configuration. Do you want to convert it to Datakit configuration?",detected_config_format_title:"Convert configuration",detected_config_format_confirm:"Convert",examples:{authenticateThirdPartyWithDynamicUrl:"Authenticate Kong to a third-party service resolved at runtime",authenticateThirdParty:"Authenticate Kong to a third-party service",authenticateWithVaultSecret:"Authenticate to a third-party service using Vault secrets",clearHeaders:"Clear request headers",combineTwoApisIntoOneResponse:"Combine multiple API responses",conditionallyStoreCachedItems:"Conditionally fetch or store cache data",convertJsonIntoXml:"Transform JSON into XML",convertJsonToXmlAndBack:"Transform JSON into XML and back",convertXmlIntoJson:"Transform XML into JSON",manipulateRequestHeaders:"Manipulate request headers"},flow_editor:{mode:"Flow editor",name:"Datakit flow editor",cta:"Go to flow editor",disabled_tooltip:"The flow editor is unavailable due to critical configuration errors or features not supported in the flow editor:<br/><code>{reason}</code>",expand_panel:"Expand panel",collapse_panel:"Collapse panel",return_to_config:"Return to plugin configuration",canvas_panel:{request:"Request",response:"Response",node_count_plural:"{count} nodes",node_count_singular:"1 node"},panel_segments:{nodes:"Nodes",resources:{title:"Resources",vault:{title:"Vault secrets",add_button:"Add vault resource",name_exists_error:"Vault name already exists",name_required_error:"Vault name is required",edit:"Edit",delete:"Delete"},cache:{title:"Cache configuration",add_button:"Add cache configuration",strategy_options:{memory:"Memory",redis:"Redis"},select_redis_configuration:"Select a shared Redis configuration",inline_config:"Inline config",inline_config_preview:"You are using a dedicated Redis configuration, This is a preview of your current setup, please edit it in code editor"}}},vault_secret_picker:{title:"Add secret to Datakit",proceed_button_text:"Add secret",secret_name:{label:"Secret name",placeholder:"Enter a name",help:"A unique identifier for this secret in your Datakit configuration"}},node_panel:{title:"Node types",description:"Drag a node onto the canvas to add it to your data flow.",groups:{external_interaction:"External interaction",control_flow:"Control flow",data_transformation:"Data transformation",data_value:"Data value",authentication:"Authentication"}},examples:"Examples",debug:{label:"Debug",description:'Enables detailed error messages in client responses, making debugging easier. <a href="https://developer.konghq.com/plugins/datakit/#debugging" target="_blank">See the docs</a> for details.'},actions:{zoom_in:"Zoom in",zoom_out:"Zoom out",fit_view:"Zoom to fit",auto_layout:"Auto layout",undo:"Undo",redo:"Redo",duplicate:"Duplicate",remove_from_branch:"Remove from branch",delete:"Delete",view_docs:"View docs",done:"Done"},node_types:{call:{summary:"Call a third-party API",description:"Send an HTTP request and retrieve the response."},jq:{summary:"Transform data and cast variables with jq",description:'The <code>jq</code> node executes a jq script for processing JSON. See the official <a href="https://jqlang.org" target="_blank">jq docs</a> for more details.'},exit:{summary:"Return directly to the client",description:"Trigger an early exit that produces a direct response, rather than forwarding a proxied response."},property:{summary:"Get and set Kong Gateway-specific data",description:"Get and set Kong Gateway host and request properties."},static:{summary:"Configure static input values ahead of time",description:"Emits static values to be used as inputs for other nodes. The <code>static</code> node can help you with hardcoding some known value for an input."},branch:{summary:"Execute nodes based on matching input conditions",description:"Execute different nodes based on matching input conditions, such as a cache hit or miss."},cache:{summary:"Store and fetch cached data",description:"Store data into cache and fetch cached data from cache."},xml_to_json:{summary:"Transform XML to JSON",description:"Transform XML to JSON."},json_to_xml:{summary:"Transform JSON to XML",description:"Transform JSON to XML."},jwt_decode:{summary:"Decode JWT headers and claims",description:"Parse a JWT without verifying its signature."},jwt_sign:{summary:"Create and sign JWTs",description:"Generate a signed JWT from configured claims and a signing key."},jwt_verify:{summary:"Verify JWT signature and claims",description:"Verify a JWT signature and validate claims such as exp, nbf, iss, and aud."},request:{name:"request",description:"Reads incoming client request properties. You cannot specify request node input."},response:{name:"response",description:"Updates properties of the outgoing client response."},service_request:{name:"service request",description:"Updates properties of the request sent to the service being proxied to."},service_response:{name:"service response",description:"Reads response properties from the service being proxied to."},vault:{name:"Vault",description:"Vault is a tool for securely accessing secrets."}},node_properties:{name:"Name",configuration:"Configuration",input:{label:"Inputs configuration",placeholder:"Select a source",add_button:"Add an input",or:"or",input:"Input",fields:"Fields",source:"Source",tooltip:"Fields are part of the node input. A source can connect to either the fields or the input, but not both."},input_name:{label:"Input name",placeholder:"Enter an input name"},jq:{label:"jq script",help:"Refer to {link} for full documentation."},output_value:{label:"Output value",value_name:"Value name",value:"Value",add_button:"Add a value"},property:{get:"get",set:"set"},branch:{placeholder:"Select nodes"},jwt:{static_claims:{label:"Static claims",help:"Enter a JSON object. It will be stored as the node's static claims map.",errors:{invalid_json_object:"Static claims must be a valid JSON object"}}},errors:{invalid_identifier_format:"{fieldName} must start with a letter or underscore and contain only letters, numbers, underscores, or hyphens",invalid_url_format:"Not a valid URL format",not_empty:"{fieldName} is required",not_float:"{fieldName} must be a float",not_integer:"{fieldName} must be an integer",not_number:"{fieldName} must be a number",not_unique:"{fieldName} must be unique",number_range:"{fieldName} must be between {min} and {max}",string_len_range:"{fieldName} must be between {minLength} and {maxLength} characters",reserved_node_name:'"{nodeName}" is a reserved node name',attributes_required:"Provide at least one of attributes_block_name or attributes_name_prefix"}},error:{invalid_connection:"Invalid connection",branch_cycle:"Cannot create a circular branch relationship"},confirm:{title:"Connection conflict",message:{confirm:"Are you sure you want to make this change?",switch:"You can connect an output source to either all inputs of a node or to individual inputs.",override:"Each input can connect to only one output, but one output can connect to many inputs.",branch_replace:"This node already belongs to another branch. Move it to the new branch?"},proceed:"Yes, update"},leave_confirm:"Leave current page? Changes you made may not be saved."},code_editor:{mode:"Code editor"}},vault_picker:{component_error:"The vault secret picker is not available"},tag_helper:"Use comma to separate values. eg: value1, value2",foreign_placeholder:"Enter a UUID of {entity}"}},redis:{title:"Redis configuration",managed_ui:{title:"Redis",shared_configuration:{label:"Use shared configuration",description:"Select an existing shared Redis configuration or create a new one. Any updates to this configuration will automatically apply to all associated plugins.",badge:"Recommended"},dedicated_configuration:{label:"Use locally-scoped configuration",description:"Create and use a Redis configuration specifically for this plugin."},selector:{placeholder:"Filter Redis configurations...",create_new:"New Redis"}},shared_configuration:{label:"Shared configuration",description:"Select an existing shared Redis configuration or create a new one. Changes to this configuration automatically apply to all associated plugins.",title:"Shared Redis configuration",error:"Fetching shared Redis configurations failed."},dedicated_configuration:{label:"Dedicated configuration",description:"Create a Redis configuration that is used only by this plugin. Changes won’t affect other plugins."},config_card:{common_fields:{created_at_label:"Created at",updated_at_label:"Last updated at",type_label:"Redis type"}}},glossary:{plugin:"plugin"},custom_field:{key_auth_identity_realms:{cp_label:"Current control plane",cp_group_label:"Control plane",realm_group_label:"Realms (can only select one)"}},sp:{window_type:{label:"Rate limit window type",help:"Sets the time window type to either <code>sliding</code> (default) or <code>fixed</code>.<br><ul><li>Sliding windows apply the rate limiting logic while taking into account previous hit rates (from the window that immediately precedes the current) using a dynamic weight.</li><li>Fixed windows consist of buckets that are statically assigned to a definitive time range, each request is mapped to only one fixed window based on its timestamp and will affect only that window's counters.</li></ul>",options:{fixed:"Fixed",sliding:"Sliding"}},request_limits:{title:"Request limits",subtitle:"Set one or more limits on the number of API requests allowed within a defined timeframe.",label:"Limit",label_index:"Limit {index}",request_number:"Request number",time_interval:"Time interval",interval_determiner:"Every",seconds:"Seconds"},error_message:{label:"Error message",code_placeholder:"Code message",message_placeholder:"Error message",help:"Set a custom error code and message to be returned when the rate limit is exceeded."},start_with_a_use_case:"Start with a use case:",use_cases:{fixed:{hourly_500:{label:"500 requests every hour",description:"A fixed limit of 500 requests per hour resetting sharply on the hour, ensuring no user can exceed this limit."},half_hourly_200:{label:"200 requests every 30 minutes",description:"Users are allowed 200 requests per 30 minutes, resetting exactly on the 30 minute mark with no carryover of unused limits."},daily_500:{label:"500 requests every day",description:"A strict limit of 5000 requests per day resetting promptly at midnight, preventing any burst traffic or inconsistent user experiences."}},sliding:{hourly_100:{label:"100 requests every hour",description:"Maximum of 100 requests every rolling hour, continuously adjusting the count over the course of the hour. No hard limit or known reset."},half_hourly_300:{label:"300 requests every 30 minutes",description:"Each user can make up to 300 requests in any rolling 30 minute period, with older requests dropping off as new requests are made."},hourly_500:{label:"500 requests every hour",description:`Each user is allowed 500 requests per hour.
|
|
2
2
|
If the limit is exceeded and the user receives a 429 error, each additional request within the sliding window (hour)
|
|
3
|
-
will extend the wait time by about 12 minutes, continuously adjusting as new requests are made.`}}}},custom_plugin_form:{step1:{title:"Custom plugin type",types:{installed:{label:"Installed custom plugin",description:"Install and manage plugins with full control over deployment and runtime. Requires restarting data planes."},streamed:{label:"Streamed custom plugin",description:"Deploy and update plugins on running data planes without requiring gateway access."},cloned:{label:"Cloned plugin",description:"Duplicate an existing plugin to run multiple instances within a single request."}},compare_trigger:"Compare deployment options",compare_table:{columns:{installed:"Installed custom plugin",streamed:"Streamed custom plugin",cloned:"Cloned plugin"},rows:{main_use_case:{header:"Main use case",installed:"Extend Kong functionality with custom plugins and control who can modify and roll out changes.",streamed:"Extend Kong functionality with plugins without requiring sysadmin access to data plane instances.",cloned:"Modify an existing plugin to run multiple instances with different names or priorities."},file_supplied:{header:"File supplied",installed:{handler:"handler.lua",schema:"schema.lua",additional:"Any additional files or libraries needed"},streamed:{handler:"handler.lua",schema:"schema.lua"}},how_installed:{header:"How it's installed",installed:"Install directly on the data plane",streamed:"Through gateway configuration changes",cloned:"Through gateway configuration changes"},sandboxing:{header:"Sandboxing",streamed:"Follows the standard sandboxing settings. {link}",streamed_link:"Link to docs",cloned:"Inherit the same sandboxing as the original plugins"},data_plane_reload:{header:"Data plane reload"}}}},step2_files:{title:"Custom plugin files",schema_file:{label:"Upload schema file",placeholder:"No file selected",placeholder_edit:"File not changed",button_text:"Select File",help:"Only Lua based schemas are supported by Konnect. Other plugin modules can be in any language as desired. Learn more"},handler_file:{label:"Upload handler file",placeholder:"No file selected",placeholder_edit:"File not changed",button_text:"Select File",help:"Upload plugin handler to the data plane."},plugin_modules:{label:"Plugin modules",alert:"Upload all plugin modules to the data plane: schema.lua, handler.lua"}},step2_clone:{title:"Clone plugin",select_plugin:{label:"Select a plugin",placeholder:"Type to search"}},step3:{title:"General information",description:"Enter a custom name for this custom plugin",name:{label:"Name",placeholder:"Enter a unique name",help:"The name must be identical to the name of the plugin in the schema file."},alias_name:{label:"Alias name",placeholder:"Enter a unique name"},priority:{label:"Priority",tooltip:"Set the execution priority for this cloned plugin",help:{text:"Optional. Use a number or +/- to set priority relative to the original plugin. If priority isn't set, plugins run in alphabetical order. {link} in the docs.",link:"Learn more"}}},errors:{file_read_error:"Failed to read file content. Please try again.",file_too_large:"File size exceeds the maximum limit of 1 MB.",plugin_not_found:"The selected plugin could not be found. Please refresh the list and try again.",no_supported_types:"No supported custom plugin types are available in this context.",unsupported_plugin_type:"Unsupported plugin type {type}."}}};function Je(){const e=Kt.createI18n("en-us",Wt);return{i18n:e,i18nT:Kt.i18nTComponent(e)}}function eg(){const{capitalize:e}=fe.useStringHelpers(),t=["methods","logout_methods"];return{setFieldType:(d,m,f)=>{var h,g,y;if(!(!d||!m||!f))switch(f.type){case"boolean":d[m]={type:fe.ConfigurationSchemaType.BadgeStatus,...d[m]};break;case"string":f.encrypted?d[m]={type:fe.ConfigurationSchemaType.Redacted,...d[m]}:d[m]={type:fe.ConfigurationSchemaType.Text,...d[m]};break;case"set":((h=f.elements)==null?void 0:h.type)==="string"&&(d[m]={type:fe.ConfigurationSchemaType.BadgeTag,...d[m]});break;case"array":t.includes(m)?d[m]={type:fe.ConfigurationSchemaType.BadgeMethod,...d[m]}:((g=f.elements)==null?void 0:g.type)==="string"?f.encrypted?d[m]={type:fe.ConfigurationSchemaType.RedactedArray,...d[m]}:d[m]={type:fe.ConfigurationSchemaType.BadgeTag,...d[m]}:((y=f.elements)==null?void 0:y.type)==="record"&&(d[m]={type:fe.ConfigurationSchemaType.Json,...d[m]});break;case"record":d[m]={type:fe.ConfigurationSchemaType.Json,...d[m]};break;default:d[m]={type:fe.ConfigurationSchemaType.Text,...d[m]};break}},convertToDotNotation:d=>d.replace(/-/g,"."),unFlattenObject:d=>{const m={};for(const f in d){const h=f.split(".");h.reduce((g,y,_)=>g[y]||(g[y]=isNaN(h[_+1])?h.length-1===_?d[f]:{}:[]),m)}return m},dismissField:(d,m,f="redis",h=!1)=>{const g=new RegExp("(?<=-redis-).*");if(typeof d!="object"||d===null)return d;f==="redis"?Object.keys(d).forEach(y=>{y.match(g)&&delete d[y]}):h?d[f]=null:delete d[f],Object.assign(d,m)},isObjectEmpty:d=>Object.keys(d).length===0,unsetNullForeignKey:(d,m)=>{["service.id","route.id","consumer.id","consumer_group.id"].indexOf(d)>-1&&m[d]===null&&(delete m[d],m[d.replace(".id","")]=null)},formatPluginFieldLabel:d=>e(d.replace(/_/g," ")),getTallestPluginCardHeight:d=>{let m=0;if(d.length)for(let f=0;f<d.length;f++){const h=d[f].$el;m=h.offsetHeight>m?h.offsetHeight:m}return m},getToggleVisibility:(d,m)=>{var f,h;if(d&&m){const g=(h=(f=window==null?void 0:window.getComputedStyle(d))==null?void 0:f.getPropertyValue("grid-template-columns"))==null?void 0:h.split(" ").length;return m>g}return!0}}}var ml=(e=>(e.REDIS_CE="redis-ce",e.REDIS_EE="redis-ee",e))(ml||{});const hl=["Featured"],kd=[Z.PluginGroup.AUTHENTICATION,Z.PluginGroup.AI,Z.PluginGroup.SECURITY,Z.PluginGroup.TRAFFIC_CONTROL,Z.PluginGroup.SERVERLESS,Z.PluginGroup.ANALYTICS_AND_MONITORING,Z.PluginGroup.TRANSFORMATIONS,Z.PluginGroup.LOGGING,Z.PluginGroup.DEPLOYMENT,Z.PluginGroup.WEBSOCKET,Z.PluginGroup.MONETIZATION,Z.PluginGroup.CUSTOM_PLUGINS],gl=[Z.PluginGroup.AI,Z.PluginGroup.ANALYTICS_AND_MONITORING,Z.PluginGroup.AUTHENTICATION,Z.PluginGroup.LOGGING,Z.PluginGroup.MONETIZATION,Z.PluginGroup.SECURITY,Z.PluginGroup.SERVERLESS,Z.PluginGroup.TRAFFIC_CONTROL,Z.PluginGroup.TRANSFORMATIONS,Z.PluginGroup.CUSTOM_PLUGINS];var bo=(e=>(e.SERVICE="service_id",e.ROUTE="route_id",e.CONSUMER="consumer_id",e.CONSUMER_GROUP="consumer_group_id",e))(bo||{});const _o=e=>{const t=Object.fromEntries(e.fields.map(r=>Object.entries(r)[0]));return"id"in t||(t.id={}),t},wo={label:"Tags",name:"tags",type:"input",inputType:"text",valueType:"array",valueArrayType:"string",placeholder:"Enter list of tags",help:"An optional set of strings for grouping and filtering, separated by commas.",hint:"e.g. tag1, tag2, tag3"},ni={getColumnFields:_o,tags:wo,id:{label:"ID"},enabled:{label:"Enabled",indexed:!0,type:"boolean"},created_at:{label:"Created"},updated_at:{label:"Last updated"},fields:{arrayItems(e){const t=e.inputAttributes||{};return delete e.inputAttributes,{type:"array",itemContainerComponent:"FieldArrayItem",fieldClasses:"kong-form-array-field",fieldItemsClasses:"kong-form-array-field-item",newElementButtonLabelClasses:"kong-form-new-element-button-label",inputAttributes:{class:"form-control",style:{minWidth:"200px"},...t},removeElementButtonLabel:"remove",styleClasses:"kong-form-field-wrapper",inputType:"text",valueType:"array",valueArrayType:"string",...e}}}},tg={fields:[{group:{hint:"The arbitrary group name to associate to the consumer."}},{tags:wo}]},uE={fields:[{id:{uuid:!0,type:"string",auto:!0}},{created_at:{auto:!0,timestamp:!0,type:"integer"}},{consumer:{reference:"consumers",type:"foreign",on_delete:"cascade",required:!0}},{group:{required:!0,type:"string",hint:"The arbitrary group name to associate to the consumer."}},{tags:{elements:{type:"string",required:!0},type:"set"}}]},ng={fields:[{username:{}},{password:{inputType:"password"}},{tags:wo}]},dE={fields:[{id:{uuid:!0,type:"string",auto:!0}},{created_at:{auto:!0,timestamp:!0,type:"integer"}},{consumer:{reference:"consumers",type:"foreign",on_delete:"cascade",required:!0}},{username:{required:!0,type:"string",unique:!0}},{password:{type:"string",required:!0,encrypted:!0}},{tags:{elements:{type:"string",required:!0},type:"set"}}]},rg=n.defineComponent({name:"KeyAuthIdentityRealmsBase",__name:"Base",props:{modelValue:{default:[{scope:"cp",id:null,region:null}]},modelModifiers:{}},emits:["update:modelValue"],setup(e){const t=n.useModel(e,"modelValue"),{i18n:r}=nt.useI18n(),{t:o}=r,i={value:"current-cp",label:o("custom_field.key_auth_identity_realms.cp_label"),group:o("custom_field.key_auth_identity_realms.cp_group_label")},a=n.inject(et.FORMS_CONFIG),{axiosInstance:s}=fe.useAxios(a==null?void 0:a.axiosRequestConfig),l=()=>{if((a==null?void 0:a.app)==="konnect"){const f=/\b(us|eu|au|me|in)\b/.exec((a==null?void 0:a.apiBaseUrl)||"");if(f)return{region:f[1]}}return{}},c=n.ref(!0),u=n.ref([i]),p=async()=>{if((a==null?void 0:a.app)==="konnect")try{c.value=!0;let f=`${a==null?void 0:a.apiBaseUrl}/v1/realms`;const h=[];do{const g=await s.get(f);g&&g.data&&g.data.data&&h.push(...g.data.data.map(y=>({value:y.id,label:y.name,group:o("custom_field.key_auth_identity_realms.realm_group_label")}))),f=g.data.meta.next?`${a==null?void 0:a.apiBaseUrl}${g.data.meta.next}`:null}while(f);u.value=[i,...h]}catch(f){console.error("Failed to fetch Konnect realms",f)}finally{c.value=!1}},d=n.computed(()=>t.value.map(f=>f.id||"current-cp")),m=f=>{const h=f.includes("current-cp")?[{scope:"cp",id:null,region:null}]:[],g=t.value.filter(({scope:k})=>k!=="cp").map(({id:k})=>k),y=f.filter(k=>k!=="current-cp"),C=(g.length!==y.length||g.some(k=>!y.includes(k))?y.filter(k=>!g.includes(k)):y).map(k=>({...l(),scope:"realm",id:k}));t.value=[...h,...C]};return n.onMounted(()=>{p()}),(f,h)=>{const g=n.resolveComponent("KMultiselect");return n.openBlock(),n.createBlock(g,{items:u.value,loading:c.value,"model-value":d.value,"onUpdate:modelValue":m},null,8,["items","loading","model-value"])}}}),fE={class:"field-wrapper"},pE=n.defineComponent({__name:"VfgAdapter",props:{disabled:{type:Boolean},formOptions:{},model:{},schema:{},vfg:{},errors:{},hint:{}},emits:["modelUpdated"],setup(e,{expose:t,emit:r}){const o=e,i=r,{clearValidationErrors:a,value:s}=et.composables.useAbstractFields({model:n.toRef(()=>o.model),schema:o.schema,formOptions:o.formOptions,emitModelUpdated:l=>{i("modelUpdated",l.value,l.model)}});return t({clearValidationErrors:a}),(l,c)=>(n.openBlock(),n.createElementBlock("div",fE,[n.createVNode(rg,{modelValue:n.unref(s),"onUpdate:modelValue":c[0]||(c[0]=u=>n.isRef(s)?s.value=u:null)},null,8,["modelValue"])]))}}),Be=(e,t)=>{const r=e.__vccOpts||e;for(const[o,i]of t)r[o]=i;return r},mE=Be(pE,[["__scopeId","data-v-269e85ed"]]),og={fields:[{key:{submitWhenNull:!1,hint:`You can optionally set your own unique key to authenticate the
|
|
3
|
+
will extend the wait time by about 12 minutes, continuously adjusting as new requests are made.`}}}},custom_plugin_form:{step1:{title:"Custom plugin type",types:{installed:{label:"Installed custom plugin",description:"Install and manage plugins with full control over deployment and runtime. Requires restarting data planes."},streamed:{label:"Streamed custom plugin",description:"Deploy and update plugins on running data planes without requiring gateway access."},cloned:{label:"Cloned plugin",description:"Duplicate an existing plugin to run multiple instances within a single request."}},compare_trigger:"Compare deployment options",compare_table:{columns:{installed:"Installed custom plugin",streamed:"Streamed custom plugin",cloned:"Cloned plugin"},rows:{main_use_case:{header:"Main use case",installed:"Extend Kong functionality with custom plugins and control who can modify and roll out changes.",streamed:"Extend Kong functionality with plugins without requiring sysadmin access to data plane instances.",cloned:"Modify an existing plugin to run multiple instances with different names or priorities."},file_supplied:{header:"File supplied",installed:{handler:"handler.lua",schema:"schema.lua",additional:"Any additional files or libraries needed"},streamed:{handler:"handler.lua",schema:"schema.lua"}},how_installed:{header:"How it's installed",installed:"Install directly on the data plane",streamed:"Through gateway configuration changes",cloned:"Through gateway configuration changes"},sandboxing:{header:"Sandboxing",streamed:"Follows the standard sandboxing settings. {link}",streamed_link:"Link to docs",cloned:"Inherit the same sandboxing as the original plugins"},data_plane_reload:{header:"Data plane reload"}}}},step2_files:{title:"Custom plugin files",schema_file:{label:"Upload schema file",placeholder:"No file selected",placeholder_edit:"File not changed",button_text:"Select File",help:"Only Lua based schemas are supported by Konnect. Other plugin modules can be in any language as desired. Learn more"},handler_file:{label:"Upload handler file",placeholder:"No file selected",placeholder_edit:"File not changed",button_text:"Select File",help:"Upload plugin handler to the data plane."},plugin_modules:{label:"Plugin modules",alert:"Upload all plugin modules to the data plane: schema.lua, handler.lua"}},step2_clone:{title:"Clone plugin",select_plugin:{label:"Select a plugin",placeholder:"Type to search"}},step3:{title:"General information",description:"Enter a custom name for this custom plugin",name:{label:"Name",placeholder:"Enter a unique name",help:"The name must be identical to the name of the plugin in the schema file."},alias_name:{label:"Alias name",placeholder:"Enter a unique name"},priority:{label:"Priority",tooltip:"Set the execution priority for this cloned plugin",help:{text:"Optional. Use a number or +/- to set priority relative to the original plugin. If priority isn't set, plugins run in alphabetical order. {link} in the docs.",link:"Learn more"}}},errors:{file_read_error:"Failed to read file content. Please try again.",file_too_large:"File size exceeds the maximum limit of 1 MB.",plugin_not_found:"The selected plugin could not be found. Please refresh the list and try again.",no_supported_types:"No supported custom plugin types are available in this context.",unsupported_plugin_type:"Unsupported plugin type {type}."}}};function Je(){const e=Kt.createI18n("en-us",Wt);return{i18n:e,i18nT:Kt.i18nTComponent(e)}}function eg(){const{capitalize:e}=fe.useStringHelpers(),t=["methods","logout_methods"];return{setFieldType:(d,m,f)=>{var h,g,y;if(!(!d||!m||!f))switch(f.type){case"boolean":d[m]={type:fe.ConfigurationSchemaType.BadgeStatus,...d[m]};break;case"string":f.encrypted?d[m]={type:fe.ConfigurationSchemaType.Redacted,...d[m]}:d[m]={type:fe.ConfigurationSchemaType.Text,...d[m]};break;case"set":((h=f.elements)==null?void 0:h.type)==="string"&&(d[m]={type:fe.ConfigurationSchemaType.BadgeTag,...d[m]});break;case"array":t.includes(m)?d[m]={type:fe.ConfigurationSchemaType.BadgeMethod,...d[m]}:((g=f.elements)==null?void 0:g.type)==="string"?f.encrypted?d[m]={type:fe.ConfigurationSchemaType.RedactedArray,...d[m]}:d[m]={type:fe.ConfigurationSchemaType.BadgeTag,...d[m]}:((y=f.elements)==null?void 0:y.type)==="record"&&(d[m]={type:fe.ConfigurationSchemaType.Json,...d[m]});break;case"record":d[m]={type:fe.ConfigurationSchemaType.Json,...d[m]};break;default:d[m]={type:fe.ConfigurationSchemaType.Text,...d[m]};break}},convertToDotNotation:d=>d.replace(/-/g,"."),unFlattenObject:d=>{const m={};for(const f in d){const h=f.split(".");h.reduce((g,y,_)=>g[y]||(g[y]=isNaN(h[_+1])?h.length-1===_?d[f]:{}:[]),m)}return m},dismissField:(d,m,f="redis",h=!1)=>{const g=new RegExp("(?<=-redis-).*");if(typeof d!="object"||d===null)return d;f==="redis"?Object.keys(d).forEach(y=>{y.match(g)&&delete d[y]}):h?d[f]=null:delete d[f],Object.assign(d,m)},isObjectEmpty:d=>Object.keys(d).length===0,unsetNullForeignKey:(d,m)=>{["service.id","route.id","consumer.id","consumer_group.id"].indexOf(d)>-1&&m[d]===null&&(delete m[d],m[d.replace(".id","")]=null)},formatPluginFieldLabel:d=>e(d.replace(/_/g," ")),getTallestPluginCardHeight:d=>{let m=0;if(d.length)for(let f=0;f<d.length;f++){const h=d[f].$el;m=h.offsetHeight>m?h.offsetHeight:m}return m},getToggleVisibility:(d,m)=>{var f,h;if(d&&m){const g=(h=(f=window==null?void 0:window.getComputedStyle(d))==null?void 0:f.getPropertyValue("grid-template-columns"))==null?void 0:h.split(" ").length;return m>g}return!0}}}var ml=(e=>(e.REDIS_CE="redis-ce",e.REDIS_EE="redis-ee",e))(ml||{});const hl=["Featured"],kd=[Z.PluginGroup.AUTHENTICATION,Z.PluginGroup.AI,Z.PluginGroup.SECURITY,Z.PluginGroup.TRAFFIC_CONTROL,Z.PluginGroup.SERVERLESS,Z.PluginGroup.ANALYTICS_AND_MONITORING,Z.PluginGroup.TRANSFORMATIONS,Z.PluginGroup.LOGGING,Z.PluginGroup.DEPLOYMENT,Z.PluginGroup.WEBSOCKET,Z.PluginGroup.MONETIZATION,Z.PluginGroup.CUSTOM_PLUGINS],gl=[Z.PluginGroup.AI,Z.PluginGroup.ANALYTICS_AND_MONITORING,Z.PluginGroup.AUTHENTICATION,Z.PluginGroup.LOGGING,Z.PluginGroup.MONETIZATION,Z.PluginGroup.SECURITY,Z.PluginGroup.SERVERLESS,Z.PluginGroup.TRAFFIC_CONTROL,Z.PluginGroup.TRANSFORMATIONS,Z.PluginGroup.CUSTOM_PLUGINS];var bo=(e=>(e.SERVICE="service_id",e.ROUTE="route_id",e.CONSUMER="consumer_id",e.CONSUMER_GROUP="consumer_group_id",e))(bo||{});const _o=e=>{const t=Object.fromEntries(e.fields.map(r=>Object.entries(r)[0]));return"id"in t||(t.id={}),t},wo={label:"Tags",name:"tags",type:"input",inputType:"text",valueType:"array",valueArrayType:"string",placeholder:"Enter list of tags",help:"An optional set of strings for grouping and filtering, separated by commas.",hint:"e.g. tag1, tag2, tag3"},ni={getColumnFields:_o,tags:wo,id:{label:"ID"},enabled:{label:"Enabled",indexed:!0,type:"boolean"},created_at:{label:"Created"},updated_at:{label:"Last updated"},fields:{arrayItems(e){const t=e.inputAttributes||{};return delete e.inputAttributes,{type:"array",itemContainerComponent:"FieldArrayItem",fieldClasses:"kong-form-array-field",fieldItemsClasses:"kong-form-array-field-item",newElementButtonLabelClasses:"kong-form-new-element-button-label",inputAttributes:{class:"form-control",style:{minWidth:"200px"},...t},removeElementButtonLabel:"remove",styleClasses:"kong-form-field-wrapper",inputType:"text",valueType:"array",valueArrayType:"string",...e}}}},tg={fields:[{group:{hint:"The arbitrary group name to associate to the consumer."}},{tags:wo}]},uE={fields:[{id:{uuid:!0,type:"string",auto:!0}},{created_at:{auto:!0,timestamp:!0,type:"integer"}},{consumer:{reference:"consumers",type:"foreign",on_delete:"cascade",required:!0}},{group:{required:!0,type:"string",hint:"The arbitrary group name to associate to the consumer."}},{tags:{elements:{type:"string",required:!0},type:"set"}}]},ng={fields:[{username:{}},{password:{inputType:"password"}},{tags:wo}]},dE={fields:[{id:{uuid:!0,type:"string",auto:!0}},{created_at:{auto:!0,timestamp:!0,type:"integer"}},{consumer:{reference:"consumers",type:"foreign",on_delete:"cascade",required:!0}},{username:{required:!0,type:"string",unique:!0}},{password:{type:"string",required:!0,encrypted:!0}},{tags:{elements:{type:"string",required:!0},type:"set"}}]},rg=n.defineComponent({name:"KeyAuthIdentityRealmsBase",__name:"Base",props:{modelValue:{default:[{scope:"cp",id:null,region:null}]},modelModifiers:{}},emits:["update:modelValue"],setup(e){const t=n.useModel(e,"modelValue"),{i18n:r}=nt.useI18n(),{t:o}=r,i={value:"current-cp",label:o("custom_field.key_auth_identity_realms.cp_label"),group:o("custom_field.key_auth_identity_realms.cp_group_label")},a=n.inject(et.FORMS_CONFIG),{axiosInstance:s}=fe.useAxios(a==null?void 0:a.axiosRequestConfig),l=()=>{if((a==null?void 0:a.app)==="konnect"){const f=/\b(us|eu|au|me|in|sg)\b/.exec((a==null?void 0:a.apiBaseUrl)||"");if(f)return{region:f[1]}}return{}},c=n.ref(!0),u=n.ref([i]),p=async()=>{if((a==null?void 0:a.app)==="konnect")try{c.value=!0;let f=`${a==null?void 0:a.apiBaseUrl}/v1/realms`;const h=[];do{const g=await s.get(f);g&&g.data&&g.data.data&&h.push(...g.data.data.map(y=>({value:y.id,label:y.name,group:o("custom_field.key_auth_identity_realms.realm_group_label")}))),f=g.data.meta.next?`${a==null?void 0:a.apiBaseUrl}${g.data.meta.next}`:null}while(f);u.value=[i,...h]}catch(f){console.error("Failed to fetch Konnect realms",f)}finally{c.value=!1}},d=n.computed(()=>t.value.map(f=>f.id||"current-cp")),m=f=>{const h=f.includes("current-cp")?[{scope:"cp",id:null,region:null}]:[],g=t.value.filter(({scope:k})=>k!=="cp").map(({id:k})=>k),y=f.filter(k=>k!=="current-cp"),C=(g.length!==y.length||g.some(k=>!y.includes(k))?y.filter(k=>!g.includes(k)):y).map(k=>({...l(),scope:"realm",id:k}));t.value=[...h,...C]};return n.onMounted(()=>{p()}),(f,h)=>{const g=n.resolveComponent("KMultiselect");return n.openBlock(),n.createBlock(g,{items:u.value,loading:c.value,"model-value":d.value,"onUpdate:modelValue":m},null,8,["items","loading","model-value"])}}}),fE={class:"field-wrapper"},pE=n.defineComponent({__name:"VfgAdapter",props:{disabled:{type:Boolean},formOptions:{},model:{},schema:{},vfg:{},errors:{},hint:{}},emits:["modelUpdated"],setup(e,{expose:t,emit:r}){const o=e,i=r,{clearValidationErrors:a,value:s}=et.composables.useAbstractFields({model:n.toRef(()=>o.model),schema:o.schema,formOptions:o.formOptions,emitModelUpdated:l=>{i("modelUpdated",l.value,l.model)}});return t({clearValidationErrors:a}),(l,c)=>(n.openBlock(),n.createElementBlock("div",fE,[n.createVNode(rg,{modelValue:n.unref(s),"onUpdate:modelValue":c[0]||(c[0]=u=>n.isRef(s)?s.value=u:null)},null,8,["modelValue"])]))}}),Be=(e,t)=>{const r=e.__vccOpts||e;for(const[o,i]of t)r[o]=i;return r},mE=Be(pE,[["__scopeId","data-v-269e85ed"]]),og={fields:[{key:{submitWhenNull:!1,hint:`You can optionally set your own unique key to authenticate the
|
|
4
4
|
client. If missing, it will be generated for you.`,inputType:"password",encrypted:!0}},{tags:wo},{ttl:{help:"Time-to-live (in seconds) value for data"}}]},hE=e=>{var t;return(e==null?void 0:e.app)==="kongManager"?{fieldsToDelete:["config-identity_realms"],shamefullyTransformPayload:({payload:r})=>{(e!=null&&e.credential&&typeof r.ttl!="number"||Number.isNaN(r.ttl))&&(r.ttl=0)}}:{"config-identity_realms":{component:((t=e==null?void 0:e.experimentalRenders)==null?void 0:t.keyAuthIdentityRealms)??!1?n.markRaw(mE):null}}},gE={fields:[{id:{uuid:!0,type:"string",auto:!0}},{created_at:{auto:!0,timestamp:!0,type:"integer"}},{consumer:{reference:"consumers",type:"foreign",on_delete:"cascade",required:!0}},{key:{auto:!0,hint:"If left empty, a key will be generated after saving this form.",required:!1,type:"string",encrypted:!0,unique:!0}},{tags:{elements:{type:"string",required:!0},type:"set"}},{ttl:{between:[0,1e8],description:"Time-to-live (in seconds) value for data",type:"number"}}]},ig={fields:[{username:{hint:"The username to use in the HMAC Signature verification."}},{secret:{inputType:"text",submitWhenNull:!1,hint:`The secret to use in the HMAC Signature verification. Note that
|
|
5
5
|
if this parameter isn’t provided, Kong will generate a value for you and
|
|
6
6
|
send it as part of the response body.`}},{tags:wo}]},yE={fields:[{id:{uuid:!0,type:"string",auto:!0}},{created_at:{auto:!0,timestamp:!0,type:"integer"}},{consumer:{reference:"consumers",type:"foreign",on_delete:"cascade",required:!0}},{username:{required:!0,type:"string",unique:!0,hint:"The username to use in the HMAC Signature verification."}},{secret:{auto:!0,type:"string",encrypted:!0,hint:"The secret to use in the HMAC Signature verification. Note that if this parameter isn’t provided, Kong will generate a value for you and send it as part of the response body."}},{tags:{elements:{type:"string",required:!0},type:"set"}}]},bE={fields:[{key:{submitWhenNull:!1,hint:`A unique string identifying the credential. If left out, it will
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kong-ui-public/entities-plugins",
|
|
3
|
-
"version": "9.199.
|
|
3
|
+
"version": "9.199.3-pr.3205.d15ebd4d0.0",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "./dist/entities-plugins.umd.js",
|
|
6
6
|
"module": "./dist/entities-plugins.es.js",
|
|
@@ -51,8 +51,8 @@
|
|
|
51
51
|
"vue-router": "^4.6.4 || ^5.0.6",
|
|
52
52
|
"zod": ">= 4.1.3 < 5",
|
|
53
53
|
"@kong-ui-public/entities-shared": "^3.43.1",
|
|
54
|
-
"@kong-ui-public/
|
|
55
|
-
"@kong-ui-public/
|
|
54
|
+
"@kong-ui-public/i18n": "^2.4.6",
|
|
55
|
+
"@kong-ui-public/monaco-editor": "^0.22.7"
|
|
56
56
|
},
|
|
57
57
|
"peerDependenciesMeta": {
|
|
58
58
|
"@playwright/test": {
|
|
@@ -87,9 +87,9 @@
|
|
|
87
87
|
"vue-router": "^5.0.6",
|
|
88
88
|
"zod": "^4.3.6",
|
|
89
89
|
"@kong-ui-public/entities-shared": "^3.43.1",
|
|
90
|
-
"@kong-ui-public/entities-vaults": "^4.4.26",
|
|
91
90
|
"@kong-ui-public/i18n": "^2.4.6",
|
|
92
|
-
"@kong-ui-public/monaco-editor": "^0.22.7"
|
|
91
|
+
"@kong-ui-public/monaco-editor": "^0.22.7",
|
|
92
|
+
"@kong-ui-public/entities-vaults": "^4.4.26"
|
|
93
93
|
},
|
|
94
94
|
"repository": {
|
|
95
95
|
"type": "git",
|
|
@@ -111,11 +111,11 @@
|
|
|
111
111
|
"@kong-ui-public/entities-consumer-groups": "^4.3.24",
|
|
112
112
|
"@kong-ui-public/entities-consumers": "^4.3.24",
|
|
113
113
|
"@kong-ui-public/entities-gateway-services": "^3.19.10",
|
|
114
|
-
"@kong-ui-public/entities-plugins-icon": "^1.6.5",
|
|
115
114
|
"@kong-ui-public/entities-plugins-metadata": "^1.13.3",
|
|
115
|
+
"@kong-ui-public/entities-plugins-icon": "^1.6.5",
|
|
116
|
+
"@kong-ui-public/entities-redis-configurations": "^1.14.30",
|
|
116
117
|
"@kong-ui-public/entities-routes": "^3.21.31",
|
|
117
118
|
"@kong-ui-public/entities-vaults": "^4.4.26",
|
|
118
|
-
"@kong-ui-public/entities-redis-configurations": "^1.14.30",
|
|
119
119
|
"@kong-ui-public/forms": "^4.23.28"
|
|
120
120
|
},
|
|
121
121
|
"scripts": {
|