You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
SPIKE: Who still uses old URLs? (was: Can we add Account-Id header to all Legal API calls?) #19766
Since this ticket was created, we have migrated to GCP, meaning that API GW URLs should be used (instead of the previous direct API URLs)... as a result of using API GW URLs, Account-Id (and other) request headers already needed to be added. This makes this ticket partly obsolete...
I am re-purposing this ticket to investigate what uses of the direct API URLs still exist, since they will need to be changed over before the reverse proxies are decommissioned.
Original Description
In #19698, Account-Id was added to an Auth API call so that proper authorization is performed, ie, the current user's account is authorized to fetch the data for the specific business (which may or may not be affiliated to the account id).
This ticket is to look into adding account id as a header to other (all?) calls to Legal API.
identify the calls that can benefit from the account id header (ie, API should validate it)
identify the calls that should not specify account id header, if any (ie, API calls for the login, not the account)
identify the UIs that should be updated
identify impacts if a call that previously succeeded now returns HTTP 403 because the current account id doesn't match the data's account id
determine if some Auth API calls should also include account id
have a quick look at Namerequest UI and see what Legal API calls could be updated and the impact
changed the title [-]Investigate: can we add Account-Id header in all Legal API calls[/-][+]Investigate: can we add Account-Id header in all Legal API calls?[/+]on Feb 8, 2024
changed the title [-]Investigate: can we add Account-Id header in all Legal API calls?[/-][+]Investigate: can we add Account-Id header to all Legal API calls?[/+]on Feb 8, 2024
changed the title [-]Investigate: can we add Account-Id header to all Legal API calls?[/-][+]Investigate: Can we add Account-Id header to all Legal API calls?[/+]on Feb 8, 2024
As for API to API calls, they probably don't need to include Account Id because, if they are the result of a UI request, that request would have been authorized.
As part of the migration from OCP to GCP last summer, and the adoption of an API Gateway, Account ID was added to all UI calls.
All UI calls? Maybe not all of them. A quick investigation should be performed to see if any were missed, ie, if they still call the APIs directly instead of going through the API GW.
changed the title [-]Investigate: Can we add Account-Id header to all Legal API calls?[/-][+]Investigate: Who still uses old URLs (was: Can we add Account-Id header to all Legal API calls?)[/+]on Oct 30, 2025
changed the title [-]Investigate: Who still uses old URLs? (was: Can we add Account-Id header to all Legal API calls?)[/-][+]SPIKE: Who still uses old URLs? (was: Can we add Account-Id header to all Legal API calls?)[/+]on Nov 7, 2025
Activity
[-]tbd[/-][+]Investigate: can we add Account-Id header in all Legal API calls[/+][-]Investigate: can we add Account-Id header in all Legal API calls[/-][+]Investigate: can we add Account-Id header in all Legal API calls?[/+][-]Investigate: can we add Account-Id header in all Legal API calls?[/-][+]Investigate: can we add Account-Id header to all Legal API calls?[/+][-]Investigate: can we add Account-Id header to all Legal API calls?[/-][+]Investigate: Can we add Account-Id header to all Legal API calls?[/+]Mihai-QuickSilverDev commentedon Oct 3, 2025
severinbeauvais commentedon Oct 3, 2025
As for API to API calls, they probably don't need to include Account Id because, if they are the result of a UI request, that request would have been authorized.
severinbeauvais commentedon Oct 29, 2025
As part of the migration from OCP to GCP last summer, and the adoption of an API Gateway, Account ID was added to all UI calls.
All UI calls? Maybe not all of them. A quick investigation should be performed to see if any were missed, ie, if they still call the APIs directly instead of going through the API GW.
severinbeauvais commentedon Oct 30, 2025
I updated and moved this comment down
severinbeauvais commentedon Oct 30, 2025
To do: Severin to also look at Names components and then contact Mihai for any required implementation tickets.
[-]Investigate: Can we add Account-Id header to all Legal API calls?[/-][+]Investigate: Who still uses old URLs (was: Can we add Account-Id header to all Legal API calls?)[/+]13 remaining items
severinbeauvais commentedon Nov 7, 2025
OK, here's where we are now:
There is nothing left to do in THIS ticket. Since there were some minor code changes, I'm moving it to RFQA.
[-]Investigate: Who still uses old URLs? (was: Can we add Account-Id header to all Legal API calls?)[/-][+]SPIKE: Who still uses old URLs? (was: Can we add Account-Id header to all Legal API calls?)[/+]riyazuddinsyed commentedon Dec 10, 2025
Verified in test.Working as expected.