Skip to content

Commit

Permalink
set plugins phase and priority
Browse files Browse the repository at this point in the history
  • Loading branch information
cr7258 committed Jun 22, 2024
1 parent 77d6f3d commit 664ac63
Show file tree
Hide file tree
Showing 27 changed files with 49 additions and 44 deletions.
4 changes: 2 additions & 2 deletions backend/sdk/src/main/resources/plugins/ai-cache/spec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@ info:
contact:
name: johnlanni
spec:
phase: AUTHN
priority: 10
phase: UNSPECIFIED_PHASE
priority: 200
configSchema:
openAPIV3Schema:
type: object
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ info:
name: rinfx
spec:
phase: UNSPECIFIED_PHASE
priority: 450
priority: 240
configSchema:
openAPIV3Schema:
type: object
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ info:
name: rinfx
spec:
phase: UNSPECIFIED_PHASE
priority: 500
priority: 230
configSchema:
openAPIV3Schema:
type: object
Expand Down
2 changes: 1 addition & 1 deletion backend/sdk/src/main/resources/plugins/ai-proxy/spec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ info:
email: [email protected]
spec:
phase: UNSPECIFIED_PHASE
priority: 100
priority: 250
configSchema:
openAPIV3Schema:
type: object
Expand Down
2 changes: 1 addition & 1 deletion backend/sdk/src/main/resources/plugins/ai-rag/spec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ info:
name: rinfx
spec:
phase: UNSPECIFIED_PHASE
priority: 400
priority: 260
configSchema:
openAPIV3Schema:
type: object
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ info:
name: rinfx
spec:
phase: UNSPECIFIED_PHASE
priority: 300
priority: 220
configSchema:
openAPIV3Schema:
type: object
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,9 @@ info:
name: rinfx
spec:
phase: UNSPECIFIED_PHASE
priority: 200
priority: 270
configSchema:
openAPIV3Schema:
type: object
example:
enable: true

Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ info:
name: rinfx
spec:
phase: UNSPECIFIED_PHASE
priority: 600
priority: 210
configSchema:
openAPIV3Schema:
type: object
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ info:
name: rinfx
spec:
phase: UNSPECIFIED_PHASE
priority: 550
priority: 280
configSchema:
openAPIV3Schema:
type: object
Expand All @@ -29,4 +29,3 @@ spec:
serviceName: qwen
domain: dashscope.aliyuncs.com
sk: sk-xxxxxxxxxxxxxxxxxxx

7 changes: 3 additions & 4 deletions backend/sdk/src/main/resources/plugins/basic-auth/spec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@ info:
title: Basic Auth
x-title-i18n:
zh-CN: Basic 认证
description: This plugin implements an authentication function based on HTTP Basic Auth standard.
description: implement authentication feature based on HTTP Basic Auth standard.
x-description-i18n:
zh-CN: 本插件实现了基于 HTTP Basic Auth 标准进行认证鉴权的功能。
zh-CN: 实现基于 HTTP Basic Auth 标准进行认证鉴权的功能。
iconUrl: https://img.alicdn.com/imgextra/i4/O1CN01BPFGlT1pGZ2VDLgaH_!!6000000005333-2-tps-42-42.png
version: 1.0.0
contact:
Expand All @@ -16,7 +16,7 @@ info:
email: [email protected]
spec:
phase: AUTHN
priority: 320
priority: 10
configSchema:
openAPIV3Schema:
type: object
Expand Down Expand Up @@ -84,7 +84,6 @@ spec:
example:
global_auth: false
consumers:
# 注意!该凭证仅做示例使用,请勿用于具体业务,造成安全风险
- name: consumer1
credential: admin:123456
- name: consumer2
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ info:
email: [email protected]
spec:
phase: AUTHZ
priority: 310
priority: 10
configSchema:
openAPIV3Schema:
type: object
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ info:
email: [email protected]
spec:
phase: AUTHN
priority: 910
priority: 420
configSchema:
openAPIV3Schema:
type: object
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,8 @@ info:
url: http://higress.io/
email: [email protected]
spec:
priority: 10
phase: UNSPECIFIED_PHASE
priority: 20
configSchema:
openAPIV3Schema:
type: object
Expand Down
2 changes: 1 addition & 1 deletion backend/sdk/src/main/resources/plugins/cors/spec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ info:
email: [email protected]
spec:
phase: AUTHZ
priority: 310
priority: 30
configSchema:
openAPIV3Schema:
type: object
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ info:
email: [email protected]
spec:
phase: AUTHN
priority: 910
priority: 400
configSchema:
openAPIV3Schema:
type: object
Expand Down
17 changes: 12 additions & 5 deletions backend/sdk/src/main/resources/plugins/de-graphql/spec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,19 @@ info:
email: [email protected]
spec:
phase: AUTHN
priority: 910
priority: 430
configSchema:
openAPIV3Schema:
type: object
example:
status_code: 200
headers:
- Content-Type=application/json
body: "{\"hello\":\"world\"}"
timeout: 5000
endpoint: /graphql
domain: api.github.com
gql: |
query ($owner:String! $name:String!){
repository(owner:$owner, name:$name) {
name
forkCount
description
}
}
3 changes: 1 addition & 2 deletions backend/sdk/src/main/resources/plugins/hmac-auth/spec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,14 +16,13 @@ info:
email: [email protected]
spec:
phase: AUTHN
priority: 330
priority: 50
configSchema:
openAPIV3Schema:
type: object
example:
global_auth: false
consumers:
# 注意!该凭证仅做示例使用,请勿用于具体业务,造成安全风险
- key: appKey-example-1
secret: appSecret-example-1
name: consumer-1
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,8 @@ info:
url: http://higress.io/
email: [email protected]
spec:
priority: 10
phase: AUTHN
priority: 200
configSchema:
openAPIV3Schema:
type: object
Expand Down
3 changes: 1 addition & 2 deletions backend/sdk/src/main/resources/plugins/jwt-auth/spec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,14 +16,13 @@ info:
email: [email protected]
spec:
phase: AUTHN
priority: 340
priority: 40
configSchema:
openAPIV3Schema:
type: object
example:
global_auth: false
consumers:
# 注意!该凭证仅做示例使用,请勿用于具体业务,造成安全风险
- name: consumer1
issuer: abcd
jwks: |
Expand Down
7 changes: 3 additions & 4 deletions backend/sdk/src/main/resources/plugins/key-auth/spec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ info:
email: [email protected]
spec:
phase: AUTHN
priority: 310
priority: 20
configSchema:
openAPIV3Schema:
type: object
Expand Down Expand Up @@ -116,11 +116,10 @@ spec:
- allow
example:
global_auth: false
# 注意!该凭证仅做示例使用,请勿用于具体业务,造成安全风险
consumers:
- credential: 2bda943c-ba2b-11ec-ba07-00163e1250b5
- credential: key-example1
name: consumer1
- credential: c8c8e9ca-558e-4a2d-bb62-e700dcc40e35
- credential: key-example2
name: consumer2
keys:
- apikey
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ info:
url: http://higress.io/
email: [email protected]
spec:
phase: UNSPECIFIED_PHASE
priority: 10
configSchema:
openAPIV3Schema:
Expand Down
4 changes: 2 additions & 2 deletions backend/sdk/src/main/resources/plugins/oidc/spec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@ info:
url: http://higress.io/
email: [email protected]
spec:
phase: AUTHZ
#priority: 330
phase: AUTHN
priority: 30
configSchema:
openAPIV3Schema:
type: object
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@ info:
url: http://higress.io/
email: [email protected]
spec:
phase: AUTHZ
priority: 320
phase: AUTHN
priority: 210
configSchema:
openAPIV3Schema:
type: object
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,8 @@ info:
url: http://higress.io/
email: [email protected]
spec:
priority: 10
phase: UNSPECIFIED_PHASE
priority: 30
configSchema:
openAPIV3Schema:
type: object
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@ info:
url: http://higress.io/
email: [email protected]
spec:
phase: AUTHZ
#priority: 330
phase: AUTHN
priority: 60
configSchema:
openAPIV3Schema:
type: object
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ info:
email: [email protected]
spec:
phase: AUTHN
priority: 910
priority: 410
configSchema:
openAPIV3Schema:
type: object
Expand Down
2 changes: 1 addition & 1 deletion backend/sdk/src/main/resources/plugins/waf/spec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ info:
email: [email protected]
spec:
phase: AUTHZ
priority: 330
priority: 20
configSchema:
openAPIV3Schema:
type: object
Expand Down

0 comments on commit 664ac63

Please sign in to comment.