bcgov / parks-data-register

Apache License 2.0
6 stars 4 forks source link

[M] Configure vanity url for admin and api to user friendly domain #10

Open ashley-dhillon opened 1 year ago

ashley-dhillon commented 1 year ago

Description:

Configures API to use vanity url that has been decided to align with bc parks domain management strategy.

data.bcparks.ca

data.bcparks.ca/api/parks/names = names and can break it down further /names etc. or just /parks for all info

data.bcparks.ca/admin/parks = admin portal for registrar

Acceptance Criteria:

Notes:/Gotchas

JLWade commented 1 year ago

See Park Data Service Teams channel for conversation around urls. Unblocking this ticket

cameronpettit commented 1 year ago

Waiting for DNS verification from Rob. Moving to blocked.

cameronpettit commented 1 year ago

A new problem has arisen for this task - currently Day Use Pass imports a wildcard certificate for *.bcparks.ca, which is affecting our requests for our vanity url such as data.bcparks.ca and test-data.bcparks.ca. Since Data Register's vanity url falls under DUP's wildcard umbrella, certification for Data Register falls under the wrong CloudFront distribution.

What needs to happen to fix this? Our DUP distribution likely needs to drop the wildcard certificate and adopt specific certificates, ie reserve.bcparks.ca and reserve-admin.bcparks.ca. This needs to occur without affecting DUP (now is a good time to make this change). Then, DR can have its own specific certificates.

A&R has no vanity url so it has been unaffected by this.

manuji commented 1 year ago

Tested on Dev, TEST & PROD: Passed