Skip to content

provision fastly cdn for new docs-rs environment#1019

Draft
marcoieni wants to merge 1 commit intomasterfrom
provision-fastly-cdn-for-new-docs-rs-environment
Draft

provision fastly cdn for new docs-rs environment#1019
marcoieni wants to merge 1 commit intomasterfrom
provision-fastly-cdn-for-new-docs-rs-environment

Conversation

@marcoieni
Copy link
Member

No description provided.

Copy link
Member

@syphar syphar left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why would we duplicate the code for the compute module? Or would the old one be removed later?

@marcoieni
Copy link
Member Author

yes the old one will be removed later. Unfortunately we have duplicated code between terragrunt and terraform.
Once the migration is over, we will remove the docs-rs terraform module.

@marcoieni marcoieni force-pushed the provision-fastly-cdn-for-new-docs-rs-environment branch 4 times, most recently from 72048f4 to 54cf3cc Compare March 13, 2026 09:40
@marcoieni marcoieni force-pushed the provision-fastly-cdn-for-new-docs-rs-environment branch from 54cf3cc to 7b0c2f4 Compare March 13, 2026 11:47
# Fastly CDN configuration.
# The docs.rs apex domain is still served by the legacy terraform/docs-rs setup.
# This CDN serves the internal domain to avoid conflicts during migration.
cdn_domain_name = "docs-rs-prod.rust-lang.net"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

generally: I assume these domains / this load balancer won't be reachable by the internet?

not sure what the standard approach is?

or we would just add a limit to the LB only to accept fastly IP ranges.

( IMO ok to do later)

config_store_name = "docs_rs_config"
}

resource "random_password" "origin_auth" {
Copy link
Member

@syphar syphar Mar 13, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think we don't need this origin-auth piece any more, in then new setup, when it's possible to

  1. configure the load balancer to just accept requests from fastly ip ranges
  2. configure the web servers to just accept requests from the load-balancer

or am I missing something?

Copy link
Member

@syphar syphar left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

btw, I also see us enabling the firewall for docs.rs, but later.

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants