From 7209f74fa75fc13979bbcb080a4357d170e951e8 Mon Sep 17 00:00:00 2001 From: "saish.borkar" Date: Mon, 24 Jun 2024 14:40:17 +0530 Subject: [PATCH 1/2] userOverview API config added --- ansible/roles/kong-api/defaults/main.yml | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/ansible/roles/kong-api/defaults/main.yml b/ansible/roles/kong-api/defaults/main.yml index 5e3c39c940..ec401a65fd 100644 --- a/ansible/roles/kong-api/defaults/main.yml +++ b/ansible/roles/kong-api/defaults/main.yml @@ -7195,6 +7195,28 @@ kong_apis: config.required: false config.enabled: false +- name: userOverview + uris: "{{ users_service_prefix }}/mlcore/v1/overview" + upstream_url: "{{ ml_core_service_url }}/v1/users/overview" + strip_uri: true + plugins: + - name: jwt + - name: cors + - "{{ statsd_pulgin }}" + - name: acl + config.whitelist: + - registryAccess + - name: rate-limiting + config.policy: local + config.hour: "{{ medium_rate_limit_per_hour }}" + config.limit_by: credential + - name: request-size-limiting + config.allowed_payload_size: "{{ small_request_size_limit }}" + - name: opa-checks + config.required: false + config.enabled: false + + - name: getProjectDetails uris: "{{ userProjects_service_prefix }}/mlprojects/v1/details" upstream_url: "{{ ml_project_service_url }}/v1/userProjects/details" From 1a5fc2ce8ff82d76df3ae2675eba49ea50086e5f Mon Sep 17 00:00:00 2001 From: "saish.borkar" Date: Mon, 24 Jun 2024 17:31:25 +0530 Subject: [PATCH 2/2] registryAccess to solutionAccess --- ansible/roles/kong-api/defaults/main.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ansible/roles/kong-api/defaults/main.yml b/ansible/roles/kong-api/defaults/main.yml index ec401a65fd..6d0248de4c 100644 --- a/ansible/roles/kong-api/defaults/main.yml +++ b/ansible/roles/kong-api/defaults/main.yml @@ -7205,7 +7205,7 @@ kong_apis: - "{{ statsd_pulgin }}" - name: acl config.whitelist: - - registryAccess + - solutionAccess - name: rate-limiting config.policy: local config.hour: "{{ medium_rate_limit_per_hour }}"