Skip to content

SBC Common Components - "settings" call should use Auth API GW URL #29709

Closed

Description

@severinbeauvais

Many UIs use the SBC Common Components (V2 version).

Some component inside SBC Common is calling a "settings" endpoint using the internal Auth API URL. Instead, it should call the Auth API Gateway URL.

image.png

Activity

  1. added
    Entities Team
    connect
    on Jul 22, 2025
  2. severinbeauvais commented on Jul 22, 2025

    @severinbeauvais
    CollaboratorAuthor

    @seeker25 Is there a reverse proxy in place for this API/endpoint?

  3. seeker25 commented on Jul 22, 2025

    @seeker25
    Contributor

    Yes on prod,

    "Some component inside SBC Common is calling a "settings" endpoint using the internal Auth API URL. Instead, it should call the Auth API Gateway URL."

    it should get added here for sbc-common-components:
    https://github.com/bcgov/sbc-common-components/blob/d280cd1f9cba1ff1a24f5fb823ba089a8ad66e2a/vue/sbc-common-components/src/util/interceptors.ts#L7

    If you're using an older version (lets say stuck with Vuex), here's a hack work around we did for namerequest:

    bcgov/namerequest#834

  4. severinbeauvais commented on Jul 22, 2025

    @severinbeauvais
    CollaboratorAuthor

    Thanks!

    With the reverse proxy in place, calling this endpoint on a OCP URL should work... Unfortunately, the subject component is using the AUTH_API_URL key from 1Password, and the value of this key is xxx.run.app (GCP internal URL). In other words, the component does not know the OCP URL to call (this is True in Dev/Test; in Prod that key points to the Silver/OCP URL).

    This has exposed a mismatch between the keys in Dev/Test vs Prod (some point to GCP internal URL and others point to OCP). This may be difficult to resolve when it's time to migrate Prod to GCP (since the keys are used by both UIs and APIs).

    Therefore, I think this ticket should be prioritized and implemented before we migrate Prod to GCP.

  5. seeker25 commented on Jul 22, 2025

    @seeker25
    Contributor

    Patrick didn't want dev/test instances to reverse proxy as we should be migrating to the API gateway instead

  6. thorwolpert commented on Jul 27, 2026

    @thorwolpert
    Collaborator

    stale - new issue can be opened if needed

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Entities Teamconnect

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions