-
Notifications
You must be signed in to change notification settings - Fork 3.2k
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
[wptserve] Limit number of additional subdomains #12459
[wptserve] Limit number of additional subdomains #12459
Conversation
Recently, the set of origins reserved by wptserve was increased to include a combinatoric set of configuration values. This logic used a "depth" of three, causing the server to reserve subdomains of subdomains of subdomains (e.g. `www.www.www.web-platform.test`). For the default configuration, this produced 312 distinct origins. The motivating feature request describes a use case for a "depth" of 2 [1]. Re-implement to use that depth, limiting the generated set of origins to 62. Update the implementation to make this functionality testable, and update the corresponding tests to verify the intended behavior. [1] web-platform-tests#8581
@gsnedders will have an opinion, but to me it seems more useful to have more depth but fewer domains at each depth; realistically there isn't a use case for having 25 subdomains of depth two, or 125 of depth 3. I would be more tempted to limit the number using something like
(assuming the subdomains are a list). This does mean you don't get a punycode item at each position (it basically means that you only get |
Note the underlying patch was reverted in #12462. Would need to look up if anyone cared about the IDN mix. |
Now that the original change has been reverted, my vote is for a static list derived from the stated needs of test authors. "a subdomain of a subdomain (and another subdomain of the same subdomain)" could be satisfied by |
I would prefer to avoid churn here (for example: making this work with https requires regenerating certificates) so I would do something we think will likely meet future requirements rather than narrowly scoping the changes to meet only the needs of a specific set of tests. |
A narrowly-scoped change will limit unnecessary variation within tests. It's harder to simplify the infrastructure after tests have been written than it is to conservatively introduce features on an as-needed basis. I'm sure you're well aware of this, but we may differ on how much churn we will tolerate in the interest of limiting complexity. I also need to admit to some bias. I'm working on a successor to w3c-test.org, so my concerns are different than those of typical WPT contributors (who far outnumber me). Additional subdomains increase the complexity of deploying the server publicly, and that makes me more interested in a narrowly-scoped change. Ideally, the deployment could respond to changes in subdomain requirements automatically. I think this may be possible with the services we've selected. I'm using Amazon Route 53 for DNS, and that supports " Do you two think "deployability" is a relevant design consideration? |
I get the impression that this PR won't land, but #13272 might. If that's incorrect, please reopen. |
[wptserve] Limit number of additional subdomains
Recently, the set of origins reserved by wptserve was increased to
include a combinatoric set of configuration values. This logic used a
"depth" of three, causing the server to reserve subdomains of subdomains
of subdomains (e.g.
www.www.www.web-platform.test
). For the defaultconfiguration, this produced 312 distinct origins.
The motivating feature request describes a use case for a "depth" of 2
[1]. Re-implement to use that depth, limiting the generated set of
origins to 62. Update the implementation to make this functionality
testable, and update the corresponding tests to verify the intended
behavior.
[1] #8581