From 68f631f15fb0c006e3e517b1123cb385c2245615 Mon Sep 17 00:00:00 2001 From: ruksana2808 <111083125+ruksana2808@users.noreply.github.com> Date: Wed, 10 Jul 2024 12:14:37 +0530 Subject: [PATCH 1/5] Added kong config for designationMasterBulkUpload Api --- ansible/roles/kong-api/defaults/main.yml | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/ansible/roles/kong-api/defaults/main.yml b/ansible/roles/kong-api/defaults/main.yml index e0c282d1d5..7439d4a66f 100644 --- a/ansible/roles/kong-api/defaults/main.yml +++ b/ansible/roles/kong-api/defaults/main.yml @@ -125,6 +125,7 @@ ciosIntegration_prefix: /ciosIntegration tenders_prefix: /tenders mentoring_prefix : /mentoring mentoring_interface_prefix : /interface +designation_prefix: /designationsUpload # Service URLs @@ -15808,3 +15809,22 @@ kong_apis: - name: request-size-limiting config.allowed_payload_size: "{{ medium_request_size_limit }}" + - name: designationMasterBulkUpload + uris: "{{ designation_prefix }}/upload" + upstream_url: "{{ cb_pores_service_url }}/designation_prefix/upload" + strip_uri: true + plugins: + - name: jwt + - name: cors + - "{{ statsd_pulgin }}" + - name: acl + config.whitelist: + - 'contentAccess' + - 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 }}" + + From 951bacc0bc12e7c671a91b3cec40eb8dc21e93cf Mon Sep 17 00:00:00 2001 From: ruksana2808 <111083125+ruksana2808@users.noreply.github.com> Date: Thu, 11 Jul 2024 11:33:18 +0530 Subject: [PATCH 2/5] Updated the url --- 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 7439d4a66f..2ef12e87d4 100644 --- a/ansible/roles/kong-api/defaults/main.yml +++ b/ansible/roles/kong-api/defaults/main.yml @@ -125,7 +125,7 @@ ciosIntegration_prefix: /ciosIntegration tenders_prefix: /tenders mentoring_prefix : /mentoring mentoring_interface_prefix : /interface -designation_prefix: /designationsUpload +designation_prefix: /designation # Service URLs From 71272b07c73a7124360af0f571ad69e1c928736e Mon Sep 17 00:00:00 2001 From: Arpitha Date: Fri, 12 Jul 2024 19:01:19 +0530 Subject: [PATCH 3/5] enrollment api added --- ansible/roles/kong-api/defaults/main.yml | 57 ++++++++++++++++++++++++ 1 file changed, 57 insertions(+) diff --git a/ansible/roles/kong-api/defaults/main.yml b/ansible/roles/kong-api/defaults/main.yml index 2ef12e87d4..d432783464 100644 --- a/ansible/roles/kong-api/defaults/main.yml +++ b/ansible/roles/kong-api/defaults/main.yml @@ -126,6 +126,7 @@ tenders_prefix: /tenders mentoring_prefix : /mentoring mentoring_interface_prefix : /interface designation_prefix: /designation +external_enrollment_prefix: /cios-enroll # Service URLs @@ -168,6 +169,7 @@ ml_core_private_url: "http://{{private_ingressgateway_ip}}/ml-core" cb_pores_service_url : "http://cb-pores-service:7001" cios_content_service_url : "http://cios-content-service:7001" mentoring_interface_service_url: "http://mentoring-interface-service:3567" +cb_external_enrollment_service_url: "http://cb-enrollment-service:7002" premium_consumer_rate_limits: - api: createContent @@ -15827,4 +15829,59 @@ kong_apis: - name: request-size-limiting config.allowed_payload_size: "{{ medium_request_size_limit }}" + - name: extEnrollmentCreate + uris: "{{ external_enrollment_prefix }}/v1/create" + upstream_url: "{{ cb_external_enrollment_service_url }}/cios-enroll/v1/create" + strip_uri: true + plugins: + - name: jwt + - name: cors + - "{{ statsd_pulgin }}" + - name: acl + config.whitelist: + - 'courseAccess' + - 'contentUpdate' + - name: rate-limiting + config.policy: local + config.hour: "{{ large_rate_limit_per_hour }}" + config.hour: "{{ medium_rate_limit_per_hour }}" + config.limit_by: credential + - name: request-size-limiting + config.allowed_payload_size: "{{ small_request_size_limit }}" + config.allowed_payload_size: "{{ medium_request_size_limit }}" + + - name: extEnrollmentReadByUserId + uris: "{{ external_enrollment_prefix }}/v1/listbyuserid" + upstream_url: "{{ cb_external_enrollment_service_url }}/cios-enroll/v1/listbyuserid" + strip_uri: true + plugins: + - name: jwt + - name: cors + - "{{ statsd_pulgin }}" + - name: acl + config.whitelist: + - 'contentUpdate' + - 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 }}" + - name: extEnrollmentReadByUserIdAndCourseId + uris: "{{ external_enrollment_prefix }}/v1/readby/useridcourseId" + upstream_url: "{{ cb_external_enrollment_service_url }}/cios-enroll/v1/readby/useridcourseId" + strip_uri: true + plugins: + - name: jwt + - name: cors + - "{{ statsd_pulgin }}" + - name: acl + config.whitelist: + - 'contentUpdate' + - 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 }}" From 690f4d3b3767e023b7c794bcca53fedef3537efb Mon Sep 17 00:00:00 2001 From: anil Date: Thu, 18 Jul 2024 19:38:42 +0530 Subject: [PATCH 4/5] add kong configurations for wrapper apis --- ansible/roles/kong-api/defaults/main.yml | 56 ++++++++++++++++++++++++ 1 file changed, 56 insertions(+) diff --git a/ansible/roles/kong-api/defaults/main.yml b/ansible/roles/kong-api/defaults/main.yml index d432783464..30d4038253 100644 --- a/ansible/roles/kong-api/defaults/main.yml +++ b/ansible/roles/kong-api/defaults/main.yml @@ -127,6 +127,8 @@ mentoring_prefix : /mentoring mentoring_interface_prefix : /interface designation_prefix: /designation external_enrollment_prefix: /cios-enroll +comp_theme_prefix: /competencyTheme +comp_sub_theme_prefix: /competencySubTheme # Service URLs @@ -15885,3 +15887,57 @@ kong_apis: config.limit_by: credential - name: request-size-limiting config.allowed_payload_size: "{{ medium_request_size_limit }}" + + - name: competencySubThemeTermCreate + uris: "{{ comp_sub_theme_prefix }}/create/term" + upstream_url: "{{ cb_pores_service_url }}/competencySubTheme/term/create" + strip_uri: true + plugins: + - name: jwt + - name: cors + - "{{ statsd_pulgin }}" + - name: acl + config.whitelist: + - 'contentAccess' + - 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 }}" + + - name: competencyThemeTermCreate + uris: "{{ comp_theme_prefix }}/create/term" + upstream_url: "{{ cb_pores_service_url }}/competencyTheme/term/create" + strip_uri: true + plugins: + - name: jwt + - name: cors + - "{{ statsd_pulgin }}" + - name: acl + config.whitelist: + - 'contentAccess' + - 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 }}" + + - name: designationTermCreate + uris: "{{ designation_prefix }}/create/term" + upstream_url: "{{ cb_pores_service_url }}/designation/term/create" + strip_uri: true + plugins: + - name: jwt + - name: cors + - "{{ statsd_pulgin }}" + - name: acl + config.whitelist: + - 'contentAccess' + - 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 }}" From ce16385de967e0367481ac1aafb6cc639470e254 Mon Sep 17 00:00:00 2001 From: anil Date: Fri, 19 Jul 2024 11:02:26 +0530 Subject: [PATCH 5/5] add kong configurations for wrapper apis --- ansible/roles/kong-api/defaults/main.yml | 54 ++++++++++++++++++++++++ 1 file changed, 54 insertions(+) diff --git a/ansible/roles/kong-api/defaults/main.yml b/ansible/roles/kong-api/defaults/main.yml index 5d2f29e81b..2446d0867e 100644 --- a/ansible/roles/kong-api/defaults/main.yml +++ b/ansible/roles/kong-api/defaults/main.yml @@ -16374,3 +16374,57 @@ kong_apis: config.limit_by: credential - name: request-size-limiting config.allowed_payload_size: "{{ medium_request_size_limit }}" + + - name: designationTermCreate + uris: "{{ designation_prefix }}/create/term" + upstream_url: "{{ cb_pores_service_url }}/designation/term/create" + strip_uri: true + plugins: + - name: jwt + - name: cors + - "{{ statsd_pulgin }}" + - name: acl + config.whitelist: + - 'contentAccess' + - 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 }}" + + - name: competencyThemeTermCreate + uris: "{{ comp_theme_prefix }}/create/term" + upstream_url: "{{ cb_pores_service_url }}/competencyTheme/term/create" + strip_uri: true + plugins: + - name: jwt + - name: cors + - "{{ statsd_pulgin }}" + - name: acl + config.whitelist: + - 'contentAccess' + - 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 }}" + + - name: competencySubThemeTermCreate + uris: "{{ comp_sub_theme_prefix }}/create/term" + upstream_url: "{{ cb_pores_service_url }}/competencySubTheme/term/create" + strip_uri: true + plugins: + - name: jwt + - name: cors + - "{{ statsd_pulgin }}" + - name: acl + config.whitelist: + - 'contentAccess' + - 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 }}" \ No newline at end of file