From a94a05e4917fb799ddc575a7e61e9915b7d9e3fe Mon Sep 17 00:00:00 2001 From: Haritest Date: Mon, 19 Feb 2024 11:11:36 +0530 Subject: [PATCH 01/11] Update main.yml ml_survey_service apis added --- ansible/roles/kong-api/defaults/main.yml | 232 +++++++++++++++++++++++ 1 file changed, 232 insertions(+) diff --git a/ansible/roles/kong-api/defaults/main.yml b/ansible/roles/kong-api/defaults/main.yml index 7d7335b2cc..e864890724 100644 --- a/ansible/roles/kong-api/defaults/main.yml +++ b/ansible/roles/kong-api/defaults/main.yml @@ -131,6 +131,7 @@ profanity_moderator_admin_service: "http://profanity-moderator-admin-service:400 faq_assistant_service: "http://faq-assistant-service:4003" competency_url: "http://fracentity-service:8083" search_url: "http://search-service:9000" +ml_survey_service_url: "http://ml-survey-service:3000" premium_consumer_rate_limits: @@ -11112,3 +11113,234 @@ kong_apis: config.limit_by: credential - name: request-size-limiting config.allowed_payload_size: "{{ medium_request_size_limit }}" + + - name: listObservationEntities + uris: "{{ observations_service_prefix }}/mlsurvey/v1/entities" + upstream_url: "{{ ml_survey_service_url }}/v1/observations/entities" + strip_uri: true + plugins: + - name: jwt + - name: cors + - "{{ statsd_pulgin }}" + - name: acl + config.whitelist: + - observationAccess + - 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: observationSubmissionsList + uris: "{{ observationSubmissions_service_prefix }}/mlsurvey/v1/list" + upstream_url: "{{ ml_survey_service_url }}/v1/observationSubmissions/list" + strip_uri: true + plugins: + - name: jwt + - name: cors + - "{{ statsd_pulgin }}" + - name: acl + config.whitelist: + - observationAccess + - 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: observationQuestionList + uris: "{{ observations_service_prefix }}/mlsurvey/v1/assessment" + upstream_url: "{{ ml_survey_service_url }}/v1/observations/assessment" + strip_uri: true + plugins: + - name: jwt + - name: cors + - "{{ statsd_pulgin }}" + - name: acl + config.whitelist: + - observationAccess + - 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: updateObservationSubmission + uris: "{{ observationSubmissions_service_prefix }}/mlsurvey/v1/update" + upstream_url: "{{ ml_survey_service_url }}/v1/observationSubmissions/update" + strip_uri: true + plugins: + - name: jwt + - name: cors + - "{{ statsd_pulgin }}" + - name: acl + config.whitelist: + - observationUpdate + - 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: createObservationSubmission + uris: "{{ observationSubmissions_service_prefix }}/mlsurvey/v1/create" + upstream_url: "{{ ml_survey_service_url }}/v1/observationSubmissions/create" + strip_uri: true + plugins: + - name: jwt + - name: cors + - "{{ statsd_pulgin }}" + - name: acl + config.whitelist: + - observationCreate + - 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: searchLocationEntities + uris: "{{ observations_service_prefix }}/mlsurvey/v1/searchEntities" + upstream_url: "{{ ml_survey_service_url }}/v1/observations/searchEntities" + 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: addObservationEntity + uris: "{{ observations_service_prefix }}/mlsurvey/v1/updateEntities" + upstream_url: "{{ ml_survey_service_url }}/v1/observations/updateEntities" + strip_uri: true + plugins: + - name: jwt + - name: cors + - "{{ statsd_pulgin }}" + - name: acl + config.whitelist: + - observationCreate + - 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: observationSolutionList + uris: "{{ observationSubmissions_service_prefix }}/mlsurvey/v1/solutionList" + upstream_url: "{{ ml_survey_service_url }}/v1/observationSubmissions/solutionList" + strip_uri: true + plugins: + - name: jwt + - name: cors + - "{{ statsd_pulgin }}" + - name: acl + config.whitelist: + - observationAccess + - 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: surveyQuestionList + uris: "{{ surveys_service_prefix }}/mlsurvey/v1/details" + upstream_url: "{{ ml_survey_service_url }}/v1/surveys/details" + strip_uri: true + plugins: + - name: jwt + - name: cors + - "{{ statsd_pulgin }}" + - name: acl + config.whitelist: + - surveyAccess + - 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: solutionsVerifyLink + uris: "{{ solutions_service_prefix }}/mlsurvey/v1/verifyLink" + upstream_url: "{{ ml_survey_service_url }}/v1/solutions/verifyLink" + strip_uri: true + plugins: + - name: jwt + - name: cors + - "{{ statsd_pulgin }}" + - name: acl + config.whitelist: + - solutionAccess + - 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: updateSurveySubmission + uris: "{{ surveySubmissions_service_prefix }}/mlsurvey/v1/update" + upstream_url: "{{ ml_survey_service_url }}/v1/surveySubmissions/update" + strip_uri: true + plugins: + - name: jwt + - name: cors + - "{{ statsd_pulgin }}" + - name: acl + config.whitelist: + - surveyUpdate + - 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 From f6fc5d153d8aec959695a76a3c1b1ca26f571735 Mon Sep 17 00:00:00 2001 From: Haritest Date: Mon, 19 Feb 2024 11:21:57 +0530 Subject: [PATCH 02/11] Update main.yml old ml_core_service details removed --- ansible/roles/kong-api/defaults/main.yml | 130 +---------------------- 1 file changed, 2 insertions(+), 128 deletions(-) diff --git a/ansible/roles/kong-api/defaults/main.yml b/ansible/roles/kong-api/defaults/main.yml index e864890724..4fd878360e 100644 --- a/ansible/roles/kong-api/defaults/main.yml +++ b/ansible/roles/kong-api/defaults/main.yml @@ -6638,97 +6638,7 @@ 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 }}" - - - name: getUsersPrograms - uris: "{{ users_service_prefix }}/mlcore/v1/programs" - upstream_url: "{{ ml_core_service_url }}/v1/users/programs" - strip_uri: true - plugins: - - name: jwt - - name: cors - - "{{ statsd_pulgin }}" - - name: acl - config.whitelist: - - 'programAccess' - - 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: getUsersSolutions - uris: "{{ users_service_prefix }}/mlcore/v1/solutions" - upstream_url: "{{ ml_core_service_url }}/v1/users/solutions" - strip_uri: true - plugins: - - name: jwt - - name: cors - - "{{ statsd_pulgin }}" - - name: acl - config.whitelist: - - 'solutionAccess' - - 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: getTargetedSolutions - uris: "{{ solutions_service_prefix }}/mlcore/v1/targetedSolutions" - upstream_url: "{{ ml_core_service_url }}/v1/solutions/targetedSolutions" - strip_uri: true - plugins: - - name: jwt - - name: cors - - "{{ statsd_pulgin }}" - - name: acl - config.whitelist: - - 'solutionAccess' - - 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: userLocationScope - uris: "{{ entities_service_prefix }}/mlcore/v1/subEntityListBasedOnRoleAndLocation" - upstream_url: "{{ ml_core_service_url }}/v1/entities/subEntityListBasedOnRoleAndLocation" - 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: mandatoryUserProfileFields - uris: "{{ entities_service_prefix }}/mlcore/v1/entityTypesByLocationAndRole" - upstream_url: "{{ ml_core_service_url }}/v1/users/entityTypesByLocationAndRole" - 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 }}" + config.allowed_payload_size: "{{ medium_request_size_limit }}" - name: observationListEvidences uris: "{{ observations_service_prefix }}/mlreports/v1/listAllEvidences" @@ -6746,43 +6656,7 @@ kong_apis: config.hour: "{{ medium_rate_limit_per_hour }}" config.limit_by: credential - name: request-size-limiting - config.allowed_payload_size: "{{ small_request_size_limit }}" - - - name: locationListing - uris: "{{ entities_service_prefix }}/mlcore/v1/subEntityList" - upstream_url: "{{ ml_core_service_url }}/v1/entities/subEntityList" - strip_uri: true - plugins: - - name: jwt - - name: cors - - "{{ statsd_pulgin }}" - - name: acl - config.whitelist: - - 'locationAccess' - - 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: getTargetedEntity - uris: "{{ users_service_prefix }}/mlcore/v1/targetedEntity" - upstream_url: "{{ ml_core_service_url }}/v1/users/targetedEntity" - 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 }}" + config.allowed_payload_size: "{{ small_request_size_limit }}" - name: getProjectDetails uris: "{{ userProjects_service_prefix }}/mlprojects/v1/details" From b1aab9302c94cd619d22befc6eaf4d6e9bfa4c7f Mon Sep 17 00:00:00 2001 From: Haritest Date: Mon, 19 Feb 2024 11:36:57 +0530 Subject: [PATCH 03/11] Update main.yml ml_core_service_url APIs added --- ansible/roles/kong-api/defaults/main.yml | 274 +++++++++++++++++++++++ 1 file changed, 274 insertions(+) diff --git a/ansible/roles/kong-api/defaults/main.yml b/ansible/roles/kong-api/defaults/main.yml index 4fd878360e..b700a60079 100644 --- a/ansible/roles/kong-api/defaults/main.yml +++ b/ansible/roles/kong-api/defaults/main.yml @@ -132,6 +132,7 @@ faq_assistant_service: "http://faq-assistant-service:4003" competency_url: "http://fracentity-service:8083" search_url: "http://search-service:9000" ml_survey_service_url: "http://ml-survey-service:3000" +ml_core_service_url: "http://ml-core-service:3000" premium_consumer_rate_limits: @@ -11218,3 +11219,276 @@ kong_apis: - name: opa-checks config.required: false config.enabled: false + +- name: getUsersPrograms + uris: "{{ users_service_prefix }}/mlcore/v1/programs" + upstream_url: "{{ ml_core_service_url }}/v1/users/programs" + strip_uri: true + plugins: + - name: jwt + - name: cors + - "{{ statsd_pulgin }}" + - name: acl + config.whitelist: + - programAccess + - 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: getUsersSolutions + uris: "{{ users_service_prefix }}/mlcore/v1/solutions" + upstream_url: "{{ ml_core_service_url }}/v1/users/solutions" + strip_uri: true + plugins: + - name: jwt + - name: cors + - "{{ statsd_pulgin }}" + - name: acl + config.whitelist: + - solutionAccess + - 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: getTargetedSolutions + uris: "{{ solutions_service_prefix }}/mlcore/v1/targetedSolutions" + upstream_url: "{{ ml_core_service_url }}/v1/solutions/targetedSolutions" + strip_uri: true + plugins: + - name: jwt + - name: cors + - "{{ statsd_pulgin }}" + - name: acl + config.whitelist: + - solutionAccess + - 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: userLocationScope + uris: "{{ entities_service_prefix }}/mlcore/v1/subEntityListBasedOnRoleAndLocation" + upstream_url: "{{ ml_core_service_url }}/v1/entities/subEntityListBasedOnRoleAndLocation" + 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: mandatoryUserProfileFields + uris: "{{ entities_service_prefix }}/mlcore/v1/entityTypesByLocationAndRole" + upstream_url: "{{ ml_core_service_url }}/v1/users/entityTypesByLocationAndRole" + 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: locationListing + uris: "{{ entities_service_prefix }}/mlcore/v1/subEntityList" + upstream_url: "{{ ml_core_service_url }}/v1/entities/subEntityList" + strip_uri: true + plugins: + - name: jwt + - name: cors + - "{{ statsd_pulgin }}" + - name: acl + config.whitelist: + - locationAccess + - 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: getTargetedEntity + uris: "{{ users_service_prefix }}/mlcore/v1/targetedEntity" + upstream_url: "{{ ml_core_service_url }}/v1/users/targetedEntity" + 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: getFileUploadUrls + uris: "{{ cloud_service_prefix }}/mlcore/v1/files/preSignedUrls" + upstream_url: "{{ ml_core_service_url }}/v1/cloud-services/files/preSignedUrls" + strip_uri: true + plugins: + - name: jwt + - name: cors + - "{{ statsd_pulgin }}" + - name: acl + config.whitelist: + - cloudUrlsCreate + - 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: listPlatformPrograms + uris: "{{ user_extension_prefix }}/mlcore/v1/programsByPlatformRoles" + upstream_url: "{{ ml_core_service_url }}/v1/user-extension/programsByPlatformRoles" + strip_uri: true + plugins: + - name: jwt + - name: cors + - "{{ statsd_pulgin }}" + - name: acl + config.whitelist: + - programAccess + - 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: listPlatformSolutions + uris: "{{ user_extension_prefix }}/mlcore/v1/solutions" + upstream_url: "{{ ml_core_service_url }}/v1/user-extension/solutions" + strip_uri: true + plugins: + - name: jwt + - name: cors + - "{{ statsd_pulgin }}" + - name: acl + config.whitelist: + - solutionAccess + - 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: VerifyLink + uris: "{{ solutions_service_prefix }}/mlcore/v1/verifyLink" + upstream_url: "{{ ml_core_service_url }}/v1/solutions/verifyLink" + strip_uri: true + plugins: + - name: jwt + - name: cors + - "{{ statsd_pulgin }}" + - name: acl + config.whitelist: + - solutionAccess + - 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: GetTemplateOrQuestions + uris: "{{ solutions_service_prefix }}/mlcore/v1/details" + upstream_url: "{{ ml_core_service_url }}/v1/solutions/details" + strip_uri: true + plugins: + - name: jwt + - name: cors + - "{{ statsd_pulgin }}" + - name: acl + config.whitelist: + - solutionAccess + - 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: joinProgramByUser + uris: "{{ programs_service_prefix }}/mlcore/v1/join" + upstream_url: "{{ ml_core_service_url }}/v1/programs/join" + strip_uri: true + plugins: + - name: jwt + - name: cors + - "{{ statsd_pulgin }}" + - name: acl + config.whitelist: + - programAccess + - 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 From 316df82a9e71ff27555df15058be7c54ded2a294 Mon Sep 17 00:00:00 2001 From: Haritest Date: Mon, 19 Feb 2024 11:43:14 +0530 Subject: [PATCH 04/11] Update main.yml space issue resolved --- 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 b700a60079..95fd28ef74 100644 --- a/ansible/roles/kong-api/defaults/main.yml +++ b/ansible/roles/kong-api/defaults/main.yml @@ -10989,7 +10989,7 @@ kong_apis: - name: request-size-limiting config.allowed_payload_size: "{{ medium_request_size_limit }}" - - name: listObservationEntities +- name: listObservationEntities uris: "{{ observations_service_prefix }}/mlsurvey/v1/entities" upstream_url: "{{ ml_survey_service_url }}/v1/observations/entities" strip_uri: true From 882b5d9e09ce0768b53cb495d15c21fada4a8dfa Mon Sep 17 00:00:00 2001 From: Haritest Date: Mon, 19 Feb 2024 11:51:23 +0530 Subject: [PATCH 05/11] Update main.yml space issue resolved --- ansible/roles/kong-api/defaults/main.yml | 1006 +++++++++++----------- 1 file changed, 503 insertions(+), 503 deletions(-) diff --git a/ansible/roles/kong-api/defaults/main.yml b/ansible/roles/kong-api/defaults/main.yml index 95fd28ef74..7b39bbd5af 100644 --- a/ansible/roles/kong-api/defaults/main.yml +++ b/ansible/roles/kong-api/defaults/main.yml @@ -10989,506 +10989,506 @@ kong_apis: - name: request-size-limiting config.allowed_payload_size: "{{ medium_request_size_limit }}" -- name: listObservationEntities - uris: "{{ observations_service_prefix }}/mlsurvey/v1/entities" - upstream_url: "{{ ml_survey_service_url }}/v1/observations/entities" - strip_uri: true - plugins: - - name: jwt - - name: cors - - "{{ statsd_pulgin }}" - - name: acl - config.whitelist: - - observationAccess - - 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: observationSubmissionsList - uris: "{{ observationSubmissions_service_prefix }}/mlsurvey/v1/list" - upstream_url: "{{ ml_survey_service_url }}/v1/observationSubmissions/list" - strip_uri: true - plugins: - - name: jwt - - name: cors - - "{{ statsd_pulgin }}" - - name: acl - config.whitelist: - - observationAccess - - 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: observationQuestionList - uris: "{{ observations_service_prefix }}/mlsurvey/v1/assessment" - upstream_url: "{{ ml_survey_service_url }}/v1/observations/assessment" - strip_uri: true - plugins: - - name: jwt - - name: cors - - "{{ statsd_pulgin }}" - - name: acl - config.whitelist: - - observationAccess - - 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: updateObservationSubmission - uris: "{{ observationSubmissions_service_prefix }}/mlsurvey/v1/update" - upstream_url: "{{ ml_survey_service_url }}/v1/observationSubmissions/update" - strip_uri: true - plugins: - - name: jwt - - name: cors - - "{{ statsd_pulgin }}" - - name: acl - config.whitelist: - - observationUpdate - - 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: createObservationSubmission - uris: "{{ observationSubmissions_service_prefix }}/mlsurvey/v1/create" - upstream_url: "{{ ml_survey_service_url }}/v1/observationSubmissions/create" - strip_uri: true - plugins: - - name: jwt - - name: cors - - "{{ statsd_pulgin }}" - - name: acl - config.whitelist: - - observationCreate - - 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: searchLocationEntities - uris: "{{ observations_service_prefix }}/mlsurvey/v1/searchEntities" - upstream_url: "{{ ml_survey_service_url }}/v1/observations/searchEntities" - 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: addObservationEntity - uris: "{{ observations_service_prefix }}/mlsurvey/v1/updateEntities" - upstream_url: "{{ ml_survey_service_url }}/v1/observations/updateEntities" - strip_uri: true - plugins: - - name: jwt - - name: cors - - "{{ statsd_pulgin }}" - - name: acl - config.whitelist: - - observationCreate - - 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: observationSolutionList - uris: "{{ observationSubmissions_service_prefix }}/mlsurvey/v1/solutionList" - upstream_url: "{{ ml_survey_service_url }}/v1/observationSubmissions/solutionList" - strip_uri: true - plugins: - - name: jwt - - name: cors - - "{{ statsd_pulgin }}" - - name: acl - config.whitelist: - - observationAccess - - 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: surveyQuestionList - uris: "{{ surveys_service_prefix }}/mlsurvey/v1/details" - upstream_url: "{{ ml_survey_service_url }}/v1/surveys/details" - strip_uri: true - plugins: - - name: jwt - - name: cors - - "{{ statsd_pulgin }}" - - name: acl - config.whitelist: - - surveyAccess - - 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: solutionsVerifyLink - uris: "{{ solutions_service_prefix }}/mlsurvey/v1/verifyLink" - upstream_url: "{{ ml_survey_service_url }}/v1/solutions/verifyLink" - strip_uri: true - plugins: - - name: jwt - - name: cors - - "{{ statsd_pulgin }}" - - name: acl - config.whitelist: - - solutionAccess - - 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: updateSurveySubmission - uris: "{{ surveySubmissions_service_prefix }}/mlsurvey/v1/update" - upstream_url: "{{ ml_survey_service_url }}/v1/surveySubmissions/update" - strip_uri: true - plugins: - - name: jwt - - name: cors - - "{{ statsd_pulgin }}" - - name: acl - config.whitelist: - - surveyUpdate - - 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: getUsersPrograms - uris: "{{ users_service_prefix }}/mlcore/v1/programs" - upstream_url: "{{ ml_core_service_url }}/v1/users/programs" - strip_uri: true - plugins: - - name: jwt - - name: cors - - "{{ statsd_pulgin }}" - - name: acl - config.whitelist: - - programAccess - - 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: getUsersSolutions - uris: "{{ users_service_prefix }}/mlcore/v1/solutions" - upstream_url: "{{ ml_core_service_url }}/v1/users/solutions" - strip_uri: true - plugins: - - name: jwt - - name: cors - - "{{ statsd_pulgin }}" - - name: acl - config.whitelist: - - solutionAccess - - 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: getTargetedSolutions - uris: "{{ solutions_service_prefix }}/mlcore/v1/targetedSolutions" - upstream_url: "{{ ml_core_service_url }}/v1/solutions/targetedSolutions" - strip_uri: true - plugins: - - name: jwt - - name: cors - - "{{ statsd_pulgin }}" - - name: acl - config.whitelist: - - solutionAccess - - 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: userLocationScope - uris: "{{ entities_service_prefix }}/mlcore/v1/subEntityListBasedOnRoleAndLocation" - upstream_url: "{{ ml_core_service_url }}/v1/entities/subEntityListBasedOnRoleAndLocation" - 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: mandatoryUserProfileFields - uris: "{{ entities_service_prefix }}/mlcore/v1/entityTypesByLocationAndRole" - upstream_url: "{{ ml_core_service_url }}/v1/users/entityTypesByLocationAndRole" - 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: locationListing - uris: "{{ entities_service_prefix }}/mlcore/v1/subEntityList" - upstream_url: "{{ ml_core_service_url }}/v1/entities/subEntityList" - strip_uri: true - plugins: - - name: jwt - - name: cors - - "{{ statsd_pulgin }}" - - name: acl - config.whitelist: - - locationAccess - - 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: getTargetedEntity - uris: "{{ users_service_prefix }}/mlcore/v1/targetedEntity" - upstream_url: "{{ ml_core_service_url }}/v1/users/targetedEntity" - 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: getFileUploadUrls - uris: "{{ cloud_service_prefix }}/mlcore/v1/files/preSignedUrls" - upstream_url: "{{ ml_core_service_url }}/v1/cloud-services/files/preSignedUrls" - strip_uri: true - plugins: - - name: jwt - - name: cors - - "{{ statsd_pulgin }}" - - name: acl - config.whitelist: - - cloudUrlsCreate - - 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: listPlatformPrograms - uris: "{{ user_extension_prefix }}/mlcore/v1/programsByPlatformRoles" - upstream_url: "{{ ml_core_service_url }}/v1/user-extension/programsByPlatformRoles" - strip_uri: true - plugins: - - name: jwt - - name: cors - - "{{ statsd_pulgin }}" - - name: acl - config.whitelist: - - programAccess - - 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: listPlatformSolutions - uris: "{{ user_extension_prefix }}/mlcore/v1/solutions" - upstream_url: "{{ ml_core_service_url }}/v1/user-extension/solutions" - strip_uri: true - plugins: - - name: jwt - - name: cors - - "{{ statsd_pulgin }}" - - name: acl - config.whitelist: - - solutionAccess - - 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: VerifyLink - uris: "{{ solutions_service_prefix }}/mlcore/v1/verifyLink" - upstream_url: "{{ ml_core_service_url }}/v1/solutions/verifyLink" - strip_uri: true - plugins: - - name: jwt - - name: cors - - "{{ statsd_pulgin }}" - - name: acl - config.whitelist: - - solutionAccess - - 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: GetTemplateOrQuestions - uris: "{{ solutions_service_prefix }}/mlcore/v1/details" - upstream_url: "{{ ml_core_service_url }}/v1/solutions/details" - strip_uri: true - plugins: - - name: jwt - - name: cors - - "{{ statsd_pulgin }}" - - name: acl - config.whitelist: - - solutionAccess - - 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: joinProgramByUser - uris: "{{ programs_service_prefix }}/mlcore/v1/join" - upstream_url: "{{ ml_core_service_url }}/v1/programs/join" - strip_uri: true - plugins: - - name: jwt - - name: cors - - "{{ statsd_pulgin }}" - - name: acl - config.whitelist: - - programAccess - - 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: listObservationEntities + uris: "{{ observations_service_prefix }}/mlsurvey/v1/entities" + upstream_url: "{{ ml_survey_service_url }}/v1/observations/entities" + strip_uri: true + plugins: + - name: jwt + - name: cors + - "{{ statsd_pulgin }}" + - name: acl + config.whitelist: + - observationAccess + - 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: observationSubmissionsList + uris: "{{ observationSubmissions_service_prefix }}/mlsurvey/v1/list" + upstream_url: "{{ ml_survey_service_url }}/v1/observationSubmissions/list" + strip_uri: true + plugins: + - name: jwt + - name: cors + - "{{ statsd_pulgin }}" + - name: acl + config.whitelist: + - observationAccess + - 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: observationQuestionList + uris: "{{ observations_service_prefix }}/mlsurvey/v1/assessment" + upstream_url: "{{ ml_survey_service_url }}/v1/observations/assessment" + strip_uri: true + plugins: + - name: jwt + - name: cors + - "{{ statsd_pulgin }}" + - name: acl + config.whitelist: + - observationAccess + - 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: updateObservationSubmission + uris: "{{ observationSubmissions_service_prefix }}/mlsurvey/v1/update" + upstream_url: "{{ ml_survey_service_url }}/v1/observationSubmissions/update" + strip_uri: true + plugins: + - name: jwt + - name: cors + - "{{ statsd_pulgin }}" + - name: acl + config.whitelist: + - observationUpdate + - 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: createObservationSubmission + uris: "{{ observationSubmissions_service_prefix }}/mlsurvey/v1/create" + upstream_url: "{{ ml_survey_service_url }}/v1/observationSubmissions/create" + strip_uri: true + plugins: + - name: jwt + - name: cors + - "{{ statsd_pulgin }}" + - name: acl + config.whitelist: + - observationCreate + - 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: searchLocationEntities + uris: "{{ observations_service_prefix }}/mlsurvey/v1/searchEntities" + upstream_url: "{{ ml_survey_service_url }}/v1/observations/searchEntities" + 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: addObservationEntity + uris: "{{ observations_service_prefix }}/mlsurvey/v1/updateEntities" + upstream_url: "{{ ml_survey_service_url }}/v1/observations/updateEntities" + strip_uri: true + plugins: + - name: jwt + - name: cors + - "{{ statsd_pulgin }}" + - name: acl + config.whitelist: + - observationCreate + - 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: observationSolutionList + uris: "{{ observationSubmissions_service_prefix }}/mlsurvey/v1/solutionList" + upstream_url: "{{ ml_survey_service_url }}/v1/observationSubmissions/solutionList" + strip_uri: true + plugins: + - name: jwt + - name: cors + - "{{ statsd_pulgin }}" + - name: acl + config.whitelist: + - observationAccess + - 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: surveyQuestionList + uris: "{{ surveys_service_prefix }}/mlsurvey/v1/details" + upstream_url: "{{ ml_survey_service_url }}/v1/surveys/details" + strip_uri: true + plugins: + - name: jwt + - name: cors + - "{{ statsd_pulgin }}" + - name: acl + config.whitelist: + - surveyAccess + - 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: solutionsVerifyLink + uris: "{{ solutions_service_prefix }}/mlsurvey/v1/verifyLink" + upstream_url: "{{ ml_survey_service_url }}/v1/solutions/verifyLink" + strip_uri: true + plugins: + - name: jwt + - name: cors + - "{{ statsd_pulgin }}" + - name: acl + config.whitelist: + - solutionAccess + - 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: updateSurveySubmission + uris: "{{ surveySubmissions_service_prefix }}/mlsurvey/v1/update" + upstream_url: "{{ ml_survey_service_url }}/v1/surveySubmissions/update" + strip_uri: true + plugins: + - name: jwt + - name: cors + - "{{ statsd_pulgin }}" + - name: acl + config.whitelist: + - surveyUpdate + - 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: getUsersPrograms + uris: "{{ users_service_prefix }}/mlcore/v1/programs" + upstream_url: "{{ ml_core_service_url }}/v1/users/programs" + strip_uri: true + plugins: + - name: jwt + - name: cors + - "{{ statsd_pulgin }}" + - name: acl + config.whitelist: + - programAccess + - 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: getUsersSolutions + uris: "{{ users_service_prefix }}/mlcore/v1/solutions" + upstream_url: "{{ ml_core_service_url }}/v1/users/solutions" + strip_uri: true + plugins: + - name: jwt + - name: cors + - "{{ statsd_pulgin }}" + - name: acl + config.whitelist: + - solutionAccess + - 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: getTargetedSolutions + uris: "{{ solutions_service_prefix }}/mlcore/v1/targetedSolutions" + upstream_url: "{{ ml_core_service_url }}/v1/solutions/targetedSolutions" + strip_uri: true + plugins: + - name: jwt + - name: cors + - "{{ statsd_pulgin }}" + - name: acl + config.whitelist: + - solutionAccess + - 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: userLocationScope + uris: "{{ entities_service_prefix }}/mlcore/v1/subEntityListBasedOnRoleAndLocation" + upstream_url: "{{ ml_core_service_url }}/v1/entities/subEntityListBasedOnRoleAndLocation" + 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: mandatoryUserProfileFields + uris: "{{ entities_service_prefix }}/mlcore/v1/entityTypesByLocationAndRole" + upstream_url: "{{ ml_core_service_url }}/v1/users/entityTypesByLocationAndRole" + 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: locationListing + uris: "{{ entities_service_prefix }}/mlcore/v1/subEntityList" + upstream_url: "{{ ml_core_service_url }}/v1/entities/subEntityList" + strip_uri: true + plugins: + - name: jwt + - name: cors + - "{{ statsd_pulgin }}" + - name: acl + config.whitelist: + - locationAccess + - 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: getTargetedEntity + uris: "{{ users_service_prefix }}/mlcore/v1/targetedEntity" + upstream_url: "{{ ml_core_service_url }}/v1/users/targetedEntity" + 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: getFileUploadUrls + uris: "{{ cloud_service_prefix }}/mlcore/v1/files/preSignedUrls" + upstream_url: "{{ ml_core_service_url }}/v1/cloud-services/files/preSignedUrls" + strip_uri: true + plugins: + - name: jwt + - name: cors + - "{{ statsd_pulgin }}" + - name: acl + config.whitelist: + - cloudUrlsCreate + - 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: listPlatformPrograms + uris: "{{ user_extension_prefix }}/mlcore/v1/programsByPlatformRoles" + upstream_url: "{{ ml_core_service_url }}/v1/user-extension/programsByPlatformRoles" + strip_uri: true + plugins: + - name: jwt + - name: cors + - "{{ statsd_pulgin }}" + - name: acl + config.whitelist: + - programAccess + - 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: listPlatformSolutions + uris: "{{ user_extension_prefix }}/mlcore/v1/solutions" + upstream_url: "{{ ml_core_service_url }}/v1/user-extension/solutions" + strip_uri: true + plugins: + - name: jwt + - name: cors + - "{{ statsd_pulgin }}" + - name: acl + config.whitelist: + - solutionAccess + - 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: VerifyLink + uris: "{{ solutions_service_prefix }}/mlcore/v1/verifyLink" + upstream_url: "{{ ml_core_service_url }}/v1/solutions/verifyLink" + strip_uri: true + plugins: + - name: jwt + - name: cors + - "{{ statsd_pulgin }}" + - name: acl + config.whitelist: + - solutionAccess + - 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: GetTemplateOrQuestions + uris: "{{ solutions_service_prefix }}/mlcore/v1/details" + upstream_url: "{{ ml_core_service_url }}/v1/solutions/details" + strip_uri: true + plugins: + - name: jwt + - name: cors + - "{{ statsd_pulgin }}" + - name: acl + config.whitelist: + - solutionAccess + - 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: joinProgramByUser + uris: "{{ programs_service_prefix }}/mlcore/v1/join" + upstream_url: "{{ ml_core_service_url }}/v1/programs/join" + strip_uri: true + plugins: + - name: jwt + - name: cors + - "{{ statsd_pulgin }}" + - name: acl + config.whitelist: + - programAccess + - 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 From 50f33b34b12b0f8cc667620b54612976f400d133 Mon Sep 17 00:00:00 2001 From: Haritest Date: Mon, 19 Feb 2024 11:53:11 +0530 Subject: [PATCH 06/11] Update main.yml observationSubmissions_service_prefix added --- ansible/roles/kong-api/defaults/main.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/ansible/roles/kong-api/defaults/main.yml b/ansible/roles/kong-api/defaults/main.yml index 7b39bbd5af..e5e306e2dd 100644 --- a/ansible/roles/kong-api/defaults/main.yml +++ b/ansible/roles/kong-api/defaults/main.yml @@ -97,6 +97,7 @@ curated_program_prefix: /curatedprogram program_prefix: /program competency_prefix: /competency cb_plan_prefix: /cbplan +observationSubmissions_service_prefix: /observationSubmissions # Service URLs knowledge_mw_service_url: "http://knowledge-mw-service:5000" From 9d6d5f83a96f98e1688d2938839d99f9ec0cb44b Mon Sep 17 00:00:00 2001 From: Haritest Date: Mon, 19 Feb 2024 11:55:12 +0530 Subject: [PATCH 07/11] Update main.yml surveys_service_prefix added --- ansible/roles/kong-api/defaults/main.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/ansible/roles/kong-api/defaults/main.yml b/ansible/roles/kong-api/defaults/main.yml index e5e306e2dd..df4ac700a8 100644 --- a/ansible/roles/kong-api/defaults/main.yml +++ b/ansible/roles/kong-api/defaults/main.yml @@ -98,6 +98,9 @@ program_prefix: /program competency_prefix: /competency cb_plan_prefix: /cbplan observationSubmissions_service_prefix: /observationSubmissions +surveys_service_prefix: /surveys +surveySubmissions_service_prefix: /surveySubmissions +user_extension_prefix: /user-extension # Service URLs knowledge_mw_service_url: "http://knowledge-mw-service:5000" From f0eff0dc4909fb1106eab08a5e6a05e738e49ec6 Mon Sep 17 00:00:00 2001 From: Haritest Date: Mon, 19 Feb 2024 11:59:52 +0530 Subject: [PATCH 08/11] Update main.yml cloud_service_prefix added --- ansible/roles/kong-api/defaults/main.yml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/ansible/roles/kong-api/defaults/main.yml b/ansible/roles/kong-api/defaults/main.yml index df4ac700a8..ba11b3399c 100644 --- a/ansible/roles/kong-api/defaults/main.yml +++ b/ansible/roles/kong-api/defaults/main.yml @@ -101,6 +101,14 @@ observationSubmissions_service_prefix: /observationSubmissions surveys_service_prefix: /surveys surveySubmissions_service_prefix: /surveySubmissions user_extension_prefix: /user-extension +cloud_service_prefix: /cloud-services +entities_service_prefix: /entities +solutions_service_prefix: /solutions +users_service_prefix: /users +integration_app_prefix: /app +userProjects_service_prefix: /userProjects +reports_service_prefix: /reports +observations_service_prefix: /observations # Service URLs knowledge_mw_service_url: "http://knowledge-mw-service:5000" From 4e94c10741208f49cef64cd9acf2fcf0d1928748 Mon Sep 17 00:00:00 2001 From: Haritest Date: Mon, 19 Feb 2024 12:01:17 +0530 Subject: [PATCH 09/11] Update main.yml programs_service_prefix added --- ansible/roles/kong-api/defaults/main.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/ansible/roles/kong-api/defaults/main.yml b/ansible/roles/kong-api/defaults/main.yml index ba11b3399c..7efc0db4f0 100644 --- a/ansible/roles/kong-api/defaults/main.yml +++ b/ansible/roles/kong-api/defaults/main.yml @@ -109,6 +109,7 @@ integration_app_prefix: /app userProjects_service_prefix: /userProjects reports_service_prefix: /reports observations_service_prefix: /observations +programs_service_prefix: /programs # Service URLs knowledge_mw_service_url: "http://knowledge-mw-service:5000" From 8f432a6f6afb4aecf628f7a7625f81ef269f682c Mon Sep 17 00:00:00 2001 From: Haritest Date: Mon, 19 Feb 2024 12:23:41 +0530 Subject: [PATCH 10/11] Update main.yml opa-checks removed --- ansible/roles/kong-api/defaults/main.yml | 74 +----------------------- 1 file changed, 1 insertion(+), 73 deletions(-) diff --git a/ansible/roles/kong-api/defaults/main.yml b/ansible/roles/kong-api/defaults/main.yml index 7efc0db4f0..68c4366c98 100644 --- a/ansible/roles/kong-api/defaults/main.yml +++ b/ansible/roles/kong-api/defaults/main.yml @@ -11019,9 +11019,6 @@ kong_apis: 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: observationSubmissionsList uris: "{{ observationSubmissions_service_prefix }}/mlsurvey/v1/list" @@ -11040,9 +11037,6 @@ kong_apis: 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: observationQuestionList uris: "{{ observations_service_prefix }}/mlsurvey/v1/assessment" @@ -11061,9 +11055,6 @@ kong_apis: 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: updateObservationSubmission uris: "{{ observationSubmissions_service_prefix }}/mlsurvey/v1/update" @@ -11082,9 +11073,6 @@ kong_apis: 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: createObservationSubmission uris: "{{ observationSubmissions_service_prefix }}/mlsurvey/v1/create" @@ -11103,9 +11091,6 @@ kong_apis: 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: searchLocationEntities uris: "{{ observations_service_prefix }}/mlsurvey/v1/searchEntities" @@ -11124,9 +11109,6 @@ kong_apis: 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: addObservationEntity uris: "{{ observations_service_prefix }}/mlsurvey/v1/updateEntities" @@ -11145,9 +11127,6 @@ kong_apis: 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: observationSolutionList uris: "{{ observationSubmissions_service_prefix }}/mlsurvey/v1/solutionList" @@ -11166,9 +11145,6 @@ kong_apis: 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: surveyQuestionList uris: "{{ surveys_service_prefix }}/mlsurvey/v1/details" @@ -11187,10 +11163,7 @@ kong_apis: 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: solutionsVerifyLink uris: "{{ solutions_service_prefix }}/mlsurvey/v1/verifyLink" upstream_url: "{{ ml_survey_service_url }}/v1/solutions/verifyLink" @@ -11208,9 +11181,6 @@ kong_apis: 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: updateSurveySubmission uris: "{{ surveySubmissions_service_prefix }}/mlsurvey/v1/update" @@ -11229,9 +11199,6 @@ kong_apis: 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: getUsersPrograms uris: "{{ users_service_prefix }}/mlcore/v1/programs" @@ -11250,9 +11217,6 @@ kong_apis: 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: getUsersSolutions uris: "{{ users_service_prefix }}/mlcore/v1/solutions" @@ -11271,9 +11235,6 @@ kong_apis: 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: getTargetedSolutions uris: "{{ solutions_service_prefix }}/mlcore/v1/targetedSolutions" @@ -11292,9 +11253,6 @@ kong_apis: 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: userLocationScope uris: "{{ entities_service_prefix }}/mlcore/v1/subEntityListBasedOnRoleAndLocation" @@ -11313,9 +11271,6 @@ kong_apis: 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: mandatoryUserProfileFields uris: "{{ entities_service_prefix }}/mlcore/v1/entityTypesByLocationAndRole" @@ -11334,9 +11289,6 @@ kong_apis: 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: locationListing uris: "{{ entities_service_prefix }}/mlcore/v1/subEntityList" @@ -11355,9 +11307,6 @@ kong_apis: 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: getTargetedEntity uris: "{{ users_service_prefix }}/mlcore/v1/targetedEntity" @@ -11376,9 +11325,6 @@ kong_apis: 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: getFileUploadUrls uris: "{{ cloud_service_prefix }}/mlcore/v1/files/preSignedUrls" @@ -11397,9 +11343,6 @@ kong_apis: 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: listPlatformPrograms uris: "{{ user_extension_prefix }}/mlcore/v1/programsByPlatformRoles" @@ -11418,9 +11361,6 @@ kong_apis: 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: listPlatformSolutions uris: "{{ user_extension_prefix }}/mlcore/v1/solutions" @@ -11439,9 +11379,6 @@ kong_apis: 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: VerifyLink uris: "{{ solutions_service_prefix }}/mlcore/v1/verifyLink" @@ -11460,9 +11397,6 @@ kong_apis: 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: GetTemplateOrQuestions uris: "{{ solutions_service_prefix }}/mlcore/v1/details" @@ -11481,9 +11415,6 @@ kong_apis: 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: joinProgramByUser uris: "{{ programs_service_prefix }}/mlcore/v1/join" @@ -11502,6 +11433,3 @@ kong_apis: 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 From f6761101541dbc938316b8e4b5ec12fe4f630c4a Mon Sep 17 00:00:00 2001 From: Haritest Date: Mon, 19 Feb 2024 13:47:29 +0530 Subject: [PATCH 11/11] Update search-service_application.conf search.fields.query updatd --- .../stack-sunbird/templates/search-service_application.conf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ansible/roles/stack-sunbird/templates/search-service_application.conf b/ansible/roles/stack-sunbird/templates/search-service_application.conf index 0402b6e416..c02de83691 100644 --- a/ansible/roles/stack-sunbird/templates/search-service_application.conf +++ b/ansible/roles/stack-sunbird/templates/search-service_application.conf @@ -332,7 +332,7 @@ installation.id="{{sunbird_installation}}" # ElasticSearch Configuration ekstepPlatformApiUserId="search-service" search.es_conn_info="{{ search_index_host }}" -search.fields.query=["name^100", "identifier^100", "purpose^60", "keywords^60", "source^50.0", "owner^50", "creator^20", "language^20.0", "contentType^10", "description^5.0","courseCategory^5.0"] +search.fields.query=["name^100", "identifier^100", "purpose^60", "keywords^60", "source^50.0", "owner^50", "creator^20", "language^20.0", "description^5.0","courseCategory^5.0"] search.fields.date=["lastUpdatedOn","createdOn","versionDate","lastSubmittedOn","lastPublishedOn"] search.fields.mode_collection=["identifier","name","objectType","contentType","mimeType","size","childNodes","board","subject","medium","gradeLevel","appIcon","resourceType","origin","originData"] search.batch.size=500