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
SBC Common Components - "settings" call should use Auth API GW URL #29709
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.
Activity
severinbeauvais commentedon Jul 22, 2025
@seeker25 Is there a reverse proxy in place for this API/endpoint?
seeker25 commentedon Jul 22, 2025
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
severinbeauvais commentedon Jul 22, 2025
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.
seeker25 commentedon Jul 22, 2025
Patrick didn't want dev/test instances to reverse proxy as we should be migrating to the API gateway instead
thorwolpert commentedon Jul 27, 2026
stale - new issue can be opened if needed