From e7dcd0846f3621682eeda009ea0720cf0502a445 Mon Sep 17 00:00:00 2001 From: Se7en Date: Thu, 27 Jun 2024 11:07:14 +0800 Subject: [PATCH] change plugin prioritys --- backend/sdk/src/main/resources/plugins/ai-cache/spec.yaml | 4 ++-- .../src/main/resources/plugins/ai-prompt-decorator/spec.yaml | 2 +- .../src/main/resources/plugins/ai-prompt-template/spec.yaml | 2 +- backend/sdk/src/main/resources/plugins/ai-proxy/spec.yaml | 2 +- backend/sdk/src/main/resources/plugins/ai-rag/spec.yaml | 2 +- .../src/main/resources/plugins/ai-security-guard/spec.yaml | 2 +- .../sdk/src/main/resources/plugins/ai-statistics/spec.yaml | 2 +- .../src/main/resources/plugins/ai-token-ratelimit/spec.yaml | 2 +- .../sdk/src/main/resources/plugins/ai-transformer/spec.yaml | 2 +- backend/sdk/src/main/resources/plugins/basic-auth/spec.yaml | 2 +- backend/sdk/src/main/resources/plugins/bot-detect/spec.yaml | 2 +- backend/sdk/src/main/resources/plugins/cors/spec.yaml | 2 +- .../sdk/src/main/resources/plugins/custom-response/spec.yaml | 2 +- backend/sdk/src/main/resources/plugins/hmac-auth/spec.yaml | 2 +- .../sdk/src/main/resources/plugins/ip-restriction/spec.yaml | 2 +- backend/sdk/src/main/resources/plugins/jwt-auth/spec.yaml | 2 +- backend/sdk/src/main/resources/plugins/key-auth/spec.yaml | 2 +- backend/sdk/src/main/resources/plugins/oidc/spec.yaml | 2 +- .../sdk/src/main/resources/plugins/request-block/spec.yaml | 4 ++-- backend/sdk/src/main/resources/plugins/waf/spec.yaml | 2 +- 20 files changed, 22 insertions(+), 22 deletions(-) diff --git a/backend/sdk/src/main/resources/plugins/ai-cache/spec.yaml b/backend/sdk/src/main/resources/plugins/ai-cache/spec.yaml index 5a37091c..5a3ea2e1 100644 --- a/backend/sdk/src/main/resources/plugins/ai-cache/spec.yaml +++ b/backend/sdk/src/main/resources/plugins/ai-cache/spec.yaml @@ -13,8 +13,8 @@ info: contact: name: johnlanni spec: - phase: UNSPECIFIED_PHASE - priority: 200 + phase: AUTHN + priority: 10 configSchema: openAPIV3Schema: type: object diff --git a/backend/sdk/src/main/resources/plugins/ai-prompt-decorator/spec.yaml b/backend/sdk/src/main/resources/plugins/ai-prompt-decorator/spec.yaml index 42bfe9c0..e0de6d09 100644 --- a/backend/sdk/src/main/resources/plugins/ai-prompt-decorator/spec.yaml +++ b/backend/sdk/src/main/resources/plugins/ai-prompt-decorator/spec.yaml @@ -14,7 +14,7 @@ info: name: rinfx spec: phase: UNSPECIFIED_PHASE - priority: 240 + priority: 450 configSchema: openAPIV3Schema: type: object diff --git a/backend/sdk/src/main/resources/plugins/ai-prompt-template/spec.yaml b/backend/sdk/src/main/resources/plugins/ai-prompt-template/spec.yaml index 51d30298..fb599109 100644 --- a/backend/sdk/src/main/resources/plugins/ai-prompt-template/spec.yaml +++ b/backend/sdk/src/main/resources/plugins/ai-prompt-template/spec.yaml @@ -14,7 +14,7 @@ info: name: rinfx spec: phase: UNSPECIFIED_PHASE - priority: 230 + priority: 500 configSchema: openAPIV3Schema: type: object diff --git a/backend/sdk/src/main/resources/plugins/ai-proxy/spec.yaml b/backend/sdk/src/main/resources/plugins/ai-proxy/spec.yaml index acfe08cc..b59b0f2f 100644 --- a/backend/sdk/src/main/resources/plugins/ai-proxy/spec.yaml +++ b/backend/sdk/src/main/resources/plugins/ai-proxy/spec.yaml @@ -16,7 +16,7 @@ info: email: ch3cho@qq.com spec: phase: UNSPECIFIED_PHASE - priority: 250 + priority: 100 configSchema: openAPIV3Schema: type: object diff --git a/backend/sdk/src/main/resources/plugins/ai-rag/spec.yaml b/backend/sdk/src/main/resources/plugins/ai-rag/spec.yaml index 4b66e09e..bce8eb95 100644 --- a/backend/sdk/src/main/resources/plugins/ai-rag/spec.yaml +++ b/backend/sdk/src/main/resources/plugins/ai-rag/spec.yaml @@ -14,7 +14,7 @@ info: name: rinfx spec: phase: UNSPECIFIED_PHASE - priority: 260 + priority: 400 configSchema: openAPIV3Schema: type: object diff --git a/backend/sdk/src/main/resources/plugins/ai-security-guard/spec.yaml b/backend/sdk/src/main/resources/plugins/ai-security-guard/spec.yaml index e2e3ffa7..bc547524 100644 --- a/backend/sdk/src/main/resources/plugins/ai-security-guard/spec.yaml +++ b/backend/sdk/src/main/resources/plugins/ai-security-guard/spec.yaml @@ -14,7 +14,7 @@ info: name: rinfx spec: phase: UNSPECIFIED_PHASE - priority: 220 + priority: 300 configSchema: openAPIV3Schema: type: object diff --git a/backend/sdk/src/main/resources/plugins/ai-statistics/spec.yaml b/backend/sdk/src/main/resources/plugins/ai-statistics/spec.yaml index 062549c4..421527d2 100644 --- a/backend/sdk/src/main/resources/plugins/ai-statistics/spec.yaml +++ b/backend/sdk/src/main/resources/plugins/ai-statistics/spec.yaml @@ -14,7 +14,7 @@ info: name: rinfx spec: phase: UNSPECIFIED_PHASE - priority: 270 + priority: 200 configSchema: openAPIV3Schema: type: object diff --git a/backend/sdk/src/main/resources/plugins/ai-token-ratelimit/spec.yaml b/backend/sdk/src/main/resources/plugins/ai-token-ratelimit/spec.yaml index c22c864a..20a05451 100644 --- a/backend/sdk/src/main/resources/plugins/ai-token-ratelimit/spec.yaml +++ b/backend/sdk/src/main/resources/plugins/ai-token-ratelimit/spec.yaml @@ -14,7 +14,7 @@ info: name: rinfx spec: phase: UNSPECIFIED_PHASE - priority: 210 + priority: 600 configSchema: openAPIV3Schema: type: object diff --git a/backend/sdk/src/main/resources/plugins/ai-transformer/spec.yaml b/backend/sdk/src/main/resources/plugins/ai-transformer/spec.yaml index c5226b6a..01d02207 100644 --- a/backend/sdk/src/main/resources/plugins/ai-transformer/spec.yaml +++ b/backend/sdk/src/main/resources/plugins/ai-transformer/spec.yaml @@ -14,7 +14,7 @@ info: name: rinfx spec: phase: UNSPECIFIED_PHASE - priority: 280 + priority: 550 configSchema: openAPIV3Schema: type: object diff --git a/backend/sdk/src/main/resources/plugins/basic-auth/spec.yaml b/backend/sdk/src/main/resources/plugins/basic-auth/spec.yaml index cb52c36c..f502add7 100644 --- a/backend/sdk/src/main/resources/plugins/basic-auth/spec.yaml +++ b/backend/sdk/src/main/resources/plugins/basic-auth/spec.yaml @@ -16,7 +16,7 @@ info: email: admin@higress.io spec: phase: AUTHN - priority: 10 + priority: 320 configSchema: openAPIV3Schema: type: object diff --git a/backend/sdk/src/main/resources/plugins/bot-detect/spec.yaml b/backend/sdk/src/main/resources/plugins/bot-detect/spec.yaml index cab40389..cf03322c 100644 --- a/backend/sdk/src/main/resources/plugins/bot-detect/spec.yaml +++ b/backend/sdk/src/main/resources/plugins/bot-detect/spec.yaml @@ -16,7 +16,7 @@ info: email: admin@higress.io spec: phase: AUTHZ - priority: 10 + priority: 310 configSchema: openAPIV3Schema: type: object diff --git a/backend/sdk/src/main/resources/plugins/cors/spec.yaml b/backend/sdk/src/main/resources/plugins/cors/spec.yaml index d463d165..819b4222 100644 --- a/backend/sdk/src/main/resources/plugins/cors/spec.yaml +++ b/backend/sdk/src/main/resources/plugins/cors/spec.yaml @@ -16,7 +16,7 @@ info: email: admin@higress.io spec: phase: AUTHZ - priority: 30 + priority: 340 configSchema: openAPIV3Schema: type: object diff --git a/backend/sdk/src/main/resources/plugins/custom-response/spec.yaml b/backend/sdk/src/main/resources/plugins/custom-response/spec.yaml index 84aa6bd2..7d5fd277 100644 --- a/backend/sdk/src/main/resources/plugins/custom-response/spec.yaml +++ b/backend/sdk/src/main/resources/plugins/custom-response/spec.yaml @@ -16,7 +16,7 @@ info: email: admin@higress.io spec: phase: AUTHN - priority: 400 + priority: 910 configSchema: openAPIV3Schema: type: object diff --git a/backend/sdk/src/main/resources/plugins/hmac-auth/spec.yaml b/backend/sdk/src/main/resources/plugins/hmac-auth/spec.yaml index c1fca670..f1c9244e 100644 --- a/backend/sdk/src/main/resources/plugins/hmac-auth/spec.yaml +++ b/backend/sdk/src/main/resources/plugins/hmac-auth/spec.yaml @@ -16,7 +16,7 @@ info: email: admin@higress.io spec: phase: AUTHN - priority: 50 + priority: 330 configSchema: openAPIV3Schema: type: object diff --git a/backend/sdk/src/main/resources/plugins/ip-restriction/spec.yaml b/backend/sdk/src/main/resources/plugins/ip-restriction/spec.yaml index 41c0ac2e..24fa084f 100644 --- a/backend/sdk/src/main/resources/plugins/ip-restriction/spec.yaml +++ b/backend/sdk/src/main/resources/plugins/ip-restriction/spec.yaml @@ -16,7 +16,7 @@ info: email: admin@higress.io spec: phase: AUTHN - priority: 200 + priority: 210 configSchema: openAPIV3Schema: type: object diff --git a/backend/sdk/src/main/resources/plugins/jwt-auth/spec.yaml b/backend/sdk/src/main/resources/plugins/jwt-auth/spec.yaml index 43676c1e..194e6572 100644 --- a/backend/sdk/src/main/resources/plugins/jwt-auth/spec.yaml +++ b/backend/sdk/src/main/resources/plugins/jwt-auth/spec.yaml @@ -16,7 +16,7 @@ info: email: admin@higress.io spec: phase: AUTHN - priority: 40 + priority: 340 configSchema: openAPIV3Schema: type: object diff --git a/backend/sdk/src/main/resources/plugins/key-auth/spec.yaml b/backend/sdk/src/main/resources/plugins/key-auth/spec.yaml index d9b986cd..fc39fcca 100644 --- a/backend/sdk/src/main/resources/plugins/key-auth/spec.yaml +++ b/backend/sdk/src/main/resources/plugins/key-auth/spec.yaml @@ -16,7 +16,7 @@ info: email: admin@higress.io spec: phase: AUTHN - priority: 20 + priority: 310 configSchema: openAPIV3Schema: type: object diff --git a/backend/sdk/src/main/resources/plugins/oidc/spec.yaml b/backend/sdk/src/main/resources/plugins/oidc/spec.yaml index 60c118b2..fb32bb47 100644 --- a/backend/sdk/src/main/resources/plugins/oidc/spec.yaml +++ b/backend/sdk/src/main/resources/plugins/oidc/spec.yaml @@ -16,7 +16,7 @@ info: email: admin@higress.io spec: phase: AUTHN - priority: 30 + priority: 350 configSchema: openAPIV3Schema: type: object diff --git a/backend/sdk/src/main/resources/plugins/request-block/spec.yaml b/backend/sdk/src/main/resources/plugins/request-block/spec.yaml index 154dd9b1..f8245c68 100644 --- a/backend/sdk/src/main/resources/plugins/request-block/spec.yaml +++ b/backend/sdk/src/main/resources/plugins/request-block/spec.yaml @@ -15,8 +15,8 @@ info: url: http://higress.io/ email: admin@higress.io spec: - phase: AUTHN - priority: 210 + phase: AUTHZ + priority: 320 configSchema: openAPIV3Schema: type: object diff --git a/backend/sdk/src/main/resources/plugins/waf/spec.yaml b/backend/sdk/src/main/resources/plugins/waf/spec.yaml index 38d239f0..c6133ea7 100644 --- a/backend/sdk/src/main/resources/plugins/waf/spec.yaml +++ b/backend/sdk/src/main/resources/plugins/waf/spec.yaml @@ -16,7 +16,7 @@ info: email: admin@higress.io spec: phase: AUTHZ - priority: 20 + priority: 330 configSchema: openAPIV3Schema: type: object