Consume and handle user events

Description

mod-tlr needs to be able to synchronize users between tenants in a multi-tenant ECS environment. It needs to consume and handle user update events.

  1. Consume user update event only published by the central tenant, ignore events published by data tenants to avoid an endless loop. In order to determine which tenant is central, make a call to GET /user-tenants?limit=1 and cache consortiumId (this is needed for step 2) and centralTenantId (that’s central tenant). This logic was already implemented in .

  2. Using consortiumId from the previous step, call GET /consortia/{consortiumId}/tenants to get a list of all tenants of the current consortium.

  3. Using a system user, update all of the users in all tenants except central (again, to avoid an endless loop).

Environment

None

Potential Workaround

None

Checklist

hide

Activity

Show:

Roman Barannyk November 25, 2024 at 1:23 PM

tested on Rancher, is works as expected

Done

Details

Assignee

Reporter

Priority

Story Points

Sprint

Development Team

Vega

Fix versions

Release

Ramsons (R2 2024)

TestRail: Cases

Open TestRail: Cases

TestRail: Runs

Open TestRail: Runs

Created September 2, 2024 at 1:47 PM
Updated November 30, 2024 at 4:45 PM
Resolved November 25, 2024 at 2:33 PM
TestRail: Cases
TestRail: Runs