From ed3396661a623eb465dea975af8b419381bb7fcd Mon Sep 17 00:00:00 2001 From: "haridas.kakunje" Date: Thu, 28 Jan 2021 03:14:12 +0530 Subject: [PATCH 01/65] sunbird_lms-service.env updated --- ansible/roles/stack-sunbird/templates/sunbird_lms-service.env | 1 + 1 file changed, 1 insertion(+) diff --git a/ansible/roles/stack-sunbird/templates/sunbird_lms-service.env b/ansible/roles/stack-sunbird/templates/sunbird_lms-service.env index 42859c390..4e662dd4e 100644 --- a/ansible/roles/stack-sunbird/templates/sunbird_lms-service.env +++ b/ansible/roles/stack-sunbird/templates/sunbird_lms-service.env @@ -125,6 +125,7 @@ learning.content.props.to.add={{ learning_content_props_to_add | default('mimeTy group_activity_agg_cache_ttl={{ group_activity_agg_cache_ttl }} group_activity_agg_cache_enable={{ group_activity_agg_cache_enable }} sunbird_env_name={{env_name}} +content.default.fields=["contentid","userid","batchid","courseid","completedcount","completionpercentage","lastcompletedtime", "progress", "status","viewcount"] ## Redis connection detail ## redis.connection.max={{ lms_redis_connection_max | default(64) }} From 18611df221c946b41b00cbe380c45d66922f37eb Mon Sep 17 00:00:00 2001 From: eagle-sb <60254608+eagle-sb@users.noreply.github.com> Date: Tue, 9 Feb 2021 12:26:53 +0530 Subject: [PATCH 02/65] Update monitrc --- ansible/roles/monit/templates/monitrc | 321 +++++++++++++++++++++++--- 1 file changed, 284 insertions(+), 37 deletions(-) diff --git a/ansible/roles/monit/templates/monitrc b/ansible/roles/monit/templates/monitrc index 0681b787c..79db90c41 100755 --- a/ansible/roles/monit/templates/monitrc +++ b/ansible/roles/monit/templates/monitrc @@ -1,43 +1,290 @@ -# Start Monit in the background (run as a daemon): - set daemon 60 # check services at 1-minute intervals - set logfile /var/log/monit.log - set idfile /var/lib/monit/id - set statefile /var/lib/monit/state +############################################################################### +## Monit control file +############################################################################### +## +## Comments begin with a '#' and extend through the end of the line. Keywords +## are case insensitive. All path's MUST BE FULLY QUALIFIED, starting with '/'. +## +## Below you will find examples of some frequently used statements. For +## information about the control file and a complete list of statements and +## options, please have a look in the Monit manual. +## +## +############################################################################### +## Global section +############################################################################### +## +## Start Monit in the background (run as a daemon): +# +set daemon 30 # check services at 30 seconds intervals +# with start delay 240 # optional: delay the first check by 4-minutes (by +# # default Monit check immediately after Monit start) +# +# +## Set syslog logging. If you want to log to a standalone log file instead, +## specify the full path to the log file +# +set logfile syslog - set mailserver {{ monitor_alerts_mail_server_host }} port {{ monitor_alerts_mail_server_port }} - username "{{ monitor_alerts_mail_server_username }}" - password "{{ monitor_alerts_mail_server_password }}" - using TLSV1 - with timeout 30 seconds +# +# +## Set the location of the Monit lock file which stores the process id of the +## running Monit instance. By default this file is stored in $HOME/.monit.pid +# +# set pidfile /var/run/monit.pid +# +## Set the location of the Monit id file which stores the unique id for the +## Monit instance. The id is generated and stored on first Monit start. By +## default the file is placed in $HOME/.monit.id. +# +# set idfile /var/.monit.id +# +## Set the location of the Monit state file which saves monitoring states +## on each cycle. By default the file is placed in $HOME/.monit.state. If +## the state file is stored on a persistent filesystem, Monit will recover +## the monitoring state across reboots. If it is on temporary filesystem, the +## state will be lost on reboot which may be convenient in some situations. +# +# set statefile /var/.monit.state +# +# - set httpd - port 2812 - allow 0.0.0.0/0 +## Set limits for various tests. The following example shows the default values: +## +# set limits { +# programOutput: 512 B, # check program's output truncate limit +# sendExpectBuffer: 256 B, # limit for send/expect protocol test +# fileContentBuffer: 512 B, # limit for file content test +# httpContentBuffer: 1 MB, # limit for HTTP content test +# networkTimeout: 5 seconds # timeout for network I/O +# } -## By default Monit will drop alert events if no mail servers are available. -## If you want to keep the alerts for later delivery retry, you can use the -## EVENTQUEUE statement. - set eventqueue - basedir /var/lib/monit/events # set the base directory where events will be stored - slots 100 # optionally limit the queue size - - set mail-format { - from: {{ monitor_alerts_mail_from_email }} - subject: [{{ env }}] monit alert -- $EVENT $SERVICE - message: $EVENT Service $SERVICE - Date: $DATE - Action: $ACTION - Host: $HOST - Description: $DESCRIPTION - - Your faithful employee, - Monit - } - -{% for mail_id in alerts_mailing_list.split(',') %} - set alert {{ mail_id }} not on { instance, pid, ppid } -{% endfor %} +## Set global SSL options (just most common options showed, see manual for +## full list). +# +# set ssl { +# verify : enable, # verify SSL certificates (disabled by default but STRONGLY RECOMMENDED) +# selfsigned : allow # allow self signed SSL certificates (reject by default) +# } +# +# +## Set the list of mail servers for alert delivery. Multiple servers may be +## specified using a comma separator. If the first mail server fails, Monit +# will use the second mail server in the list and so on. By default Monit uses +# port 25 - it is possible to override this with the PORT option. +# +# set mailserver mail.bar.baz, # primary mailserver +# backup.bar.baz port 10025, # backup mailserver on port 10025 +# localhost # fallback relay +# +# +## By default Monit will drop alert events if no mail servers are available. +## If you want to keep the alerts for later delivery retry, you can use the +## EVENTQUEUE statement. The base directory where undelivered alerts will be +## stored is specified by the BASEDIR option. You can limit the queue size +## by using the SLOTS option (if omitted, the queue is limited by space +## available in the back end filesystem). +# +# set eventqueue +# basedir /var/monit # set the base directory where events will be stored +# slots 100 # optionally limit the queue size +# +# +## Send status and events to M/Monit (for more informations about M/Monit +## see http://mmonit.com/). By default Monit registers credentials with +## M/Monit so M/Monit can smoothly communicate back to Monit and you don't +## have to register Monit credentials manually in M/Monit. It is possible to +## disable credential registration using the commented out option below. +## Though, if safety is a concern we recommend instead using https when +## communicating with M/Monit and send credentials encrypted. +# +# set mmonit http://monit:monit@192.168.1.10:8080/collector +# # and register without credentials # Don't register credentials +# +# +## Monit by default uses the following format for alerts if the the mail-format +## statement is missing:: +## --8<-- +## set mail-format { +## from: Monit +## subject: monit alert -- $EVENT $SERVICE +## message: $EVENT Service $SERVICE +## Date: $DATE +## Action: $ACTION +## Host: $HOST +## Description: $DESCRIPTION +## +## Your faithful employee, +## Monit +## } +## --8<-- +## +## You can override this message format or parts of it, such as subject +## or sender using the MAIL-FORMAT statement. Macros such as $DATE, etc. +## are expanded at runtime. For example, to override the sender, use: +# +# set mail-format { from: monit@foo.bar } +# +# +## You can set alert recipients whom will receive alerts if/when a +## service defined in this file has errors. Alerts may be restricted on +## events by using a filter as in the second example below. +# +# set alert sysadm@foo.bar # receive all alerts +# +## Do not alert when Monit starts, stops or performs a user initiated action. +## This filter is recommended to avoid getting alerts for trivial cases. +# +# set alert your-name@your.domain not on { instance, action } +# +# +## Monit has an embedded HTTP interface which can be used to view status of +## services monitored and manage services from a web interface. The HTTP +## interface is also required if you want to issue Monit commands from the +## command line, such as 'monit status' or 'monit restart service' The reason +## for this is that the Monit client uses the HTTP interface to send these +## commands to a running Monit daemon. See the Monit Wiki if you want to +## enable SSL for the HTTP interface. +# +set httpd port 2812 and + use address localhost # only accept connection from localhost + allow localhost # allow localhost to connect to the server and + allow admin:monit # require user 'admin' with password 'monit' +############################################################################### +## Services +############################################################################### +## +## Check general system resources such as load average, cpu and memory +## usage. Each test specifies a resource, conditions and the action to be +## performed should a test fail. +# +# check system $HOST +# if loadavg (1min) > 4 then alert +# if loadavg (5min) > 2 then alert +# if cpu usage > 95% for 10 cycles then alert +# if memory usage > 75% then alert +# if swap usage > 25% then alert +# +# +## Check if a file exists, checksum, permissions, uid and gid. In addition +## to alert recipients in the global section, customized alert can be sent to +## additional recipients by specifying a local alert handler. The service may +## be grouped using the GROUP option. More than one group can be specified by +## repeating the 'group name' statement. +# +# check file apache_bin with path /usr/local/apache/bin/httpd +# if failed checksum and +# expect the sum 8f7f419955cefa0b33a2ba316cba3659 then unmonitor +# if failed permission 755 then unmonitor +# if failed uid root then unmonitor +# if failed gid root then unmonitor +# alert security@foo.bar on { +# checksum, permission, uid, gid, unmonitor +# } with the mail-format { subject: Alarm! } +# group server +# +# +## Check that a process is running, in this case Apache, and that it respond +## to HTTP and HTTPS requests. Check its resource usage such as cpu and memory, +## and number of children. If the process is not running, Monit will restart +## it by default. In case the service is restarted very often and the +## problem remains, it is possible to disable monitoring using the TIMEOUT +## statement. This service depends on another service (apache_bin) which +## is defined above. +# +# check process apache with pidfile /usr/local/apache/logs/httpd.pid +# start program = "/etc/init.d/httpd start" with timeout 60 seconds +# stop program = "/etc/init.d/httpd stop" +# if cpu > 60% for 2 cycles then alert +# if cpu > 80% for 5 cycles then restart +# if totalmem > 200.0 MB for 5 cycles then restart +# if children > 250 then restart +# if loadavg(5min) greater than 10 for 8 cycles then stop +# if failed host www.tildeslash.com port 80 protocol http +# and request "/somefile.html" +# then restart +# if failed port 443 protocol https with timeout 15 seconds then restart +# if 3 restarts within 5 cycles then unmonitor +# depends on apache_bin +# group server +# +# +## Check filesystem permissions, uid, gid, space and inode usage. Other services, +## such as databases, may depend on this resource and an automatically graceful +## stop may be cascaded to them before the filesystem will become full and data +## lost. +# +# check filesystem datafs with path /dev/sdb1 +# start program = "/bin/mount /data" +# stop program = "/bin/umount /data" +# if failed permission 660 then unmonitor +# if failed uid root then unmonitor +# if failed gid disk then unmonitor +# if space usage > 80% for 5 times within 15 cycles then alert +# if space usage > 99% then stop +# if inode usage > 30000 then alert +# if inode usage > 99% then stop +# group server +# +# +## Check a file's timestamp. In this example, we test if a file is older +## than 15 minutes and assume something is wrong if its not updated. Also, +## if the file size exceed a given limit, execute a script +# +# check file database with path /data/mydatabase.db +# if failed permission 700 then alert +# if failed uid data then alert +# if failed gid data then alert +# if timestamp > 15 minutes then alert +# if size > 100 MB then exec "/my/cleanup/script" as uid dba and gid dba +# +# +## Check directory permission, uid and gid. An event is triggered if the +## directory does not belong to the user with uid 0 and gid 0. In addition, +## the permissions have to match the octal description of 755 (see chmod(1)). +# +# check directory bin with path /bin +# if failed permission 755 then unmonitor +# if failed uid 0 then unmonitor +# if failed gid 0 then unmonitor +# +# +## Check a remote host availability by issuing a ping test and check the +## content of a response from a web server. Up to three pings are sent and +## connection to a port and an application level network check is performed. +# +# check host myserver with address 192.168.1.1 +# if failed ping then alert +# if failed port 3306 protocol mysql with timeout 15 seconds then alert +# if failed port 80 protocol http +# and request /some/path with content = "a string" +# then alert +# +# +## Check a network link status (up/down), link capacity changes, saturation +## and bandwidth usage. +# +# check network public with interface eth0 +# if failed link then alert +# if changed link then alert +# if saturation > 90% then alert +# if download > 10 MB/s then alert +# if total upload > 1 GB in last hour then alert +# +# +## Check custom program status output. +# +# check program myscript with path /usr/local/bin/myscript.sh +# if status != 0 then alert +# +# +############################################################################### +## Includes +############################################################################### +## ## It is possible to include additional configuration parts from other files or ## directories. - include /etc/monit/conf.d/* +# +# include /etc/monit.d/* +# From 23d06ab72c91cc2db7f4596839e99569e17e1fc7 Mon Sep 17 00:00:00 2001 From: eagle-sb <60254608+eagle-sb@users.noreply.github.com> Date: Tue, 9 Feb 2021 16:30:32 +0530 Subject: [PATCH 03/65] Update sunbird_lms-service.env --- ansible/roles/stack-sunbird/templates/sunbird_lms-service.env | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ansible/roles/stack-sunbird/templates/sunbird_lms-service.env b/ansible/roles/stack-sunbird/templates/sunbird_lms-service.env index 4e662dd4e..b8c3ff2a8 100644 --- a/ansible/roles/stack-sunbird/templates/sunbird_lms-service.env +++ b/ansible/roles/stack-sunbird/templates/sunbird_lms-service.env @@ -125,7 +125,7 @@ learning.content.props.to.add={{ learning_content_props_to_add | default('mimeTy group_activity_agg_cache_ttl={{ group_activity_agg_cache_ttl }} group_activity_agg_cache_enable={{ group_activity_agg_cache_enable }} sunbird_env_name={{env_name}} -content.default.fields=["contentid","userid","batchid","courseid","completedcount","completionpercentage","lastcompletedtime", "progress", "status","viewcount"] +content.default.fields=contentid,userid,batchid,courseid,completedcount,completionpercentage,lastcompletedtime, progress, status,viewcount ## Redis connection detail ## redis.connection.max={{ lms_redis_connection_max | default(64) }} From 4bcc878cfcaceb9ba30e3f5d0061fbc948365714 Mon Sep 17 00:00:00 2001 From: eagle-sb <60254608+eagle-sb@users.noreply.github.com> Date: Tue, 23 Feb 2021 15:41:32 +0530 Subject: [PATCH 04/65] Update sunbird_lms-service.env --- ansible/roles/stack-sunbird/templates/sunbird_lms-service.env | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ansible/roles/stack-sunbird/templates/sunbird_lms-service.env b/ansible/roles/stack-sunbird/templates/sunbird_lms-service.env index b8c3ff2a8..389b8a412 100644 --- a/ansible/roles/stack-sunbird/templates/sunbird_lms-service.env +++ b/ansible/roles/stack-sunbird/templates/sunbird_lms-service.env @@ -125,8 +125,8 @@ learning.content.props.to.add={{ learning_content_props_to_add | default('mimeTy group_activity_agg_cache_ttl={{ group_activity_agg_cache_ttl }} group_activity_agg_cache_enable={{ group_activity_agg_cache_enable }} sunbird_env_name={{env_name}} -content.default.fields=contentid,userid,batchid,courseid,completedcount,completionpercentage,lastcompletedtime, progress, status,viewcount - +content.default.fields=contentid,userid,batchid,courseid,completedcount,completionpercentage,lastcompletedtime,status,viewcount + ## Redis connection detail ## redis.connection.max={{ lms_redis_connection_max | default(64) }} redis.connection.idle.max={{ lms_redis_connection_idle_max | default(32) }} From 998235de95caae2ba5598ea93039e225327a494c Mon Sep 17 00:00:00 2001 From: "haridas.kakunje" Date: Tue, 9 Mar 2021 12:37:29 +0530 Subject: [PATCH 05/65] kong-api/defaults/main.yml --- ansible/roles/kong-api/defaults/main.yml | 20 +++++++++++++++++++- 1 file changed, 19 insertions(+), 1 deletion(-) diff --git a/ansible/roles/kong-api/defaults/main.yml b/ansible/roles/kong-api/defaults/main.yml index c7ff75e75..dc9fcb273 100644 --- a/ansible/roles/kong-api/defaults/main.yml +++ b/ansible/roles/kong-api/defaults/main.yml @@ -78,7 +78,7 @@ asset_prefix: /asset collection_prefix: /collection question_prefix: /question questionset_prefix: /questionset - +event_prefix: /event # Service URLs knowledge_mw_service_url: "http://knowledge-mw-service:5000" @@ -5947,3 +5947,21 @@ kong_apis: config.limit_by: credential - name: request-size-limiting config.allowed_payload_size: "{{ medium_request_size_limit }}" + + - name: createAsset + uris: "{{ event_prefix }}/v4/create" + upstream_url: "{{ content_service_url }}/event/v4/create" + strip_uri: true + plugins: + - name: jwt + - name: cors + - "{{ statsd_pulgin }}" + - name: acl + config.whitelist: + - 'contentCreate' + - 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 a885f80890bb657ab89ebc6bfea5a84e7a45b09b Mon Sep 17 00:00:00 2001 From: eagle-sb <60254608+eagle-sb@users.noreply.github.com> Date: Tue, 23 Mar 2021 18:55:04 +0530 Subject: [PATCH 06/65] Update main.yml --- ansible/roles/kong-api/defaults/main.yml | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/ansible/roles/kong-api/defaults/main.yml b/ansible/roles/kong-api/defaults/main.yml index dc9fcb273..514e4925c 100644 --- a/ansible/roles/kong-api/defaults/main.yml +++ b/ansible/roles/kong-api/defaults/main.yml @@ -5965,3 +5965,21 @@ kong_apis: config.limit_by: credential - name: request-size-limiting config.allowed_payload_size: "{{ medium_request_size_limit }}" + + - name: readAsset + uris: "{{ event_prefix }}/event/v4/read/:identifier" + upstream_url: "{{ content_service_url }}/event/v4/read/:identifier" + strip_uri: true + plugins: + - name: jwt + - name: cors + - "{{ statsd_pulgin }}" + - name: acl + config.whitelist: + - 'contentCreate' + - 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 46f64f41602d3c1fd947f92141c97acbbb0c9dc2 Mon Sep 17 00:00:00 2001 From: eagle-sb <60254608+eagle-sb@users.noreply.github.com> Date: Tue, 23 Mar 2021 19:40:19 +0530 Subject: [PATCH 07/65] Update main.yml --- ansible/roles/kong-api/defaults/main.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ansible/roles/kong-api/defaults/main.yml b/ansible/roles/kong-api/defaults/main.yml index 514e4925c..794836a10 100644 --- a/ansible/roles/kong-api/defaults/main.yml +++ b/ansible/roles/kong-api/defaults/main.yml @@ -5967,8 +5967,8 @@ kong_apis: config.allowed_payload_size: "{{ medium_request_size_limit }}" - name: readAsset - uris: "{{ event_prefix }}/event/v4/read/:identifier" - upstream_url: "{{ content_service_url }}/event/v4/read/:identifier" + uris: "{{ event_prefix }}/v4/read/:identifier" + upstream_url: "{{ content_service_url }}/v4/read/:identifier" strip_uri: true plugins: - name: jwt From ea5f60b221acae024aca93130a809e25e9fcd101 Mon Sep 17 00:00:00 2001 From: eagle-sb <60254608+eagle-sb@users.noreply.github.com> Date: Tue, 23 Mar 2021 19:51:33 +0530 Subject: [PATCH 08/65] Update main.yml --- 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 794836a10..eaea398d5 100644 --- a/ansible/roles/kong-api/defaults/main.yml +++ b/ansible/roles/kong-api/defaults/main.yml @@ -5968,7 +5968,7 @@ kong_apis: - name: readAsset uris: "{{ event_prefix }}/v4/read/:identifier" - upstream_url: "{{ content_service_url }}/v4/read/:identifier" + upstream_url: "{{ content_service_url }}/event/v4/read/:identifier" strip_uri: true plugins: - name: jwt From 7575feb68be51d03bb8195764c5b5ddf0c859585 Mon Sep 17 00:00:00 2001 From: eagle-sb <60254608+eagle-sb@users.noreply.github.com> Date: Wed, 24 Mar 2021 10:24:25 +0530 Subject: [PATCH 09/65] Update main.yml --- ansible/roles/kong-api/defaults/main.yml | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/ansible/roles/kong-api/defaults/main.yml b/ansible/roles/kong-api/defaults/main.yml index eaea398d5..363930bf3 100644 --- a/ansible/roles/kong-api/defaults/main.yml +++ b/ansible/roles/kong-api/defaults/main.yml @@ -5948,7 +5948,7 @@ kong_apis: - name: request-size-limiting config.allowed_payload_size: "{{ medium_request_size_limit }}" - - name: createAsset + - name: createEvent uris: "{{ event_prefix }}/v4/create" upstream_url: "{{ content_service_url }}/event/v4/create" strip_uri: true @@ -5966,9 +5966,9 @@ kong_apis: - name: request-size-limiting config.allowed_payload_size: "{{ medium_request_size_limit }}" - - name: readAsset - uris: "{{ event_prefix }}/v4/read/:identifier" - upstream_url: "{{ content_service_url }}/event/v4/read/:identifier" + - name: readEvent + uris: "{{ event_prefix }}/v4/read" + upstream_url: "{{ content_service_url }}/event/v4/read" strip_uri: true plugins: - name: jwt @@ -5976,7 +5976,7 @@ kong_apis: - "{{ statsd_pulgin }}" - name: acl config.whitelist: - - 'contentCreate' + - 'contentAccess' - name: rate-limiting config.policy: local config.hour: "{{ medium_rate_limit_per_hour }}" From 7b246b2f4fc86b0e61a1fba69776bb1025b2bdaf Mon Sep 17 00:00:00 2001 From: eagle-sb <60254608+eagle-sb@users.noreply.github.com> Date: Wed, 24 Mar 2021 10:51:10 +0530 Subject: [PATCH 10/65] Update main.yml --- ansible/roles/kong-api/defaults/main.yml | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/ansible/roles/kong-api/defaults/main.yml b/ansible/roles/kong-api/defaults/main.yml index 363930bf3..0083cdc98 100644 --- a/ansible/roles/kong-api/defaults/main.yml +++ b/ansible/roles/kong-api/defaults/main.yml @@ -5983,3 +5983,21 @@ kong_apis: config.limit_by: credential - name: request-size-limiting config.allowed_payload_size: "{{ medium_request_size_limit }}" + + - name: updateEvent + uris: "{{ event_prefix }}/v4/update" + upstream_url: "{{ content_service_url }}/event/v4/update" + 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 d685c24219ccb49425f3d044dfc983151edfc2c0 Mon Sep 17 00:00:00 2001 From: eagle-sb <60254608+eagle-sb@users.noreply.github.com> Date: Wed, 24 Mar 2021 13:30:49 +0530 Subject: [PATCH 11/65] Update main.yml --- ansible/roles/kong-api/defaults/main.yml | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/ansible/roles/kong-api/defaults/main.yml b/ansible/roles/kong-api/defaults/main.yml index 0083cdc98..9c91167a4 100644 --- a/ansible/roles/kong-api/defaults/main.yml +++ b/ansible/roles/kong-api/defaults/main.yml @@ -6001,3 +6001,21 @@ kong_apis: config.limit_by: credential - name: request-size-limiting config.allowed_payload_size: "{{ medium_request_size_limit }}" + + - name: publishEvent + uris: "{{ event_prefix }}/v4/publish" + upstream_url: "{{ knowledge_mw_service_url }}/v4/event/publish" + strip_uri: true + plugins: + - name: jwt + - name: cors + - "{{ statsd_pulgin }}" + - name: acl + config.whitelist: + - 'courseAdmin' + - 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 }}" From 6baa9e4e0326fb0eee34b6e6e1208ac9387de6c8 Mon Sep 17 00:00:00 2001 From: eagle-sb <60254608+eagle-sb@users.noreply.github.com> Date: Wed, 24 Mar 2021 13:44:54 +0530 Subject: [PATCH 12/65] Update main.yml --- 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 9c91167a4..ac255fe45 100644 --- a/ansible/roles/kong-api/defaults/main.yml +++ b/ansible/roles/kong-api/defaults/main.yml @@ -6004,7 +6004,7 @@ kong_apis: - name: publishEvent uris: "{{ event_prefix }}/v4/publish" - upstream_url: "{{ knowledge_mw_service_url }}/v4/event/publish" + upstream_url: "{{ content_service_url }}/v4/event/publish" strip_uri: true plugins: - name: jwt From 0bbc0a2ac5f28f68437ced9dc0335f93b084f5fb Mon Sep 17 00:00:00 2001 From: eagle-sb <60254608+eagle-sb@users.noreply.github.com> Date: Tue, 18 May 2021 18:55:08 +0530 Subject: [PATCH 13/65] Update main.yml --- 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 ac255fe45..8b0e5c0e2 100644 --- a/ansible/roles/kong-api/defaults/main.yml +++ b/ansible/roles/kong-api/defaults/main.yml @@ -79,6 +79,7 @@ collection_prefix: /collection question_prefix: /question questionset_prefix: /questionset event_prefix: /event +notification_service_prefix: /notification # Service URLs knowledge_mw_service_url: "http://knowledge-mw-service:5000" @@ -98,6 +99,7 @@ group_service_url: "http://groups-service:9000" analytics_api_service_url: "http://analytics-service:9000" taxonomy_service_url: "http://taxonomy-service:9000" assessment_service_url: "http://assessment-service:9000" +notification_service_url: "http://notification-service:9000" premium_consumer_rate_limits: - api: createContent @@ -6019,3 +6021,21 @@ kong_apis: config.limit_by: credential - name: request-size-limiting config.allowed_payload_size: "{{ small_request_size_limit }}" + + - name: sendEmailNotificationSer + uris: "{{ notification_service_prefix }}/v1/notification/send/sync" + upstream_url: "{{ notification_service_url }}/v1/notification/send/sync" + strip_uri: true + plugins: + - name: jwt + - name: cors + - "{{ statsd_pulgin }}" + - name: acl + config.whitelist: + - 'appUpdate' + - 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 75a0bb4ebf591dcd47963bb89f0592dd4eb5dfd6 Mon Sep 17 00:00:00 2001 From: pritha-tarento <42533384+pritha-tarento@users.noreply.github.com> Date: Fri, 21 May 2021 11:50:17 +0530 Subject: [PATCH 14/65] Update main.yml --- 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 8b0e5c0e2..5f05e9a04 100644 --- a/ansible/roles/kong-api/defaults/main.yml +++ b/ansible/roles/kong-api/defaults/main.yml @@ -6006,7 +6006,7 @@ kong_apis: - name: publishEvent uris: "{{ event_prefix }}/v4/publish" - upstream_url: "{{ content_service_url }}/v4/event/publish" + upstream_url: "{{ content_service_url }}/event/v4/publish" strip_uri: true plugins: - name: jwt From 9ece3b20e961f1740114d0b42bb732f4ce028156 Mon Sep 17 00:00:00 2001 From: Amit Kumar Yadav <36166686+amit-kumaryadav@users.noreply.github.com> Date: Wed, 7 Jul 2021 12:51:11 +0530 Subject: [PATCH 15/65] Update main.yml --- ansible/roles/kong-api/defaults/main.yml | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/ansible/roles/kong-api/defaults/main.yml b/ansible/roles/kong-api/defaults/main.yml index 5f05e9a04..d136b9056 100644 --- a/ansible/roles/kong-api/defaults/main.yml +++ b/ansible/roles/kong-api/defaults/main.yml @@ -100,6 +100,7 @@ analytics_api_service_url: "http://analytics-service:9000" taxonomy_service_url: "http://taxonomy-service:9000" assessment_service_url: "http://assessment-service:9000" notification_service_url: "http://notification-service:9000" +sb_cb_ext_service_url: "http://sb-cb-ext-service:7001" premium_consumer_rate_limits: - api: createContent @@ -6039,3 +6040,21 @@ kong_apis: config.limit_by: credential - name: request-size-limiting config.allowed_payload_size: "{{ medium_request_size_limit }}" + + - name: getmandatoryContentStatus + uris: "/v1/check/mandatoryContentStatus" + upstream_url: "{{ sb_cb_ext_service_url }}/v1/check/mandatoryContentStatus" + strip_uri: true + plugins: + - name: jwt + - name: cors + - "{{ statsd_pulgin }}" + - name: acl + config.whitelist: + - 'mandatoryContentStatus' + - 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 1dbe37bfa6e2fe4dd6726d49f5cb83fa72e78227 Mon Sep 17 00:00:00 2001 From: Amit Kumar Yadav <36166686+amit-kumaryadav@users.noreply.github.com> Date: Fri, 9 Jul 2021 10:42:24 +0530 Subject: [PATCH 16/65] Update main.yml --- ansible/roles/kong-api/defaults/main.yml | 277 +++++++++++++++++++++++ 1 file changed, 277 insertions(+) diff --git a/ansible/roles/kong-api/defaults/main.yml b/ansible/roles/kong-api/defaults/main.yml index d136b9056..2422349ad 100644 --- a/ansible/roles/kong-api/defaults/main.yml +++ b/ansible/roles/kong-api/defaults/main.yml @@ -6058,3 +6058,280 @@ kong_apis: config.limit_by: credential - name: request-size-limiting config.allowed_payload_size: "{{ medium_request_size_limit }}" + + - name: assessmentSubmit + uris: "/v2/user/assessment/submit" + upstream_url: "{{ sb_cb_ext_service_url }}/v2/user/assessment/submit" + strip_uri: true + plugins: + - name: jwt + - name: cors + - "{{ statsd_pulgin }}" + - name: acl + config.whitelist: + - 'userAssessmentSubmit' + - 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: getTopPerformersForCourse + uris: "/v2/resources/user/cohorts/top-performers" + upstream_url: "{{ sb_cb_ext_service_url }}/v2/resources/user/cohorts/top-performers" + strip_uri: true + plugins: + - name: jwt + - name: cors + - "{{ statsd_pulgin }}" + - name: acl + config.whitelist: + - 'topPerformersForCourse' + - 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: getActiveUsersForCourse + uris: "/v2/resources/user/cohorts/activeusers" + upstream_url: "{{ sb_cb_ext_service_url }}/v2/resources/user/cohorts/activeusers" + strip_uri: true + plugins: + - name: jwt + - name: cors + - "{{ statsd_pulgin }}" + - name: acl + config.whitelist: + - 'activeUsersForCourse' + - 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: courseAutoenrollment + uris: "/v1/autoenrollment" + upstream_url: "{{ sb_cb_ext_service_url }}/v1/autoenrollment" + strip_uri: true + plugins: + - name: jwt + - name: cors + - "{{ statsd_pulgin }}" + - name: acl + config.whitelist: + - 'courseAutoenrollment' + - 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: getCatalog + uris: "/v1/catalog/" + upstream_url: "{{ sb_cb_ext_service_url }}/v1/catalog/" + strip_uri: true + plugins: + - name: jwt + - name: cors + - "{{ statsd_pulgin }}" + - name: acl + config.whitelist: + - 'getCatalog' + - 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: addWorkAllocation + uris: "/v2/workallocation/add" + upstream_url: "{{ sb_cb_ext_service_url }}/v2/workallocation/add" + strip_uri: true + plugins: + - name: jwt + - name: cors + - "{{ statsd_pulgin }}" + - name: acl + config.whitelist: + - 'addWorkAllocation' + - 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: updateWorkAllocation + uris: "/v2/workallocation/update" + upstream_url: "{{ sb_cb_ext_service_url }}/v2/workallocation/update" + strip_uri: true + plugins: + - name: jwt + - name: cors + - "{{ statsd_pulgin }}" + - name: acl + config.whitelist: + - 'updateWorkAllocation' + - 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: addWorkOrder + uris: "/v2/workallocation/add/workorder" + upstream_url: "{{ sb_cb_ext_service_url }}/v2/workallocation/add/workorder" + strip_uri: true + plugins: + - name: jwt + - name: cors + - "{{ statsd_pulgin }}" + - name: acl + config.whitelist: + - 'addWorkOrder' + - 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: updateWorkOrder + uris: "/v2/workallocation/update/workorder" + upstream_url: "{{ sb_cb_ext_service_url }}/v2/workallocation/update/workorder" + strip_uri: true + plugins: + - name: jwt + - name: cors + - "{{ statsd_pulgin }}" + - name: acl + config.whitelist: + - 'updateWorkOrder' + - 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: getWorkOrders + uris: "/v2/workallocation/getWorkOrders" + upstream_url: "{{ sb_cb_ext_service_url }}/v2/workallocation/getWorkOrders" + strip_uri: true + plugins: + - name: jwt + - name: cors + - "{{ statsd_pulgin }}" + - name: acl + config.whitelist: + - 'getWorkOrders' + - 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: getWorkOrderById + uris: "/v2/workallocation/getWorkOrderById" + upstream_url: "{{ sb_cb_ext_service_url }}/v2/workallocation/getWorkOrderById" + strip_uri: true + plugins: + - name: jwt + - name: cors + - "{{ statsd_pulgin }}" + - name: acl + config.whitelist: + - 'getWorkOrderById' + - 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: getWorkAllocationById + uris: "/v2/workallocation/getWorkAllocationById" + upstream_url: "{{ sb_cb_ext_service_url }}/v2/workallocation/getWorkAllocationById" + strip_uri: true + plugins: + - name: jwt + - name: cors + - "{{ statsd_pulgin }}" + - name: acl + config.whitelist: + - 'getWorkAllocationById' + - 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: copyWorkOrder + uris: "/v2/workallocation/copy/workOrder" + upstream_url: "{{ sb_cb_ext_service_url }}/v2/workallocation/copy/workOrder" + strip_uri: true + plugins: + - name: jwt + - name: cors + - "{{ statsd_pulgin }}" + - name: acl + config.whitelist: + - 'copyWorkOrder' + - 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: getUserBasicDetails + uris: "/v2/workallocation/user/basicInfo" + upstream_url: "{{ sb_cb_ext_service_url }}/v2/workallocation/user/basicInfo" + strip_uri: true + plugins: + - name: jwt + - name: cors + - "{{ statsd_pulgin }}" + - name: acl + config.whitelist: + - 'getUserBasicDetails' + - 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: watAutoComplete + uris: "/v1/workallocation/users/autocomplete" + upstream_url: "{{ sb_cb_ext_service_url }}/v1/workallocation/users/autocomplete" + strip_uri: true + plugins: + - name: jwt + - name: cors + - "{{ statsd_pulgin }}" + - name: acl + config.whitelist: + - 'watAutoComplete' + - 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 }}" From b8a6e891e61129743c22f94fa56beb8b91ef4b37 Mon Sep 17 00:00:00 2001 From: Amit Kumar Yadav <36166686+amit-kumaryadav@users.noreply.github.com> Date: Fri, 9 Jul 2021 13:23:41 +0530 Subject: [PATCH 17/65] Update main.yml --- ansible/roles/kong-api/defaults/main.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/ansible/roles/kong-api/defaults/main.yml b/ansible/roles/kong-api/defaults/main.yml index 2422349ad..5a3dbce1c 100644 --- a/ansible/roles/kong-api/defaults/main.yml +++ b/ansible/roles/kong-api/defaults/main.yml @@ -6051,7 +6051,7 @@ kong_apis: - "{{ statsd_pulgin }}" - name: acl config.whitelist: - - 'mandatoryContentStatus' + - 'dataAccess' - name: rate-limiting config.policy: local config.hour: "{{ medium_rate_limit_per_hour }}" @@ -6106,7 +6106,7 @@ kong_apis: - "{{ statsd_pulgin }}" - name: acl config.whitelist: - - 'activeUsersForCourse' + - 'dataAccess' - name: rate-limiting config.policy: local config.hour: "{{ medium_rate_limit_per_hour }}" @@ -6124,7 +6124,7 @@ kong_apis: - "{{ statsd_pulgin }}" - name: acl config.whitelist: - - 'courseAutoenrollment' + - 'courseSuperAdmin' - name: rate-limiting config.policy: local config.hour: "{{ medium_rate_limit_per_hour }}" From e948e0237a84cb34e3d0d928e64ef2737ba12157 Mon Sep 17 00:00:00 2001 From: Amit Kumar Yadav <36166686+amit-kumaryadav@users.noreply.github.com> Date: Fri, 9 Jul 2021 13:54:07 +0530 Subject: [PATCH 18/65] Update main.yml --- ansible/roles/kong-api/defaults/main.yml | 28 ++++++++++++------------ 1 file changed, 14 insertions(+), 14 deletions(-) diff --git a/ansible/roles/kong-api/defaults/main.yml b/ansible/roles/kong-api/defaults/main.yml index 5a3dbce1c..afddd4f08 100644 --- a/ansible/roles/kong-api/defaults/main.yml +++ b/ansible/roles/kong-api/defaults/main.yml @@ -6069,7 +6069,7 @@ kong_apis: - "{{ statsd_pulgin }}" - name: acl config.whitelist: - - 'userAssessmentSubmit' + - 'dataCreate' - name: rate-limiting config.policy: local config.hour: "{{ medium_rate_limit_per_hour }}" @@ -6088,7 +6088,7 @@ kong_apis: - "{{ statsd_pulgin }}" - name: acl config.whitelist: - - 'topPerformersForCourse' + - 'dataAccess' - name: rate-limiting config.policy: local config.hour: "{{ medium_rate_limit_per_hour }}" @@ -6124,7 +6124,7 @@ kong_apis: - "{{ statsd_pulgin }}" - name: acl config.whitelist: - - 'courseSuperAdmin' + - 'dataCreate' - name: rate-limiting config.policy: local config.hour: "{{ medium_rate_limit_per_hour }}" @@ -6142,7 +6142,7 @@ kong_apis: - "{{ statsd_pulgin }}" - name: acl config.whitelist: - - 'getCatalog' + - 'dataAccess' - name: rate-limiting config.policy: local config.hour: "{{ medium_rate_limit_per_hour }}" @@ -6161,7 +6161,7 @@ kong_apis: - "{{ statsd_pulgin }}" - name: acl config.whitelist: - - 'addWorkAllocation' + - 'dataCreate' - name: rate-limiting config.policy: local config.hour: "{{ medium_rate_limit_per_hour }}" @@ -6179,7 +6179,7 @@ kong_apis: - "{{ statsd_pulgin }}" - name: acl config.whitelist: - - 'updateWorkAllocation' + - 'dataUpdate' - name: rate-limiting config.policy: local config.hour: "{{ medium_rate_limit_per_hour }}" @@ -6198,7 +6198,7 @@ kong_apis: - "{{ statsd_pulgin }}" - name: acl config.whitelist: - - 'addWorkOrder' + - 'dataCreate' - name: rate-limiting config.policy: local config.hour: "{{ medium_rate_limit_per_hour }}" @@ -6217,7 +6217,7 @@ kong_apis: - "{{ statsd_pulgin }}" - name: acl config.whitelist: - - 'updateWorkOrder' + - 'dataUpdate' - name: rate-limiting config.policy: local config.hour: "{{ medium_rate_limit_per_hour }}" @@ -6236,7 +6236,7 @@ kong_apis: - "{{ statsd_pulgin }}" - name: acl config.whitelist: - - 'getWorkOrders' + - 'dataAccess' - name: rate-limiting config.policy: local config.hour: "{{ medium_rate_limit_per_hour }}" @@ -6254,7 +6254,7 @@ kong_apis: - "{{ statsd_pulgin }}" - name: acl config.whitelist: - - 'getWorkOrderById' + - 'dataAccess' - name: rate-limiting config.policy: local config.hour: "{{ medium_rate_limit_per_hour }}" @@ -6273,7 +6273,7 @@ kong_apis: - "{{ statsd_pulgin }}" - name: acl config.whitelist: - - 'getWorkAllocationById' + - 'dataAccess' - name: rate-limiting config.policy: local config.hour: "{{ medium_rate_limit_per_hour }}" @@ -6291,7 +6291,7 @@ kong_apis: - "{{ statsd_pulgin }}" - name: acl config.whitelist: - - 'copyWorkOrder' + - 'dataCreate' - name: rate-limiting config.policy: local config.hour: "{{ medium_rate_limit_per_hour }}" @@ -6309,7 +6309,7 @@ kong_apis: - "{{ statsd_pulgin }}" - name: acl config.whitelist: - - 'getUserBasicDetails' + - 'dataAccess' - name: rate-limiting config.policy: local config.hour: "{{ medium_rate_limit_per_hour }}" @@ -6328,7 +6328,7 @@ kong_apis: - "{{ statsd_pulgin }}" - name: acl config.whitelist: - - 'watAutoComplete' + - 'dataAccess' - name: rate-limiting config.policy: local config.hour: "{{ medium_rate_limit_per_hour }}" From 26e9e2242d93162a7de12708297fa6f6fe30445c Mon Sep 17 00:00:00 2001 From: Amit Kumar Yadav <36166686+amit-kumaryadav@users.noreply.github.com> Date: Fri, 9 Jul 2021 15:09:19 +0530 Subject: [PATCH 19/65] Update main.yml --- ansible/roles/kong-api/defaults/main.yml | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/ansible/roles/kong-api/defaults/main.yml b/ansible/roles/kong-api/defaults/main.yml index afddd4f08..936b760ff 100644 --- a/ansible/roles/kong-api/defaults/main.yml +++ b/ansible/roles/kong-api/defaults/main.yml @@ -6335,3 +6335,21 @@ kong_apis: config.limit_by: credential - name: request-size-limiting config.allowed_payload_size: "{{ small_request_size_limit }}" + + - name: getWOPdf + uris: "/getWOPdf" + upstream_url: "{{ sb_cb_ext_service_url }}/getWOPdf" + 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: "{{ small_request_size_limit }}" From 2f5caf8972e1e9a6f336cc3608cc92ffa93ab3d9 Mon Sep 17 00:00:00 2001 From: Amit Kumar Yadav <36166686+amit-kumaryadav@users.noreply.github.com> Date: Fri, 9 Jul 2021 15:39:41 +0530 Subject: [PATCH 20/65] Update main.yml --- ansible/roles/kong-consumer/defaults/main.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/ansible/roles/kong-consumer/defaults/main.yml b/ansible/roles/kong-consumer/defaults/main.yml index 2ab952531..ddcee0dcf 100644 --- a/ansible/roles/kong-consumer/defaults/main.yml +++ b/ansible/roles/kong-consumer/defaults/main.yml @@ -85,6 +85,7 @@ kong_all_consumer_groups: - druidReportCreate - druidReportAdmin - dataCreate + - dataUpdate kong_consumers: - username: api-admin From 8d8496f57f798a396ee20662a001b97fbd99fc5e Mon Sep 17 00:00:00 2001 From: Amit Kumar Yadav <36166686+amit-kumaryadav@users.noreply.github.com> Date: Fri, 9 Jul 2021 15:56:30 +0530 Subject: [PATCH 21/65] Update main.yml --- ansible/roles/kong-consumer/defaults/main.yml | 1 - 1 file changed, 1 deletion(-) diff --git a/ansible/roles/kong-consumer/defaults/main.yml b/ansible/roles/kong-consumer/defaults/main.yml index ddcee0dcf..2ab952531 100644 --- a/ansible/roles/kong-consumer/defaults/main.yml +++ b/ansible/roles/kong-consumer/defaults/main.yml @@ -85,7 +85,6 @@ kong_all_consumer_groups: - druidReportCreate - druidReportAdmin - dataCreate - - dataUpdate kong_consumers: - username: api-admin From d1fceadc608bd84120f97b5aeafdea45ecabbf19 Mon Sep 17 00:00:00 2001 From: Amit Kumar Yadav <36166686+amit-kumaryadav@users.noreply.github.com> Date: Fri, 9 Jul 2021 15:57:52 +0530 Subject: [PATCH 22/65] Update main.yml --- ansible/roles/kong-api/defaults/main.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ansible/roles/kong-api/defaults/main.yml b/ansible/roles/kong-api/defaults/main.yml index 936b760ff..a7f6ff1ae 100644 --- a/ansible/roles/kong-api/defaults/main.yml +++ b/ansible/roles/kong-api/defaults/main.yml @@ -6179,7 +6179,7 @@ kong_apis: - "{{ statsd_pulgin }}" - name: acl config.whitelist: - - 'dataUpdate' + - 'dataCreate' - name: rate-limiting config.policy: local config.hour: "{{ medium_rate_limit_per_hour }}" @@ -6217,7 +6217,7 @@ kong_apis: - "{{ statsd_pulgin }}" - name: acl config.whitelist: - - 'dataUpdate' + - 'dataCreate' - name: rate-limiting config.policy: local config.hour: "{{ medium_rate_limit_per_hour }}" From 92fd664e30281849c3d06efe622a310a6cc8cfa8 Mon Sep 17 00:00:00 2001 From: pritha-tarento <42533384+pritha-tarento@users.noreply.github.com> Date: Wed, 14 Jul 2021 12:25:17 +0530 Subject: [PATCH 23/65] Update main.yml --- ansible/roles/kong-api/defaults/main.yml | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/ansible/roles/kong-api/defaults/main.yml b/ansible/roles/kong-api/defaults/main.yml index a7f6ff1ae..4dadfbbe7 100644 --- a/ansible/roles/kong-api/defaults/main.yml +++ b/ansible/roles/kong-api/defaults/main.yml @@ -4167,6 +4167,24 @@ kong_apis: config.limit_by: credential - name: request-size-limiting config.allowed_payload_size: "{{ medium_request_size_limit }}" + + - name: privateUpdateUser + uris: "{{ user_service_prefix }}/private/v1/update" + upstream_url: "{{ learning_service_url }}/private/user/v1/update" + strip_uri: true + plugins: + - name: jwt + - name: cors + - "{{ statsd_pulgin }}" + - name: acl + config.whitelist: + - 'privateUpdateUser' + - 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: updateUserloginTime uris: "{{ user_service_prefix }}/v1/update/logintime" From d17150ca8fd9f48c600e882c9df3983b5d8336c3 Mon Sep 17 00:00:00 2001 From: Amit Kumar Yadav <36166686+amit-kumaryadav@users.noreply.github.com> Date: Wed, 14 Jul 2021 13:29:58 +0530 Subject: [PATCH 24/65] Update main.yml --- ansible/roles/kong-api/defaults/main.yml | 112 +++++++++++++++++++++++ 1 file changed, 112 insertions(+) diff --git a/ansible/roles/kong-api/defaults/main.yml b/ansible/roles/kong-api/defaults/main.yml index 4dadfbbe7..e54ce7b09 100644 --- a/ansible/roles/kong-api/defaults/main.yml +++ b/ansible/roles/kong-api/defaults/main.yml @@ -80,6 +80,8 @@ question_prefix: /question questionset_prefix: /questionset event_prefix: /event notification_service_prefix: /notification +content_validation_service_prefix: /contentValidation/v1 +scoring_engine_service_prefix: /action/scoring # Service URLs knowledge_mw_service_url: "http://knowledge-mw-service:5000" @@ -101,6 +103,8 @@ taxonomy_service_url: "http://taxonomy-service:9000" assessment_service_url: "http://assessment-service:9000" notification_service_url: "http://notification-service:9000" sb_cb_ext_service_url: "http://sb-cb-ext-service:7001" +content_validation_service_url: "http://content-validation-service:6590" +scoring_engine_service_url: "http://scoring-engine-service:7014" premium_consumer_rate_limits: - api: createContent @@ -6371,3 +6375,111 @@ kong_apis: config.limit_by: credential - name: request-size-limiting config.allowed_payload_size: "{{ small_request_size_limit }}" + + - name: startPdfProfanity + uris: "{{ content_validation_service_prefix }}/startPdfProfanity" + upstream_url: "{{ content_validation_service_url }}/contentValidation/v1/startPdfProfanity" + strip_uri: true + plugins: + - name: jwt + - name: cors + - "{{ statsd_pulgin }}" + - name: acl + config.whitelist: + - 'dataCreate' + - 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: getPdfProfanity + uris: "{{ content_validation_service_prefix }}/getPdfProfanity" + upstream_url: "{{ content_validation_service_url }}/contentValidation/v1/getPdfProfanity" + 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: "{{ small_request_size_limit }}" + + - name: getPdfProfanityForContent + uris: "{{ content_validation_service_prefix }}/getPdfProfanityForContent" + upstream_url: "{{ content_validation_service_url }}/contentValidation/v1/getPdfProfanityForContent" + 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: "{{ small_request_size_limit }}" + + - name: calculateScore + uris: "{{ scoring_engine_service_prefix }}/add" + upstream_url: "{{ scoring_engine_service_url }}/action/scoring/add" + strip_uri: true + plugins: + - name: jwt + - name: cors + - "{{ statsd_pulgin }}" + - name: acl + config.whitelist: + - 'dataCreate' + - 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: fetchScore + uris: "{{ scoring_engine_service_prefix }}/fetch" + upstream_url: "{{ scoring_engine_service_url }}/action/scoring/fetch" + 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: "{{ small_request_size_limit }}" + + - name: getScoringTemplate + uris: "{{ scoring_engine_service_prefix }}/getTemplate" + upstream_url: "{{ scoring_engine_service_url }}/action/scoring/getTemplate" + 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: "{{ small_request_size_limit }}" From a06a001e432e2150cc97a053df4bf3d96909cad4 Mon Sep 17 00:00:00 2001 From: Amit Kumar Yadav <36166686+amit-kumaryadav@users.noreply.github.com> Date: Wed, 14 Jul 2021 14:00:32 +0530 Subject: [PATCH 25/65] Update main.yml --- 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 e54ce7b09..a9df40a1d 100644 --- a/ansible/roles/kong-api/defaults/main.yml +++ b/ansible/roles/kong-api/defaults/main.yml @@ -4172,7 +4172,7 @@ kong_apis: - name: request-size-limiting config.allowed_payload_size: "{{ medium_request_size_limit }}" - - name: privateUpdateUser + - name: privateUpdateUser uris: "{{ user_service_prefix }}/private/v1/update" upstream_url: "{{ learning_service_url }}/private/user/v1/update" strip_uri: true From 1b1a2b8b6fcb359130961c94652f662690b18080 Mon Sep 17 00:00:00 2001 From: Amit Kumar Yadav <36166686+amit-kumaryadav@users.noreply.github.com> Date: Wed, 14 Jul 2021 15:11:31 +0530 Subject: [PATCH 26/65] Update main.yml --- ansible/roles/kong-api/defaults/main.yml | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/ansible/roles/kong-api/defaults/main.yml b/ansible/roles/kong-api/defaults/main.yml index a9df40a1d..fac45ea4b 100644 --- a/ansible/roles/kong-api/defaults/main.yml +++ b/ansible/roles/kong-api/defaults/main.yml @@ -80,8 +80,8 @@ question_prefix: /question questionset_prefix: /questionset event_prefix: /event notification_service_prefix: /notification -content_validation_service_prefix: /contentValidation/v1 -scoring_engine_service_prefix: /action/scoring +content_validation_service_prefix: /contentValidation +scoring_engine_service_prefix: /scoring # Service URLs knowledge_mw_service_url: "http://knowledge-mw-service:5000" @@ -6377,8 +6377,8 @@ kong_apis: config.allowed_payload_size: "{{ small_request_size_limit }}" - name: startPdfProfanity - uris: "{{ content_validation_service_prefix }}/startPdfProfanity" - upstream_url: "{{ content_validation_service_url }}/contentValidation/v1/startPdfProfanity" + uris: "{{ content_validation_service_prefix }}/v1/startPdfProfanity" + upstream_url: "{{ content_validation_service_url }}/v1/startPdfProfanity" strip_uri: true plugins: - name: jwt @@ -6395,8 +6395,8 @@ kong_apis: config.allowed_payload_size: "{{ small_request_size_limit }}" - name: getPdfProfanity - uris: "{{ content_validation_service_prefix }}/getPdfProfanity" - upstream_url: "{{ content_validation_service_url }}/contentValidation/v1/getPdfProfanity" + uris: "{{ content_validation_service_prefix }}/v1/getPdfProfanity" + upstream_url: "{{ content_validation_service_url }}/v1/getPdfProfanity" strip_uri: true plugins: - name: jwt @@ -6413,8 +6413,8 @@ kong_apis: config.allowed_payload_size: "{{ small_request_size_limit }}" - name: getPdfProfanityForContent - uris: "{{ content_validation_service_prefix }}/getPdfProfanityForContent" - upstream_url: "{{ content_validation_service_url }}/contentValidation/v1/getPdfProfanityForContent" + uris: "{{ content_validation_service_prefix }}/v1/getPdfProfanityForContent" + upstream_url: "{{ content_validation_service_url }}/v1/read/contentPdfProfanity" strip_uri: true plugins: - name: jwt @@ -6432,7 +6432,7 @@ kong_apis: - name: calculateScore uris: "{{ scoring_engine_service_prefix }}/add" - upstream_url: "{{ scoring_engine_service_url }}/action/scoring/add" + upstream_url: "{{ scoring_engine_service_url }}/v1/add" strip_uri: true plugins: - name: jwt @@ -6450,7 +6450,7 @@ kong_apis: - name: fetchScore uris: "{{ scoring_engine_service_prefix }}/fetch" - upstream_url: "{{ scoring_engine_service_url }}/action/scoring/fetch" + upstream_url: "{{ scoring_engine_service_url }}/v1/fetch" strip_uri: true plugins: - name: jwt @@ -6468,7 +6468,7 @@ kong_apis: - name: getScoringTemplate uris: "{{ scoring_engine_service_prefix }}/getTemplate" - upstream_url: "{{ scoring_engine_service_url }}/action/scoring/getTemplate" + upstream_url: "{{ scoring_engine_service_url }}/v1/getTemplate" strip_uri: true plugins: - name: jwt From 11545bcf27edcd8b3f1d1fc7b9471bd8401528ae Mon Sep 17 00:00:00 2001 From: Amit Kumar Yadav <36166686+amit-kumaryadav@users.noreply.github.com> Date: Wed, 14 Jul 2021 15:14:37 +0530 Subject: [PATCH 27/65] Update main.yml --- ansible/roles/kong-api/defaults/main.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/ansible/roles/kong-api/defaults/main.yml b/ansible/roles/kong-api/defaults/main.yml index fac45ea4b..e082cbb37 100644 --- a/ansible/roles/kong-api/defaults/main.yml +++ b/ansible/roles/kong-api/defaults/main.yml @@ -6431,7 +6431,7 @@ kong_apis: config.allowed_payload_size: "{{ small_request_size_limit }}" - name: calculateScore - uris: "{{ scoring_engine_service_prefix }}/add" + uris: "{{ scoring_engine_service_prefix }}/v1/add" upstream_url: "{{ scoring_engine_service_url }}/v1/add" strip_uri: true plugins: @@ -6449,7 +6449,7 @@ kong_apis: config.allowed_payload_size: "{{ medium_request_size_limit }}" - name: fetchScore - uris: "{{ scoring_engine_service_prefix }}/fetch" + uris: "{{ scoring_engine_service_prefix }}/v1/fetch" upstream_url: "{{ scoring_engine_service_url }}/v1/fetch" strip_uri: true plugins: @@ -6467,7 +6467,7 @@ kong_apis: config.allowed_payload_size: "{{ small_request_size_limit }}" - name: getScoringTemplate - uris: "{{ scoring_engine_service_prefix }}/getTemplate" + uris: "{{ scoring_engine_service_prefix }}/v1/getTemplate" upstream_url: "{{ scoring_engine_service_url }}/v1/getTemplate" strip_uri: true plugins: From 144e4da8cf6f9382b6763cdb4742d3291841dc2d Mon Sep 17 00:00:00 2001 From: Amit Kumar Yadav <36166686+amit-kumaryadav@users.noreply.github.com> Date: Thu, 15 Jul 2021 12:16:47 +0530 Subject: [PATCH 28/65] Update main.yml --- ansible/roles/kong-api/defaults/main.yml | 131 +++++++++++++++++++++++ 1 file changed, 131 insertions(+) diff --git a/ansible/roles/kong-api/defaults/main.yml b/ansible/roles/kong-api/defaults/main.yml index e082cbb37..56132eb1c 100644 --- a/ansible/roles/kong-api/defaults/main.yml +++ b/ansible/roles/kong-api/defaults/main.yml @@ -82,6 +82,7 @@ event_prefix: /event notification_service_prefix: /notification content_validation_service_prefix: /contentValidation scoring_engine_service_prefix: /scoring +hub_graph_service_prefix: /connections # Service URLs knowledge_mw_service_url: "http://knowledge-mw-service:5000" @@ -105,6 +106,7 @@ notification_service_url: "http://notification-service:9000" sb_cb_ext_service_url: "http://sb-cb-ext-service:7001" content_validation_service_url: "http://content-validation-service:6590" scoring_engine_service_url: "http://scoring-engine-service:7014" +hub_graph_service_url: "http://hub-graph-service:4013" premium_consumer_rate_limits: - api: createContent @@ -6483,3 +6485,132 @@ kong_apis: config.limit_by: credential - name: request-size-limiting config.allowed_payload_size: "{{ small_request_size_limit }}" + + - name: findRecommendedConnection + uris: "{{ hub_graph_service_prefix }}/profile/find/recommended" + upstream_url: "{{ hub_graph_service_url }}/connections/profile/find/recommended" + 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: "{{ small_request_size_limit }}" + + - name: findSuggestedConnection + uris: "{{ hub_graph_service_prefix }}/profile/find/suggests" + upstream_url: "{{ hub_graph_service_url }}/connections/profile/find/suggests" + 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: "{{ small_request_size_limit }}" + + - name: fetchRequestedConnection + uris: "{{ hub_graph_service_prefix }}/profile/fetch/requested" + upstream_url: "{{ hub_graph_service_url }}/connections/profile/fetch/requested" + 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: "{{ small_request_size_limit }}" + + + - name: fetchRequestedReceivedConnection + uris: "{{ hub_graph_service_prefix }}/profile/fetch/requests/received" + upstream_url: "{{ hub_graph_service_url }}/connections/profile/fetch/requests/received" + 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: "{{ small_request_size_limit }}" + + - name: fetchEstablishedConnection + uris: "{{ hub_graph_service_prefix }}/profile/fetch/established" + upstream_url: "{{ hub_graph_service_url }}/connections/profile/fetch/established" + 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: "{{ small_request_size_limit }}" + + + - name: addConnection + uris: "{{ hub_graph_service_prefix }}/add" + upstream_url: "{{ hub_graph_service_url }}/connections/add" + 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: "{{ small_request_size_limit }}" + + + - name: updateConnection + uris: "{{ hub_graph_service_prefix }}/update" + upstream_url: "{{ hub_graph_service_url }}/connections/update" + 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: "{{ small_request_size_limit }}" From d5b083b57d7cc45835b5c10a6953a992136d19b7 Mon Sep 17 00:00:00 2001 From: Amit Kumar Yadav <36166686+amit-kumaryadav@users.noreply.github.com> Date: Thu, 15 Jul 2021 12:44:08 +0530 Subject: [PATCH 29/65] Update main.yml --- ansible/roles/kong-api/defaults/main.yml | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/ansible/roles/kong-api/defaults/main.yml b/ansible/roles/kong-api/defaults/main.yml index 56132eb1c..c01be99b0 100644 --- a/ansible/roles/kong-api/defaults/main.yml +++ b/ansible/roles/kong-api/defaults/main.yml @@ -6614,3 +6614,21 @@ kong_apis: config.limit_by: credential - name: request-size-limiting config.allowed_payload_size: "{{ small_request_size_limit }}" + + - name: userAutoComplete + uris: "/v1/user/autocomplete" + upstream_url: "{{ hub_graph_service_url }}/v1/user/autocomplete" + 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: "{{ small_request_size_limit }}" From c60267233a22d27479e382475b7f57ff1ebe3023 Mon Sep 17 00:00:00 2001 From: Amit Kumar Yadav <36166686+amit-kumaryadav@users.noreply.github.com> Date: Thu, 15 Jul 2021 17:09:33 +0530 Subject: [PATCH 30/65] Update main.yml --- ansible/roles/kong-api/defaults/main.yml | 138 ++++++++++++++++++++++- 1 file changed, 136 insertions(+), 2 deletions(-) diff --git a/ansible/roles/kong-api/defaults/main.yml b/ansible/roles/kong-api/defaults/main.yml index c01be99b0..fc8801699 100644 --- a/ansible/roles/kong-api/defaults/main.yml +++ b/ansible/roles/kong-api/defaults/main.yml @@ -83,6 +83,7 @@ notification_service_prefix: /notification content_validation_service_prefix: /contentValidation scoring_engine_service_prefix: /scoring hub_graph_service_prefix: /connections +workflow_handler_service_prefix: /workflow # Service URLs knowledge_mw_service_url: "http://knowledge-mw-service:5000" @@ -107,6 +108,8 @@ sb_cb_ext_service_url: "http://sb-cb-ext-service:7001" content_validation_service_url: "http://content-validation-service:6590" scoring_engine_service_url: "http://scoring-engine-service:7014" hub_graph_service_url: "http://hub-graph-service:4013" +workflow_handler_service_url: "http://workflow-handler-service:5099" + premium_consumer_rate_limits: - api: createContent @@ -6588,7 +6591,7 @@ kong_apis: - "{{ statsd_pulgin }}" - name: acl config.whitelist: - - 'dataAccess' + - 'dataCreate' - name: rate-limiting config.policy: local config.hour: "{{ medium_rate_limit_per_hour }}" @@ -6607,7 +6610,7 @@ kong_apis: - "{{ statsd_pulgin }}" - name: acl config.whitelist: - - 'dataAccess' + - 'dataCreate' - name: rate-limiting config.policy: local config.hour: "{{ medium_rate_limit_per_hour }}" @@ -6632,3 +6635,134 @@ kong_apis: config.limit_by: credential - name: request-size-limiting config.allowed_payload_size: "{{ small_request_size_limit }}" + + - name: workflowTransition + uris: "{{ workflow_handler_service_prefix }}/transition" + upstream_url: "{{ workflow_handler_service_url }}/v1/workflow/transition" + strip_uri: true + plugins: + - name: jwt + - name: cors + - "{{ statsd_pulgin }}" + - name: acl + config.whitelist: + - 'dataCreate' + - 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: workflowApplicationsSearch + uris: "{{ workflow_handler_service_prefix }}/applications/search" + upstream_url: "{{ workflow_handler_service_url }}/v1/workflow/applications/search" + 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: "{{ small_request_size_limit }}" + + + - name: workflowNextAction + uris: "{{ workflow_handler_service_prefix }}/nextAction" + upstream_url: "{{ workflow_handler_service_url }}/v1/workflow/nextAction" + 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: "{{ small_request_size_limit }}" + + + - name: workflowProcess + uris: "{{ workflow_handler_service_prefix }}/workflowProcess" + upstream_url: "{{ workflow_handler_service_url }}/v1/workflow/workflowProcess" + 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: "{{ small_request_size_limit }}" + + - name: workflowUpdateUserProfileWf + uris: "{{ workflow_handler_service_prefix }}/updateUserProfileWF" + upstream_url: "{{ workflow_handler_service_url }}/v1/workflow/updateUserProfileWF" + strip_uri: true + plugins: + - name: jwt + - name: cors + - "{{ statsd_pulgin }}" + - name: acl + config.whitelist: + - 'dataCreate' + - 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: workflowGetUserWF + uris: "{{ workflow_handler_service_prefix }}/getUserWF" + upstream_url: "{{ workflow_handler_service_url }}/v1/workflow/getUserWF" + 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: "{{ small_request_size_limit }}" + + + - name: workflowGetUserWFApplicationFields + uris: "{{ workflow_handler_service_prefix }}/getUserWFApplicationFields" + upstream_url: "{{ workflow_handler_service_url }}/v1/workflow/getUserWFApplicationFields" + 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: "{{ small_request_size_limit }}" From 60bb09c3a12474e162638ff6dd3fe388358ad810 Mon Sep 17 00:00:00 2001 From: pritha-tarento <42533384+pritha-tarento@users.noreply.github.com> Date: Thu, 15 Jul 2021 22:23:51 +0530 Subject: [PATCH 31/65] Update main.yml --- ansible/roles/kong-api/defaults/main.yml | 18 ------------------ 1 file changed, 18 deletions(-) diff --git a/ansible/roles/kong-api/defaults/main.yml b/ansible/roles/kong-api/defaults/main.yml index e082cbb37..9aed42b66 100644 --- a/ansible/roles/kong-api/defaults/main.yml +++ b/ansible/roles/kong-api/defaults/main.yml @@ -4171,24 +4171,6 @@ kong_apis: config.limit_by: credential - name: request-size-limiting config.allowed_payload_size: "{{ medium_request_size_limit }}" - - - name: privateUpdateUser - uris: "{{ user_service_prefix }}/private/v1/update" - upstream_url: "{{ learning_service_url }}/private/user/v1/update" - strip_uri: true - plugins: - - name: jwt - - name: cors - - "{{ statsd_pulgin }}" - - name: acl - config.whitelist: - - 'privateUpdateUser' - - 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: updateUserloginTime uris: "{{ user_service_prefix }}/v1/update/logintime" From d88d73e21ea3350fd3952fbb240517d594654a0d Mon Sep 17 00:00:00 2001 From: Amit Kumar Yadav <36166686+amit-kumaryadav@users.noreply.github.com> Date: Wed, 21 Jul 2021 17:19:01 +0530 Subject: [PATCH 32/65] Update main.yml --- ansible/roles/kong-api/defaults/main.yml | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/ansible/roles/kong-api/defaults/main.yml b/ansible/roles/kong-api/defaults/main.yml index 19e1f59cd..57fd10704 100644 --- a/ansible/roles/kong-api/defaults/main.yml +++ b/ansible/roles/kong-api/defaults/main.yml @@ -6748,3 +6748,21 @@ kong_apis: config.limit_by: credential - name: request-size-limiting config.allowed_payload_size: "{{ small_request_size_limit }}" + + - name: ContentUpdateReviewStatus + uris: "{{ content_prefix }}/v1/updateReviewStatus" + upstream_url: "{{ content_service_url }}/content/v3/update" + strip_uri: true + plugins: + - name: jwt + - name: cors + - "{{ statsd_pulgin }}" + - name: acl + config.whitelist: + - 'contentSuperAdmin' + - 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 10ecbff7c5ba14a17df8942e150c504827308bdd Mon Sep 17 00:00:00 2001 From: Amit Kumar Yadav <36166686+amit-kumaryadav@users.noreply.github.com> Date: Wed, 21 Jul 2021 20:05:11 +0530 Subject: [PATCH 33/65] Update main.yml --- 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 57fd10704..2d3040839 100644 --- a/ansible/roles/kong-api/defaults/main.yml +++ b/ansible/roles/kong-api/defaults/main.yml @@ -6750,7 +6750,7 @@ kong_apis: config.allowed_payload_size: "{{ small_request_size_limit }}" - name: ContentUpdateReviewStatus - uris: "{{ content_prefix }}/v1/updateReviewStatus" + uris: "/action/content/v3/updateReviewStatus" upstream_url: "{{ content_service_url }}/content/v3/update" strip_uri: true plugins: From 5a0cb565b756412d4abc314339d23a983ab8aab7 Mon Sep 17 00:00:00 2001 From: Amit Kumar Yadav <36166686+amit-kumaryadav@users.noreply.github.com> Date: Wed, 21 Jul 2021 20:15:06 +0530 Subject: [PATCH 34/65] Update main.yml --- 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 2d3040839..8b8056514 100644 --- a/ansible/roles/kong-api/defaults/main.yml +++ b/ansible/roles/kong-api/defaults/main.yml @@ -6759,7 +6759,7 @@ kong_apis: - "{{ statsd_pulgin }}" - name: acl config.whitelist: - - 'contentSuperAdmin' + - 'contentUpdate' - name: rate-limiting config.policy: local config.hour: "{{ medium_rate_limit_per_hour }}" From b6411420e615e1aa19adfb7169be61334bf690ad Mon Sep 17 00:00:00 2001 From: Amit Kumar Yadav <36166686+amit-kumaryadav@users.noreply.github.com> Date: Thu, 22 Jul 2021 17:26:31 +0530 Subject: [PATCH 35/65] Update main.yml --- ansible/roles/kong-api/defaults/main.yml | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/ansible/roles/kong-api/defaults/main.yml b/ansible/roles/kong-api/defaults/main.yml index 8b8056514..b530c46a8 100644 --- a/ansible/roles/kong-api/defaults/main.yml +++ b/ansible/roles/kong-api/defaults/main.yml @@ -109,6 +109,7 @@ content_validation_service_url: "http://content-validation-service:6590" scoring_engine_service_url: "http://scoring-engine-service:7014" hub_graph_service_url: "http://hub-graph-service:4013" workflow_handler_service_url: "http://workflow-handler-service:5099" +discussions_mw_url: "http://discussionsmw-service:3002" premium_consumer_rate_limits: @@ -6766,3 +6767,26 @@ kong_apis: config.limit_by: credential - name: request-size-limiting config.allowed_payload_size: "{{ medium_request_size_limit }}" + + - name: discussionHubAPIs + uris: "/discussion" + upstream_url: "{{ discussions_mw_url }}/discussion" + 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 }}" + - name: request-transformer + config: + rename: + headers: + - nodebb_authorization_token:Authorization From 19416c5b9e28fdea2fb1f22f5d1356a1c7dd5235 Mon Sep 17 00:00:00 2001 From: Karthikeyan Rajendran <70887864+karthik-tarento@users.noreply.github.com> Date: Fri, 23 Jul 2021 14:02:39 +0530 Subject: [PATCH 36/65] Updated userAutoComplete API path. --- ansible/roles/kong-api/defaults/main.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ansible/roles/kong-api/defaults/main.yml b/ansible/roles/kong-api/defaults/main.yml index b530c46a8..63aa64955 100644 --- a/ansible/roles/kong-api/defaults/main.yml +++ b/ansible/roles/kong-api/defaults/main.yml @@ -6602,8 +6602,8 @@ kong_apis: config.allowed_payload_size: "{{ small_request_size_limit }}" - name: userAutoComplete - uris: "/v1/user/autocomplete" - upstream_url: "{{ hub_graph_service_url }}/v1/user/autocomplete" + uris: "{{ user_service_prefix }}/v1/autocomplete" + upstream_url: "{{ learning_service_url }}/v1/user/autocomplete" strip_uri: true plugins: - name: jwt From d5002fd9a843fdc932dd8098d607e1c519b4e191 Mon Sep 17 00:00:00 2001 From: Karthikeyan Rajendran <70887864+karthik-tarento@users.noreply.github.com> Date: Fri, 23 Jul 2021 16:07:57 +0530 Subject: [PATCH 37/65] Added autocomplete for user using Hub Service --- ansible/roles/kong-api/defaults/main.yml | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/ansible/roles/kong-api/defaults/main.yml b/ansible/roles/kong-api/defaults/main.yml index 63aa64955..45ec6866e 100644 --- a/ansible/roles/kong-api/defaults/main.yml +++ b/ansible/roles/kong-api/defaults/main.yml @@ -6619,6 +6619,24 @@ kong_apis: - name: request-size-limiting config.allowed_payload_size: "{{ small_request_size_limit }}" + - name: userNetworkAutoComplete + uris: "/v1/user/autocomplete" + upstream_url: "{{ hub_graph_service_url }}/v1/user/autocomplete" + 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: "{{ small_request_size_limit }}" + - name: workflowTransition uris: "{{ workflow_handler_service_prefix }}/transition" upstream_url: "{{ workflow_handler_service_url }}/v1/workflow/transition" From e4b8cd2bc4d66962064c3b10b821a9ed89095064 Mon Sep 17 00:00:00 2001 From: Karthikeyan Rajendran <70887864+karthik-tarento@users.noreply.github.com> Date: Fri, 23 Jul 2021 16:44:59 +0530 Subject: [PATCH 38/65] Using different ACL for user data update --- 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 45ec6866e..2b5d237d3 100644 --- a/ansible/roles/kong-api/defaults/main.yml +++ b/ansible/roles/kong-api/defaults/main.yml @@ -2579,7 +2579,7 @@ kong_apis: - "{{ statsd_pulgin }}" - name: acl config.whitelist: - - 'userSuperAdmin' + - 'dataCreate' - name: rate-limiting config.policy: local config.hour: "{{ medium_rate_limit_per_hour }}" From ec7f93ee13612c373830bfb3b0afbdeb71bf9188 Mon Sep 17 00:00:00 2001 From: Karthikeyan Rajendran <70887864+karthik-tarento@users.noreply.github.com> Date: Fri, 23 Jul 2021 17:34:46 +0530 Subject: [PATCH 39/65] Added API to send notification --- ansible/roles/kong-api/defaults/main.yml | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/ansible/roles/kong-api/defaults/main.yml b/ansible/roles/kong-api/defaults/main.yml index 2b5d237d3..d460c58e0 100644 --- a/ansible/roles/kong-api/defaults/main.yml +++ b/ansible/roles/kong-api/defaults/main.yml @@ -6808,3 +6808,21 @@ kong_apis: rename: headers: - nodebb_authorization_token:Authorization + +- name: privateSendEmailNotification + uris: "{{ learner_private_route_prefix }}/user/v1/notification/email" + upstream_url: "{{ learning_service_url }}/private/user/v1/notification/email" + strip_uri: true + plugins: + - name: jwt + - name: cors + - "{{ statsd_pulgin }}" + - name: acl + config.whitelist: + - 'appUpdate' + - 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 80d4a44f030d29f2216ce405f4dcb1562940c28d Mon Sep 17 00:00:00 2001 From: Karthikeyan Rajendran <70887864+karthik-tarento@users.noreply.github.com> Date: Fri, 23 Jul 2021 17:38:16 +0530 Subject: [PATCH 40/65] Fixing alignment issues --- ansible/roles/kong-api/defaults/main.yml | 28 ++++++++++++------------ 1 file changed, 14 insertions(+), 14 deletions(-) diff --git a/ansible/roles/kong-api/defaults/main.yml b/ansible/roles/kong-api/defaults/main.yml index d460c58e0..e418876c4 100644 --- a/ansible/roles/kong-api/defaults/main.yml +++ b/ansible/roles/kong-api/defaults/main.yml @@ -6786,9 +6786,9 @@ kong_apis: - name: request-size-limiting config.allowed_payload_size: "{{ medium_request_size_limit }}" - - name: discussionHubAPIs - uris: "/discussion" - upstream_url: "{{ discussions_mw_url }}/discussion" + - name: privateSendEmailNotification + uris: "{{ learner_private_route_prefix }}/user/v1/notification/email" + upstream_url: "{{ learning_service_url }}/private/user/v1/notification/email" strip_uri: true plugins: - name: jwt @@ -6796,22 +6796,17 @@ kong_apis: - "{{ statsd_pulgin }}" - name: acl config.whitelist: - - 'dataAccess' + - 'appUpdate' - 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: request-transformer - config: - rename: - headers: - - nodebb_authorization_token:Authorization - -- name: privateSendEmailNotification - uris: "{{ learner_private_route_prefix }}/user/v1/notification/email" - upstream_url: "{{ learning_service_url }}/private/user/v1/notification/email" + + - name: discussionHubAPIs + uris: "/discussion" + upstream_url: "{{ discussions_mw_url }}/discussion" strip_uri: true plugins: - name: jwt @@ -6819,10 +6814,15 @@ kong_apis: - "{{ statsd_pulgin }}" - name: acl config.whitelist: - - 'appUpdate' + - '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 }}" + - name: request-transformer + config: + rename: + headers: + - nodebb_authorization_token:Authorization From 20f142bf4e65316b314cc1938b811b87c1de49ca Mon Sep 17 00:00:00 2001 From: Amit Kumar Yadav <36166686+amit-kumaryadav@users.noreply.github.com> Date: Tue, 27 Jul 2021 17:52:47 +0530 Subject: [PATCH 41/65] Update main.yml --- ansible/roles/kong-api/defaults/main.yml | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/ansible/roles/kong-api/defaults/main.yml b/ansible/roles/kong-api/defaults/main.yml index e418876c4..76e7b58c3 100644 --- a/ansible/roles/kong-api/defaults/main.yml +++ b/ansible/roles/kong-api/defaults/main.yml @@ -6804,6 +6804,24 @@ kong_apis: - name: request-size-limiting config.allowed_payload_size: "{{ medium_request_size_limit }}" + - name: ContenthierarchyUpdate + uris: "/action/content/v3/hierarchyUpdate" + upstream_url: "{{ content_service_url }}/content/v3/hierarchy/update" + 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: discussionHubAPIs uris: "/discussion" upstream_url: "{{ discussions_mw_url }}/discussion" From 4b5ec6a205b17d6677e8ed1f9f2f0c741dc8e3a5 Mon Sep 17 00:00:00 2001 From: Haritest Date: Wed, 4 Aug 2021 13:31:32 +0530 Subject: [PATCH 42/65] Update all.yml --- ansible/inventory/env/group_vars/all.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ansible/inventory/env/group_vars/all.yml b/ansible/inventory/env/group_vars/all.yml index 445a29e68..0fba91f06 100644 --- a/ansible/inventory/env/group_vars/all.yml +++ b/ansible/inventory/env/group_vars/all.yml @@ -337,7 +337,7 @@ learning_analytics_service_url: 'http://{{learningservice_ip}}:9000' #encryption Service sunbird_allowed_login: -sunbird_course_batch_notification_enabled: 'true' +sunbird_course_batch_notification_enabled: 'False' sunbird_device_register_api: "{{proto}}://{{api_proxy_name}}/v3/device/register/" sunbird_course_batch_notification_signature: sunbird From a452c2418663b4baecf62b37ce8db402194c34cd Mon Sep 17 00:00:00 2001 From: Karthikeyan Rajendran <70887864+karthik-tarento@users.noreply.github.com> Date: Wed, 4 Aug 2021 16:17:16 +0530 Subject: [PATCH 43/65] Added private API for user migrate --- ansible/roles/kong-api/defaults/main.yml | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/ansible/roles/kong-api/defaults/main.yml b/ansible/roles/kong-api/defaults/main.yml index 76e7b58c3..b83f5a305 100644 --- a/ansible/roles/kong-api/defaults/main.yml +++ b/ansible/roles/kong-api/defaults/main.yml @@ -6822,6 +6822,24 @@ kong_apis: - name: request-size-limiting config.allowed_payload_size: "{{ medium_request_size_limit }}" + - name: privateUserMigrate + uris: "{{ user_service_prefix }}/private/v1/migrate" + upstream_url: "{{ learning_service_url }}/private/user/v1/migrate" + strip_uri: true + plugins: + - name: jwt + - name: cors + - "{{ statsd_pulgin }}" + - name: acl + config.whitelist: + - 'userUpdate' + - 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: discussionHubAPIs uris: "/discussion" upstream_url: "{{ discussions_mw_url }}/discussion" From d72e721374cbc590847a8687028cc2113bed0eea Mon Sep 17 00:00:00 2001 From: Karthikeyan Rajendran <70887864+karthik-tarento@users.noreply.github.com> Date: Wed, 4 Aug 2021 16:19:35 +0530 Subject: [PATCH 44/65] Fixed alignment issue for migrate user API --- 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 b83f5a305..a075f9d62 100644 --- a/ansible/roles/kong-api/defaults/main.yml +++ b/ansible/roles/kong-api/defaults/main.yml @@ -6822,7 +6822,7 @@ kong_apis: - name: request-size-limiting config.allowed_payload_size: "{{ medium_request_size_limit }}" - - name: privateUserMigrate + - name: privateUserMigrate uris: "{{ user_service_prefix }}/private/v1/migrate" upstream_url: "{{ learning_service_url }}/private/user/v1/migrate" strip_uri: true From cf4e70ea1b74d24b4c56ec410f46faf2b2f18a6b Mon Sep 17 00:00:00 2001 From: Amit Kumar Yadav <36166686+amit-kumaryadav@users.noreply.github.com> Date: Wed, 4 Aug 2021 18:12:15 +0530 Subject: [PATCH 45/65] Update main.yml --- 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 a075f9d62..54fdd28b6 100644 --- a/ansible/roles/kong-api/defaults/main.yml +++ b/ansible/roles/kong-api/defaults/main.yml @@ -2525,7 +2525,7 @@ kong_apis: - "{{ statsd_pulgin }}" - name: acl config.whitelist: - - 'contentSuperAdmin' + - 'contentAccess' - name: rate-limiting config.policy: local config.hour: "{{ medium_rate_limit_per_hour }}" From 6f66ba5262876a91f97bf4b52c548add384bb3a1 Mon Sep 17 00:00:00 2001 From: Amit Kumar Yadav <36166686+amit-kumaryadav@users.noreply.github.com> Date: Fri, 13 Aug 2021 11:37:04 +0530 Subject: [PATCH 46/65] Update main.yml --- ansible/roles/kong-api/defaults/main.yml | 43 ++++++++++++++++++++++++ 1 file changed, 43 insertions(+) diff --git a/ansible/roles/kong-api/defaults/main.yml b/ansible/roles/kong-api/defaults/main.yml index 54fdd28b6..7a3163dd4 100644 --- a/ansible/roles/kong-api/defaults/main.yml +++ b/ansible/roles/kong-api/defaults/main.yml @@ -110,6 +110,7 @@ scoring_engine_service_url: "http://scoring-engine-service:7014" hub_graph_service_url: "http://hub-graph-service:4013" workflow_handler_service_url: "http://workflow-handler-service:5099" discussions_mw_url: "http://discussionsmw-service:3002" +nodebb_url: "http://nodebb-service:4567/discussions" premium_consumer_rate_limits: @@ -6862,3 +6863,45 @@ kong_apis: rename: headers: - nodebb_authorization_token:Authorization + + - name: nodebbauthAPIs + uris: "/nodebb/auth/api" + upstream_url: "{{ nodebb_url }}/api" + 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 }}" + - name: request-transformer + config: + rename: + headers: + - nodebb_authorization_token:authorization + + - name: nodebbAPIs + uris: "/nodebb/api" + upstream_url: "{{ nodebb_url }}/api" + 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 }}" + From f2c61a2301b60b68ba69b9ef8c32affdc822387b Mon Sep 17 00:00:00 2001 From: Haritest Date: Tue, 17 Aug 2021 13:45:39 +0530 Subject: [PATCH 47/65] Update main.yml --- 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 7a3163dd4..ecb2b9034 100644 --- a/ansible/roles/kong-api/defaults/main.yml +++ b/ansible/roles/kong-api/defaults/main.yml @@ -31,6 +31,7 @@ premium_consumer_large_rate_limit_per_hour: 100000 small_request_size_limit: 1 medium_request_size_limit: 10 large_request_size_limit: 100 +x_large_request_size_limit: 400 # External URL's freshDesk_url: "http://dummy.freshDesk.url" From 333c5b1eb0845c7ea7386009da275567e74ba83f Mon Sep 17 00:00:00 2001 From: Haritest Date: Tue, 17 Aug 2021 13:49:42 +0530 Subject: [PATCH 48/65] Update main.yml --- 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 ecb2b9034..4b931d4e3 100644 --- a/ansible/roles/kong-api/defaults/main.yml +++ b/ansible/roles/kong-api/defaults/main.yml @@ -2425,7 +2425,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 }}" + config.allowed_payload_size: "{{ x_large_request_size_limit }}" - name: PrivateContentRetireAPI uris: "{{ private_content_prefix }}/v3/retire" From 127575bb5ee78b41f87c19f0606f23b116d80a34 Mon Sep 17 00:00:00 2001 From: Karthikeyan Rajendran <70887864+karthik-tarento@users.noreply.github.com> Date: Tue, 17 Aug 2021 16:43:20 +0530 Subject: [PATCH 49/65] Updated the file size in content upload API --- 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 4b931d4e3..57487efac 100644 --- a/ansible/roles/kong-api/defaults/main.yml +++ b/ansible/roles/kong-api/defaults/main.yml @@ -2461,7 +2461,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 }}" + config.allowed_payload_size: "{{ x_large_request_size_limit }}" - name: PrivateContentReviewAPI uris: "{{ private_content_prefix }}/v3/review" From ebfb718631ad436fd85f5405bac15db88cfabcac Mon Sep 17 00:00:00 2001 From: Karthikeyan Rajendran <70887864+karthik-tarento@users.noreply.github.com> Date: Sat, 21 Aug 2021 22:47:42 +0530 Subject: [PATCH 50/65] Added new roles for Kong APIs --- ansible/roles/kong-consumer/defaults/main.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/ansible/roles/kong-consumer/defaults/main.yml b/ansible/roles/kong-consumer/defaults/main.yml index 2ab952531..42b54cd90 100644 --- a/ansible/roles/kong-consumer/defaults/main.yml +++ b/ansible/roles/kong-consumer/defaults/main.yml @@ -65,6 +65,7 @@ kong_all_consumer_groups: - objectAccess - orgAccess - orgCreate + - orgUpdate - pageAccess - pluginAccess - reportsAccess @@ -74,6 +75,7 @@ kong_all_consumer_groups: - ssoCreate - userAccess - userAdmin + - userSuperAdmin - userCreate - userTempAdmin - userUpdate From 0b4eb677a1ac830eb8c80d2f83a8ba3888fdd413 Mon Sep 17 00:00:00 2001 From: Amit Kumar Yadav <36166686+amit-kumaryadav@users.noreply.github.com> Date: Wed, 25 Aug 2021 16:04:49 +0530 Subject: [PATCH 51/65] Update main.yml --- ansible/roles/kong-api/defaults/main.yml | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/ansible/roles/kong-api/defaults/main.yml b/ansible/roles/kong-api/defaults/main.yml index 57487efac..69004e487 100644 --- a/ansible/roles/kong-api/defaults/main.yml +++ b/ansible/roles/kong-api/defaults/main.yml @@ -6882,11 +6882,7 @@ kong_apis: config.limit_by: credential - name: request-size-limiting config.allowed_payload_size: "{{ medium_request_size_limit }}" - - name: request-transformer - config: - rename: - headers: - - nodebb_authorization_token:authorization + - name: nodebbAPIs uris: "/nodebb/api" From ae27f5c618b00d719eee05e41197405439667d7d Mon Sep 17 00:00:00 2001 From: Amit Kumar Yadav <36166686+amit-kumaryadav@users.noreply.github.com> Date: Thu, 16 Sep 2021 15:43:10 +0530 Subject: [PATCH 52/65] Update main.yml --- ansible/roles/kong-api/defaults/main.yml | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/ansible/roles/kong-api/defaults/main.yml b/ansible/roles/kong-api/defaults/main.yml index 69004e487..f7bf6230e 100644 --- a/ansible/roles/kong-api/defaults/main.yml +++ b/ansible/roles/kong-api/defaults/main.yml @@ -6366,6 +6366,24 @@ kong_apis: - name: request-size-limiting config.allowed_payload_size: "{{ small_request_size_limit }}" + - name: getUserCompentenciesDetails + uris: "/v2/workallocation/user/competencies" + upstream_url: "{{ sb_cb_ext_service_url }}/v2/workallocation/user/competencies" + 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: "{{ small_request_size_limit }}" + - name: startPdfProfanity uris: "{{ content_validation_service_prefix }}/v1/startPdfProfanity" upstream_url: "{{ content_validation_service_url }}/v1/startPdfProfanity" From 26c38ed209c729702615b4fde986893ddccf5f4d Mon Sep 17 00:00:00 2001 From: darshannagesh Date: Mon, 27 Sep 2021 18:48:54 +0530 Subject: [PATCH 53/65] Adding Dashboard APIs to Gateway Configurations --- ansible/roles/kong-api/defaults/main.yml | 53 ++++++++++++++++++++++++ 1 file changed, 53 insertions(+) diff --git a/ansible/roles/kong-api/defaults/main.yml b/ansible/roles/kong-api/defaults/main.yml index f7bf6230e..6a1e92efd 100644 --- a/ansible/roles/kong-api/defaults/main.yml +++ b/ansible/roles/kong-api/defaults/main.yml @@ -6920,3 +6920,56 @@ kong_apis: - name: request-size-limiting config.allowed_payload_size: "{{ medium_request_size_limit }}" + - name: "analyticsGetDashboardsForProfile" + uris: "{{ dashboard_service_prefix }}/dashboard/getDashboardsForProfile/Karmayogi" + upstream_url: "{{ analytics_url }}/dashboard/getDashboardsForProfile/Karmayogi" + 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: "{{ small_request_size_limit }}" + + - name: "analyticsGetChartVisualization" + uris: "{{ dashboard_service_prefix }}/dashboard/getChartV2/Karmayogi" + upstream_url: "{{ analytics_url }}/dashboard/getChartV2/Karmayogi" + 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: "{{ small_request_size_limit }}" + + - name: "analyticsGetDashboardConfiguration" + uris: "{{ dashboard_service_prefix }}/dashboard/getDashboardConfig/Karmayogi" + upstream_url: "{{ analytics_url }}/dashboard/getDashboardConfig/Karmayogi" + 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: "{{ small_request_size_limit }}" From 7e8e240874d18a99f9d9c09fdf24d775c2f24785 Mon Sep 17 00:00:00 2001 From: darshannagesh Date: Mon, 27 Sep 2021 19:06:45 +0530 Subject: [PATCH 54/65] Updating Main.yml --- 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 6a1e92efd..20ee89d21 100644 --- a/ansible/roles/kong-api/defaults/main.yml +++ b/ansible/roles/kong-api/defaults/main.yml @@ -112,6 +112,7 @@ hub_graph_service_url: "http://hub-graph-service:4013" workflow_handler_service_url: "http://workflow-handler-service:5099" discussions_mw_url: "http://discussionsmw-service:3002" nodebb_url: "http://nodebb-service:4567/discussions" +analytics_url: "http://pm-zuul-service:8080" premium_consumer_rate_limits: From 2ce9c42e1bde7f14dce8f8237413b0ba9f4a5c48 Mon Sep 17 00:00:00 2001 From: darshannagesh Date: Tue, 28 Sep 2021 10:52:34 +0530 Subject: [PATCH 55/65] Updating main.yml --- ansible/roles/kong-api/defaults/main.yml | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/ansible/roles/kong-api/defaults/main.yml b/ansible/roles/kong-api/defaults/main.yml index 20ee89d21..fa81f7590 100644 --- a/ansible/roles/kong-api/defaults/main.yml +++ b/ansible/roles/kong-api/defaults/main.yml @@ -6922,8 +6922,8 @@ kong_apis: config.allowed_payload_size: "{{ medium_request_size_limit }}" - name: "analyticsGetDashboardsForProfile" - uris: "{{ dashboard_service_prefix }}/dashboard/getDashboardsForProfile/Karmayogi" - upstream_url: "{{ analytics_url }}/dashboard/getDashboardsForProfile/Karmayogi" + uris: "{{ dashboard_service_prefix }}/analytics/getDashboardsForProfile/Karmayogi" + upstream_url: "{{ analytics_url }}/analytics/getDashboardsForProfile/Karmayogi" strip_uri: true plugins: - name: jwt @@ -6940,8 +6940,8 @@ kong_apis: config.allowed_payload_size: "{{ small_request_size_limit }}" - name: "analyticsGetChartVisualization" - uris: "{{ dashboard_service_prefix }}/dashboard/getChartV2/Karmayogi" - upstream_url: "{{ analytics_url }}/dashboard/getChartV2/Karmayogi" + uris: "{{ dashboard_service_prefix }}/analytics/getChartV2/Karmayogi" + upstream_url: "{{ analytics_url }}/analytics/getChartV2/Karmayogi" strip_uri: true plugins: - name: jwt @@ -6958,8 +6958,8 @@ kong_apis: config.allowed_payload_size: "{{ small_request_size_limit }}" - name: "analyticsGetDashboardConfiguration" - uris: "{{ dashboard_service_prefix }}/dashboard/getDashboardConfig/Karmayogi" - upstream_url: "{{ analytics_url }}/dashboard/getDashboardConfig/Karmayogi" + uris: "{{ dashboard_service_prefix }}/analytics/getDashboardConfig/Karmayogi" + upstream_url: "{{ analytics_url }}/analytics/getDashboardConfig/Karmayogi" strip_uri: true plugins: - name: jwt From d9e0016d6ba6a5981424fd0d878d9225d97ca48a Mon Sep 17 00:00:00 2001 From: Karthikeyan Rajendran <70887864+karthik-tarento@users.noreply.github.com> Date: Wed, 29 Sep 2021 17:53:33 +0530 Subject: [PATCH 56/65] Added BrowseBy Competency & Provider API --- ansible/roles/kong-api/defaults/main.yml | 36 ++++++++++++++++++++++++ 1 file changed, 36 insertions(+) diff --git a/ansible/roles/kong-api/defaults/main.yml b/ansible/roles/kong-api/defaults/main.yml index fa81f7590..77a32fdd2 100644 --- a/ansible/roles/kong-api/defaults/main.yml +++ b/ansible/roles/kong-api/defaults/main.yml @@ -6974,3 +6974,39 @@ kong_apis: config.limit_by: credential - name: request-size-limiting config.allowed_payload_size: "{{ small_request_size_limit }}" + + - name: getBrowseByCompetency + uris: "/v1/browseByCompetency" + upstream_url: "{{ sb_cb_ext_service_url }}/v1/browseByCompetency" + 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: "{{ small_request_size_limit }}" + + - name: getBrowseByProvider + uris: "/v1/browseByCompetency" + upstream_url: "{{ sb_cb_ext_service_url }}/v1/browseByProvider" + 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: "{{ small_request_size_limit }}" From 98ecfad06ff4df8eec74cb0e4ae15d63fbd7a5cd Mon Sep 17 00:00:00 2001 From: Karthikeyan Rajendran <70887864+karthik-tarento@users.noreply.github.com> Date: Wed, 29 Sep 2021 17:57:39 +0530 Subject: [PATCH 57/65] Updates in the Path --- ansible/roles/kong-api/defaults/main.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ansible/roles/kong-api/defaults/main.yml b/ansible/roles/kong-api/defaults/main.yml index 77a32fdd2..ec1394e8f 100644 --- a/ansible/roles/kong-api/defaults/main.yml +++ b/ansible/roles/kong-api/defaults/main.yml @@ -6976,7 +6976,7 @@ kong_apis: config.allowed_payload_size: "{{ small_request_size_limit }}" - name: getBrowseByCompetency - uris: "/v1/browseByCompetency" + uris: "/searchBy/competency" upstream_url: "{{ sb_cb_ext_service_url }}/v1/browseByCompetency" strip_uri: true plugins: @@ -6994,7 +6994,7 @@ kong_apis: config.allowed_payload_size: "{{ small_request_size_limit }}" - name: getBrowseByProvider - uris: "/v1/browseByCompetency" + uris: "/searchBy/provider" upstream_url: "{{ sb_cb_ext_service_url }}/v1/browseByProvider" strip_uri: true plugins: From ee881e32380d3be7fc78d12096216cdc7bd25519 Mon Sep 17 00:00:00 2001 From: Haritest Date: Fri, 1 Oct 2021 11:47:58 +0530 Subject: [PATCH 58/65] pip update removed for testing --- kubernetes/ansible/roles/kong-api/tasks/main.yml | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/kubernetes/ansible/roles/kong-api/tasks/main.yml b/kubernetes/ansible/roles/kong-api/tasks/main.yml index a83c8a070..4c5790cdd 100644 --- a/kubernetes/ansible/roles/kong-api/tasks/main.yml +++ b/kubernetes/ansible/roles/kong-api/tasks/main.yml @@ -1,10 +1,10 @@ --- -- name: Ensure pip is installed - apt: name=python-pip update_cache=yes - when: ansible_os_family == 'Debian' +#- name: Ensure pip is installed +# apt: name=python-pip update_cache=yes +# when: ansible_os_family == 'Debian' -- name: Ensure retry is installed - pip: name=retry +#- name: Ensure retry is installed +# pip: name=retry - name: Save api details to json file copy: dest=/tmp/kong_apis.json content="{{ kong_apis | to_nice_json}}" mode=0644 From 680ed83db9ed7519ab6f4cbf6837d2678e647cae Mon Sep 17 00:00:00 2001 From: Darshan Nagesh Date: Mon, 4 Oct 2021 10:41:48 +0530 Subject: [PATCH 59/65] Updated URLS --- ansible/roles/kong-api/defaults/main.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/ansible/roles/kong-api/defaults/main.yml b/ansible/roles/kong-api/defaults/main.yml index ec1394e8f..b3f326888 100644 --- a/ansible/roles/kong-api/defaults/main.yml +++ b/ansible/roles/kong-api/defaults/main.yml @@ -6923,7 +6923,7 @@ kong_apis: - name: "analyticsGetDashboardsForProfile" uris: "{{ dashboard_service_prefix }}/analytics/getDashboardsForProfile/Karmayogi" - upstream_url: "{{ analytics_url }}/analytics/getDashboardsForProfile/Karmayogi" + upstream_url: "{{ analytics_url }}/dashboard/analytics/getDashboardsForProfile/Karmayogi" strip_uri: true plugins: - name: jwt @@ -6941,7 +6941,7 @@ kong_apis: - name: "analyticsGetChartVisualization" uris: "{{ dashboard_service_prefix }}/analytics/getChartV2/Karmayogi" - upstream_url: "{{ analytics_url }}/analytics/getChartV2/Karmayogi" + upstream_url: "{{ analytics_url }}/dashboard/analytics/getChartV2/Karmayogi" strip_uri: true plugins: - name: jwt @@ -6959,7 +6959,7 @@ kong_apis: - name: "analyticsGetDashboardConfiguration" uris: "{{ dashboard_service_prefix }}/analytics/getDashboardConfig/Karmayogi" - upstream_url: "{{ analytics_url }}/analytics/getDashboardConfig/Karmayogi" + upstream_url: "{{ analytics_url }}/dashboard/analytics/getDashboardConfig/Karmayogi" strip_uri: true plugins: - name: jwt From 4b67817f226a80dc189361b25437bbc06a1ddc1a Mon Sep 17 00:00:00 2001 From: Darshan Nagesh Date: Tue, 5 Oct 2021 15:26:41 +0530 Subject: [PATCH 60/65] Updating the Zuul to Analytics Service --- 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 b3f326888..0f8fe7a67 100644 --- a/ansible/roles/kong-api/defaults/main.yml +++ b/ansible/roles/kong-api/defaults/main.yml @@ -112,7 +112,7 @@ hub_graph_service_url: "http://hub-graph-service:4013" workflow_handler_service_url: "http://workflow-handler-service:5099" discussions_mw_url: "http://discussionsmw-service:3002" nodebb_url: "http://nodebb-service:4567/discussions" -analytics_url: "http://pm-zuul-service:8080" +analytics_url: "http://pm-analytics-service:8091" premium_consumer_rate_limits: From 1e0d1f6d34ceafc5275513b16b42c0303467f761 Mon Sep 17 00:00:00 2001 From: Karthikeyan Rajendran <70887864+karthik-tarento@users.noreply.github.com> Date: Wed, 6 Oct 2021 18:01:46 +0530 Subject: [PATCH 61/65] Add MDO API mappings --- ansible/roles/kong-api/defaults/main.yml | 70 ++++++++++++++++++++++++ 1 file changed, 70 insertions(+) diff --git a/ansible/roles/kong-api/defaults/main.yml b/ansible/roles/kong-api/defaults/main.yml index 0f8fe7a67..7a3a97d06 100644 --- a/ansible/roles/kong-api/defaults/main.yml +++ b/ansible/roles/kong-api/defaults/main.yml @@ -7010,3 +7010,73 @@ kong_apis: config.limit_by: credential - name: request-size-limiting config.allowed_payload_size: "{{ small_request_size_limit }}" + + - name: staffOperation + uris: "/staff/position" + upstream_url: "{{ sb_cb_ext_service_url }}/staff/position" + strip_uri: true + plugins: + - n- name: staffOperation + uris: "/staff/position" + upstream_url: "{{ sb_cb_ext_service_url }}/staff/position" + 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: "{{ small_request_size_limit }}" + + - name: budgetOperation + uris: "/budget/scheme" + upstream_url: "{{ sb_cb_ext_service_url }}/budget/scheme" + 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: "{{ small_request_size_limit }}" + + - name: orgHistoryOperation + uris: "/orghistory" + upstream_url: "{{ sb_cb_ext_service_url }}/orghistory" + 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: "{{ small_request_size_limit }}"ame: 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: "{{ small_request_size_limit }}" From 8f32a27101fcb1edbdefb84da5f225e157d95363 Mon Sep 17 00:00:00 2001 From: Karthikeyan Rajendran <70887864+karthik-tarento@users.noreply.github.com> Date: Wed, 6 Oct 2021 18:07:07 +0530 Subject: [PATCH 62/65] Fixed issues in mappings Removed unnecessary lines --- ansible/roles/kong-api/defaults/main.yml | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/ansible/roles/kong-api/defaults/main.yml b/ansible/roles/kong-api/defaults/main.yml index 7a3a97d06..16de13015 100644 --- a/ansible/roles/kong-api/defaults/main.yml +++ b/ansible/roles/kong-api/defaults/main.yml @@ -7060,17 +7060,6 @@ kong_apis: - 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: "{{ small_request_size_limit }}"ame: jwt - - name: cors - - "{{ statsd_pulgin }}" - name: acl config.whitelist: - 'dataAccess' From 3896ec3c2628a968a99c6dca3ecccdee1ecdd426 Mon Sep 17 00:00:00 2001 From: Karthikeyan Rajendran <70887864+karthik-tarento@users.noreply.github.com> Date: Thu, 25 Nov 2021 12:41:54 +0530 Subject: [PATCH 63/65] small_rate_limit_per_hour is set to 1000 instead of 100 --- 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 16de13015..f77ab84c0 100644 --- a/ansible/roles/kong-api/defaults/main.yml +++ b/ansible/roles/kong-api/defaults/main.yml @@ -16,7 +16,7 @@ statsd_pulgin: config.port: "{{ statsd_port }}" # Default Rate limits -small_rate_limit_per_hour: 100 +small_rate_limit_per_hour: 1000 medium_rate_limit_per_hour: 5000 x_medium_rate_limit_per_hour: 5000 large_rate_limit_per_hour: 10000 From 77a978908175e46c2c159fd8e1c256c9a199f839 Mon Sep 17 00:00:00 2001 From: Haritest Date: Fri, 26 Nov 2021 12:15:34 +0530 Subject: [PATCH 64/65] reverted small_rate_limit_per_hour changes to 100 --- 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 f77ab84c0..16de13015 100644 --- a/ansible/roles/kong-api/defaults/main.yml +++ b/ansible/roles/kong-api/defaults/main.yml @@ -16,7 +16,7 @@ statsd_pulgin: config.port: "{{ statsd_port }}" # Default Rate limits -small_rate_limit_per_hour: 1000 +small_rate_limit_per_hour: 100 medium_rate_limit_per_hour: 5000 x_medium_rate_limit_per_hour: 5000 large_rate_limit_per_hour: 10000 From c59b4563adfa81a003eb55a8dcde611eb5be8ade Mon Sep 17 00:00:00 2001 From: Haritest Date: Fri, 26 Nov 2021 14:01:14 +0530 Subject: [PATCH 65/65] Update main.yml --- 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 16de13015..f77ab84c0 100644 --- a/ansible/roles/kong-api/defaults/main.yml +++ b/ansible/roles/kong-api/defaults/main.yml @@ -16,7 +16,7 @@ statsd_pulgin: config.port: "{{ statsd_port }}" # Default Rate limits -small_rate_limit_per_hour: 100 +small_rate_limit_per_hour: 1000 medium_rate_limit_per_hour: 5000 x_medium_rate_limit_per_hour: 5000 large_rate_limit_per_hour: 10000