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
Replace Direct(internal) API URLs with API Gateway URLs #32927
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.
@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?
Activity
[-]Replace Direct API URLs with API Gateway URLs[/-][+]Replace Direct(internal) API URLs with API Gateway URLs[/+]doug-lovett commentedon May 9, 2025
@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
severinbeauvais commentedon May 12, 2025
I don't see Namex API in the spreadsheet.
doug-lovett commentedon May 13, 2025
@pwei1018 can you please confirm if these 3 api's require gateway setup: BAR, BTR, Namex?
severinbeauvais commentedon May 13, 2025
One more maybe: COLIN API...?
thorwolpert commentedon May 13, 2025
We're not exposing the Colin-API, so it should not be on the list
severinbeauvais commentedon May 13, 2025
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
thorwolpert commentedon May 13, 2025
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.
severinbeauvais commentedon May 13, 2025
Here are new ticket to change our usage of the COLIN API:
Legal API: create proxy endpoint for "COLIN fetch public business"closed as not needed atmCreate UI: use new "COLIN fetch public business" endpointclosed as not needed atmThor, what's the priority of making these changes, and who do you think should make them?
severinbeauvais commentedon May 13, 2025
@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?
pwei1018 commentedon May 13, 2025
COLIN API won't go to API gateway. It will be deprecated in the future.
133 remaining items