Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Migrate from cloud.gov CDN service to new cloud.gov custom domain service #4897

Closed
1 task done
Tracked by #163
lbeaufort opened this issue Sep 29, 2021 · 10 comments
Closed
1 task done
Tracked by #163

Comments

@lbeaufort
Copy link
Member

lbeaufort commented Sep 29, 2021

Summary

What we're after:
Migrate from cloud.gov CDN service to new cloud.gov custom domain service

From the announcement:
https://cloud.gov/2021/08/16/external-domain-migration-announcement/

The custom-domain and cdn-route services leverage Let’s Encrypt to provision certificates on our users’ behalf. Several months ago, Let’s Encrypt announced that they’re deprecating their v1 API. To work with their new API, we’ve written a replacement to the cdn-route and custom-domain services, the external-domain service. We now need to migrate your service instances to the new service to ensure their certificates can continue renewing without issue. To accomplish this, we’ve written internal tooling to migrate instances automatically without service interruption, but it does require some action on your part to initiate the migration.

Completion criteria

  • cdn-service has been replaced with external-domain service in all spaces

Tech steps or considerations

Future work/related ticket

fecgov/fec-dns#1: Add README info or wiki with instructions on how to update DNS info

@lbeaufort lbeaufort added this to the Sprint 16.5 milestone Sep 29, 2021
@dorothyyeager dorothyyeager changed the title Migrate from cloud.gov CDN service to new cloud.gov custom domain service Due by Feb. 5: Migrate from cloud.gov CDN service to new cloud.gov custom domain service Nov 23, 2021
@dorothyyeager dorothyyeager modified the milestones: Sprint 16.5, Sprint 16.6 Dec 7, 2021
@rfultz rfultz modified the milestones: Sprint 16.6, Sprint 17.1 Dec 21, 2021
@lbeaufort
Copy link
Member Author

Emailed cloud.gov to set up supplemental support hours. cc'd @fec-jli and @pkfec

@lbeaufort
Copy link
Member Author

lbeaufort commented Jan 6, 2022

Notes on work so far: 🔒 https://docs.google.com/document/d/1oZIqrb6Ouy97n8Dct3IU179GVZG8BEOfdZVJp26lAEE/edit 🔒

Next steps:

  • Reach out to AWS about modifying A record in Route 53 for apex domain (dev.fec.gov) - currently can't route to a non-AWS resource for the apex domain (dev.fec.gov)
  • Cloud.gov is looking into whether we can route to an AWS resource (ARN) instead of the cloud.gov external domain (dev.fec.gov.external-domains-production.cloud.gov) cc: @ccostino

@lbeaufort lbeaufort changed the title Due by Feb. 5: Migrate from cloud.gov CDN service to new cloud.gov custom domain service Due by March 5: Migrate from cloud.gov CDN service to new cloud.gov custom domain service Jan 10, 2022
@lbeaufort
Copy link
Member Author

lbeaufort commented Jan 10, 2022

@ccostino was able to confirm that cloud.gov does need to have the domain names match, so we need to have that external-domains-production.cloud.gov piece on the DNS record. They will need to take a closer look in order to figure out a path forward and solution. Pushing our internal deadline back a month, as cloud.gov hasn't set a hard deadline on moving over.

I'm meeting with AWS support today to see if we can work around the Route 53 A-record restriction.

@ccostino
Copy link
Contributor

Thanks, @lbeaufort!

@lbeaufort
Copy link
Member Author

After meeting with AWS, the way our DNS is set up makes it very difficult to make these changes properly. If we move the DNS records into our landing zone environment and change the way we structured the DNS records, we should be able to make these changes. It's my understanding dev.fec.gov shouldn't be an apex domain.

Next steps are to schedule a meeting with the operations team and AWS about next steps and whether we can move DNS migration into the project.

@lbeaufort lbeaufort modified the milestones: Sprint 17.1, Sprint 17.2 Jan 26, 2022
@rfultz rfultz modified the milestones: Sprint 17.2, Sprint 17.3 Feb 11, 2022
@patphongs patphongs removed this from the Sprint 17.3 milestone Feb 28, 2022
@lbeaufort lbeaufort added this to the Sprint 18.2 milestone May 3, 2022
@djgarr djgarr modified the milestones: Sprint 18.3, Sprint 18.4 Jun 14, 2022
@djgarr djgarr modified the milestones: Sprint 18.4, Sprint 18.5 Jun 28, 2022
@djgarr djgarr modified the milestones: Sprint 18.5, Sprint 18.6 Jul 12, 2022
@cnlucas cnlucas modified the milestones: Sprint 18.6, Sprint 19.1 Jul 26, 2022
@lbeaufort
Copy link
Member Author

lbeaufort commented Aug 10, 2022

From cloud.gov:

May 4, 2022, 13:45 PDT
Hi Laura,

We still need to update our documentation to match, but this is a change we're going to make - going forward, we'll support CNAME or ALIAS records pointing to the cloudfront distributions underlying domain-with-cdn service instances. We will still require the _acme-challenge.<domain> address to be a CNAME to _acme-challenge.<domain>.external-domains-production.cloud.gov, as that's required for us to provision certificates for you. The intermediate domain will also continue to be required when using the domain plan.

@patphongs patphongs modified the milestones: Sprint 19.2, Sprint 19.3 Aug 31, 2022
@patphongs patphongs modified the milestones: Sprint 19.3, Sprint 19.4 Sep 28, 2022
@pkfec pkfec removed this from the Sprint 19.4 milestone Oct 18, 2022
@lbeaufort
Copy link
Member Author

From cloud.gov:

If so, then the next steps for you are (using dev.fec.gov as an example):

· Make sure you have created the CNAME record from _acme-challenge.dev.fec.gov to _acme-challenge.dev.fec.gov.external-domains-production.cloud.gov in accordance with the migration guide

· Use an alias record to point your record for dev.fec.gov at the domain for the Cloudfront distribution, which in that case is <see Laura's email>

After those steps are complete, we have an automated tool that should run to convert your cdn-broker cdn-route service to an external-domain-broker domain-with-cdn service.

Let's make sure that we test this approach on dev.fec.gov before moving on to any more mission-critical domains. So let me know when you have created the necessary DNS records and we can go from there.

@cnlucas cnlucas added this to the Sprint 23.4 milestone Nov 21, 2023
@lbeaufort lbeaufort removed their assignment Dec 7, 2023
@rfultz rfultz modified the milestones: Sprint 23.4, Sprint 23.5 Dec 7, 2023
@cnlucas
Copy link
Member

cnlucas commented Dec 21, 2023

Closing as we have successfully migrated all our spaces to the new service.

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

No branches or pull requests

9 participants