Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

4.8.13 dev #292

Merged
merged 13 commits into from
May 14, 2024
100 changes: 95 additions & 5 deletions ansible/roles/kong-api/defaults/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,7 @@ private_ml_survey_prefix: /private/mlsurvey
open_program_prefix: /openprogram
calendar_prefix: /calendar
careers_prefix: /careers
demand_prefix: /demand

# Service URLs
knowledge_mw_service_url: "http://knowledge-mw-service:5000"
Expand Down Expand Up @@ -153,6 +154,7 @@ ml_survey_service_url: "http://ml-survey-service:3000"
ml_core_service_url: "http://ml-core-service:3000"
ml_survey_private_url: "http://{{private_ingressgateway_ip}}/ml-survey"
ml_core_private_url: "http://{{private_ingressgateway_ip}}/ml-core"
cb_pores_service_url : "http://cb-pores-service:7001"

premium_consumer_rate_limits:
- api: createContent
Expand Down Expand Up @@ -13004,8 +13006,8 @@ kong_apis:
config.allowed_payload_size: "{{ medium_request_size_limit }}"

- name: microsite
uris: "/microsite/topFeatured/content/search"
upstream_url: "{{ sb_cb_ext_service_url }}/microsite/topFeatured/content/search"
uris: "/msite/content/aggregation/search"
upstream_url: "{{ sb_cb_ext_service_url }}/content/aggregation/search"
strip_uri: true
plugins:
- name: jwt
Expand All @@ -13022,7 +13024,7 @@ kong_apis:
config.allowed_payload_size: "{{ medium_request_size_limit }}"

- name: workflowGetUserWFApplicationFieldsV2
uris: "{{ workflow_handler_service_prefix }}/v2/getUserWFApplicationFields"
uris: "{{ workflow_handler_service_prefix }}/v2/userWFApplicationFieldsSearch"
upstream_url: "{{ workflow_handler_service_url }}/v2/workflow/getUserWFApplicationFields"
strip_uri: true
plugins:
Expand Down Expand Up @@ -13056,7 +13058,7 @@ kong_apis:
config.limit_by: credential
- name: request-size-limiting
config.allowed_payload_size: "{{ small_request_size_limit }}"

- name: externalOperationalReportDownload
uris: "/external/operationalreports/download"
upstream_url: "{{ sb_cb_ext_service_url }}/operational/reports/download"
Expand All @@ -13073,4 +13075,92 @@ 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: demandCreate
uris: "{{ demand_prefix }}/content/create"
upstream_url: "{{ cb_pores_service_url }}/demand/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: demandRead
uris: "{{ demand_prefix }}/content/read"
upstream_url: "{{ cb_pores_service_url }}/demand/read"
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: deleteDemand
uris: "{{ demand_prefix }}/content/delete"
upstream_url: "{{ cb_pores_service_url }}/demand/delete"
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: searchDemand
uris: "{{ demand_prefix }}/content/search"
upstream_url: "{{ cb_pores_service_url }}/demand/filter"
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: orgAssetUpload
uris: "/storage/orgStoreUpload"
upstream_url: "{{ sb_cb_ext_service_url }}/storage/orgStoreUpload"
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