From d7b7afdac570285533bc95745f0edddb7448cab2 Mon Sep 17 00:00:00 2001 From: Bharathwaj <32808916+BharathwajShankar@users.noreply.github.com> Date: Tue, 7 May 2024 12:08:21 +0530 Subject: [PATCH] Issue #LR-676 feat: User Delete - ownership transfer api addition (#3969) * Issue #LR-676 feat: User Delete - ownership transfer api addition * Issue #LR-676 feat: User Delete - ownership transfer api addition * Issue #LR-676 feat: User Delete - ownership transfer api addition * Issue #LR-676 feat: User Delete - ownership transfer api addition adding topic name * Issue #LR-676 feat: Making opa checks true --- ansible/roles/kong-api/defaults/main.yml | 21 +++++++++++++++++++ .../templates/userorg-service.env | 3 ++- 2 files changed, 23 insertions(+), 1 deletion(-) diff --git a/ansible/roles/kong-api/defaults/main.yml b/ansible/roles/kong-api/defaults/main.yml index e3adfdaa64..91a134498e 100644 --- a/ansible/roles/kong-api/defaults/main.yml +++ b/ansible/roles/kong-api/defaults/main.yml @@ -9244,6 +9244,27 @@ kong_apis: config.required: true config.enabled: true +- name: ownershipTransfer + uris: "{{ user_service_prefix }}/v1/ownership/transfer" + upstream_url: "{{ userorg_service_url }}/v1/user/ownership/transfer" + 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: "{{ medium_request_size_limit }}" + - name: opa-checks + config.required: true + config.enabled: true + - name: createContentV2 uris: "{{ content_prefix }}/v2/create" upstream_url: "{{ content_service_url }}/content/v4/create" diff --git a/ansible/roles/stack-sunbird/templates/userorg-service.env b/ansible/roles/stack-sunbird/templates/userorg-service.env index ea266dee7d..baf242268f 100644 --- a/ansible/roles/stack-sunbird/templates/userorg-service.env +++ b/ansible/roles/stack-sunbird/templates/userorg-service.env @@ -138,4 +138,5 @@ sunbird_userorg_keyspace=sunbird # Release-7.0.0 user-deletion-roles=public user-deletion-broadcast-topic={{env_name}}.delete.user -sunbird_support_email={{ sunbird_mail_server_from_email }} \ No newline at end of file +sunbird_support_email={{ sunbird_mail_server_from_email }} +user-ownership-transfer-topic={{env_name}}.user.ownership.transfer \ No newline at end of file