Skip to content

Commit

Permalink
add policy rules
Browse files Browse the repository at this point in the history
Signed-off-by: lou <[email protected]>
  • Loading branch information
27149chen committed Nov 15, 2021
1 parent 0b24d96 commit 645dea3
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 0 deletions.
8 changes: 8 additions & 0 deletions pkg/microservice/aslan/core/environment/handler/policy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,8 @@ rules:
endpoint: "/api/aslan/environment/kube/events"
- method: GET
endpoint: "/api/aslan/logs/sse/pods/?*/containers/?*"
- method: GET
endpoint: "/api/aslan/project/products/?*/services"
- action: create_environment
alias: "新建集成环境"
description: ""
Expand All @@ -40,6 +42,10 @@ rules:
endpoint: "/api/aslan/environment/environments/?*/helm"
- method: POST
endpoint: "/api/aslan/service/workloads"
- method: GET
endpoint: "/api/aslan/project/products/?*/services"
- method: GET
endpoint: "/api/aslan/delivery/releases"
- action: config_environment
alias: "配置集成环境"
description: ""
Expand All @@ -58,6 +64,8 @@ rules:
endpoint: "/api/aslan/environment/environments/?*/multiHelmEnv"
- method: PUT
endpoint: "/api/aslan/service/workloads"
- method: GET
endpoint: "/api/aslan/project/products/?*/services"
- action: manage_environment
alias: "管理服务实例"
description: ""
Expand Down
10 changes: 10 additions & 0 deletions pkg/microservice/aslan/core/workflow/handler/policy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,12 @@ rules:
rules:
- method: PUT
endpoint: "api/aslan/workflow/workflow"
- method: GET
endpoint: "/api/aslan/environment/environments"
- method: GET
endpoint: "/api/aslan/workflow/workflow/preset/?*"
- method: GET
endpoint: "/api/aslan/testing/testdetail"
- action: create_workflow
alias: "新建工作流"
description: ""
Expand All @@ -46,6 +52,10 @@ rules:
endpoint: "/api/aslan/workflow/workflow/old/?*/new/?*"
- method: POST
endpoint: "/api/directory/workflowTask/create"
- method: GET
endpoint: "/api/aslan/environment/environments"
- method: GET
endpoint: "/api/aslan/testing/testdetail"
- action: delete_workflow
alias: "删除工作流"
description: ""
Expand Down

0 comments on commit 645dea3

Please sign in to comment.