Skip to content

SPIKE: Who still uses old URLs? (was: Can we add Account-Id header to all Legal API calls?) #19766

Closed

Description

@severinbeauvais

New Description

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

Activity

  1. added
    Entities Team
    on Feb 8, 2024
  2. changed the title [-]tbd[/-] [+]Investigate: can we add Account-Id header in all Legal API calls[/+] on Feb 8, 2024
  3. 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
  4. 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
  5. 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
  6. Mihai-QuickSilverDev commented on Oct 3, 2025

    @Mihai-QuickSilverDev
    Collaborator
    • BRD UI includes the Account-Id Header.
    • Business Dashboard UI includes the Account-Id header.
    • Business Create UI includes the Account-Id header.
    • Business Edit UI includes the Account-Id header.
    • Business Filings UI includes the Account-Id header.
    • Auth API calls to Legal API does not include the Account-Id header.
    • Namerequest UI does not include it - this is a pure Names ticket.
  7. severinbeauvais commented on Oct 3, 2025

    @severinbeauvais
    CollaboratorAuthor

    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.

  8. severinbeauvais commented on Oct 29, 2025

    @severinbeauvais
    CollaboratorAuthor

    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.

  9. severinbeauvais commented on Oct 30, 2025

    @severinbeauvais
    CollaboratorAuthor

    I updated and moved this comment down

  10. severinbeauvais commented on Oct 30, 2025

    @severinbeauvais
    CollaboratorAuthor

    To do: Severin to also look at Names components and then contact Mihai for any required implementation tickets.

  11. 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
  12. 13 remaining items

  13. severinbeauvais commented on Nov 7, 2025

    @severinbeauvais
    CollaboratorAuthor

    OK, here's where we are now:

    • in THIS ticket, I cleaned up some UIs by removing obsolete keys/FFs (and updating some comments)
    • I created ticket 31185 to remove obsolete keys/FFs in Namerequest UI
    • I created ticket 31186 to update the Namex API URL in Name Examination UI
    • I created ticket 31197 to determine the way forward to update the URLs used by the sbc-common-component library used by the Vue2 UIs
    • I created ticket 31203 to pursue the update of the Nuxt3 Core Layer used by the BRD UI

    There is nothing left to do in THIS ticket. Since there were some minor code changes, I'm moving it to RFQA.

  14. 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
  15. riyazuddinsyed commented on Dec 10, 2025

    @riyazuddinsyed
    Contributor

    Verified in test.Working as expected.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

Entities Team

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions