From 2c5402e75c770009147c45a9c0e7505220cf9a57 Mon Sep 17 00:00:00 2001 From: tarentomaheshvakkund <139739142+tarentomaheshvakkund@users.noreply.github.com> Date: Thu, 18 Jul 2024 12:36:59 +0530 Subject: [PATCH] KB-5808 | Q5 | Enhancement | MDO Channel | A consolidated level learner leaderboard based on Karma Points. 1. Added kong entry for the top10learners API to redirect to the cbext-service. --- ansible/roles/kong-api/defaults/main.yml | 21 ++++++++++++++++++++- 1 file changed, 20 insertions(+), 1 deletion(-) diff --git a/ansible/roles/kong-api/defaults/main.yml b/ansible/roles/kong-api/defaults/main.yml index 63230b8bdc..6daef34978 100644 --- a/ansible/roles/kong-api/defaults/main.yml +++ b/ansible/roles/kong-api/defaults/main.yml @@ -16337,4 +16337,23 @@ kong_apis: config.hour: "{{ medium_rate_limit_per_hour }}" config.limit_by: credential - name: request-size-limiting - config.allowed_payload_size: "{{ medium_request_size_limit }}" + config.allowed_payload_size: "{{ medium_request_size_limit }}" + + - name: top10learners + uris: "/halloffame/top/learners" + upstream_url: "{{ sb_cb_ext_service_url }}/v1/top/learners + strip_uri: true + plugins: + - name: jwt + - name: cors + - "{{ statsd_pulgin }}" + - name: acl + config.whitelist: + - 'dataAccess' + - 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: "{{ medium_request_size_limit }}" +