Skip to content

Replace Direct(internal) API URLs with API Gateway URLs #32927

Open
40 of 41 issues completed
Open

Description

@pwei1018

Description:
Our applications currently use direct (internal) API endpoint URLs from Google Cloud Run (e.g., *.run.app). Public users have reported access issues due to network restrictions and firewalls. To improve accessibility, maintainability, observability, and security, we should route all API traffic through API Gateway instead of directly exposing Cloud Run URLs.

Acceptance Criteria:

  • Identify all direct Cloud Run API URLs in use.

  • Generate API Gateway keys for each API in all environments (dev, test, sandbox, prod).

  • Update relevant entries in 1Password with new API Gateway URLs and keys.

  • Update frontend applications to use API Gateway URLs with API key.

  • Verify functionality of all frontend apps post-update.

Impact:
Using API Gateway enables improved API management through better traffic monitoring, rate limiting, centralized logging, and enhanced security.

List of APIs that using in frontend applications:

  • Auth
  • Pay (not enable yet)
  • Business (not enable yet)
  • Business AR
  • Namex
  • PPR
  • MHR
  • Search (has both API Gateway URL and Direct URL)
  • BOR (has both API Gateway URL and Direct URL)
  • STRR

Sub-issues

Sub-issues

40 of 41 Issues completed
Loading 41 sub-issues

Activity

  1. added
    SRE
    on May 9, 2025
  2. changed the title [-]Replace Direct API URLs with API Gateway URLs[/-] [+]Replace Direct(internal) API URLs with API Gateway URLs[/+] on May 9, 2025
  3. doug-lovett commented on May 9, 2025

    @doug-lovett
    Collaborator

    @pwei1018 I have started a spreadsheet for tracking this work https://docs.google.com/spreadsheets/d/1Iu8muQBC9J0sVqNsufqbRpJzmES4aC0ip8M8phm-aqU/edit?gid=0#gid=0

    Can you please provide the dev backend url's in the spreadsheet for the outstanding api's that need a gateway proxy?
    @thorwolpert

  4. severinbeauvais commented on May 12, 2025

    @severinbeauvais
    Collaborator

    I don't see Namex API in the spreadsheet.

  5. doug-lovett commented on May 13, 2025

    @doug-lovett
    Collaborator

    @pwei1018 can you please confirm if these 3 api's require gateway setup: BAR, BTR, Namex?

  6. severinbeauvais commented on May 13, 2025

    @severinbeauvais
    Collaborator

    One more maybe: COLIN API...?

  7. thorwolpert commented on May 13, 2025

    @thorwolpert
    Collaborator

    We're not exposing the Colin-API, so it should not be on the list

  8. severinbeauvais commented on May 13, 2025

    @severinbeauvais
    Collaborator

    We're not exposing the Colin-API, so it should not be on the list

    We call COLIN API from Business Create UI, in the Extrapro Registration component when the user looks up a xpro business.

    https://github.com/bcgov/business-create-ui/blob/b19643d503db4d783f07f064b0d7902c5c51ddeb/src/components/ContinuationIn/ExtraproRegistration.vue#L400

    https://github.com/bcgov/business-create-ui/blob/b19643d503db4d783f07f064b0d7902c5c51ddeb/src/services/colin-services.ts#L13

  9. thorwolpert commented on May 13, 2025

    @thorwolpert
    Collaborator

    That must be pretty new, as we only made it callable for the BAR API running in GCP. Probably shouldn't be calling it other than from other APIs.

  10. severinbeauvais commented on May 13, 2025

    @severinbeauvais
    Collaborator

    Here are new ticket to change our usage of the COLIN API:

    Thor, what's the priority of making these changes, and who do you think should make them?

  11. severinbeauvais commented on May 13, 2025

    @severinbeauvais
    Collaborator

    @thorwolpert , I've heard that COLIN API needs to stay in OCP (due to Oracle). In that case, can it stay externally available without going through the API gw?

  12. pwei1018 commented on May 13, 2025

    @pwei1018
    CollaboratorAuthor

    COLIN API won't go to API gateway. It will be deprecated in the future.

  13. 133 remaining items

  14. transferred this issue frombcgov/STRRon Mar 23, 2026
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

    SRE

    Type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions