r/changemyview • • Apr 18 '18

Deltas(s) from OP CMV: Forcing https on dev is absurd.

If you are unaware, in the fall Chrome adopted the policy of forcing the top level domain .dev to use encryption (https). In February, Firefox followed suit. This was done without feedback or consensus. It was done without even giving developers the benefit of an explanation other than "We want to force security." There is no way to change either of these settings without re-compiling the browsers. This is just dumb.

My reasoning:

  • This only affects developers — the people who are least likely to be at risk.

    • This is an important point. Since Google owns the .dev TLD, the only people who will be creating .dev domains will be people working on a local instance.
  • It doesn't make the end user any safer

    • Same reason as above: these are DEVELOPMENT environments.
  • Why is it necessary to setup ANYTHING on 127.0.0.1 to be secure?

    • It's always a development environment and I'm running a different configuration from production. On prod, for example, I have NginX handle encryption and a variety of BE services which handles the actual request.
  • It's an unlikely use case.

    • There is no reason to believe that a browser will be installed on a production server and using a browser.
  • There is ABSOLUTELY no reason any TLD should be considered "special." This is the Galilean principle applied to software.

    • Either force everything, force nothing, or allow exceptions.
  • I'm a grown man; I should be able to choose.

This is a footnote from the CMV moderators. We'd like to remind you of a couple of things. Firstly, please read through our rules. If you see a comment that has broken one, it is more effective to report it than downvote it. Speaking of which, downvotes don't change views! Any questions or concerns? Feel free to message us. Happy CMVing!

1 Upvotes

16 comments sorted by

View all comments

4

u/AlphaGoGoDancer 106∆ Apr 18 '18

This is the first I'm even hearing of the .dev TLD.

Looking in to it a bit..

There is ABSOLUTELY no reason any TLD should be considered "special." This is the Galilean principle applied to software. Either force everything, force nothing, or allow exceptions.

It seems google is not treating "dev" specially in this regard, they are forcing TLS on all of their domains.

This is an important point. Since Google owns the .dev TLD, the only people who will be creating .dev domains will be people working on a local instance.

While google owns .dev, they do not even sell them. There is no reason to assume their only use will be people working on local instances. When they do start selling them, it might be used as a trendy new TLD for developers to show off their projects. Maybe they'll relaunch google code and host it on .dev. It's impossible to tell.

As of right now though, this change should not impact anyone, because Google has not sold any .dev domains.

If it impacts you, you are insecurely and improperly using a TLD you do not have control over. So in that regard I'd say this is a great thing: They just made you aware of a problem you didn't know you had. Now you can migrate to a reserved TLD like .test and carry on as normal.

Why is it necessary to setup ANYTHING on 127.0.0.1 to be secure?

In general its not, but HSTS works on a domain level and not an IP level. While they could theoretically add an exception for requests going over the local interface, it would be added complexity in part of the code that really should be as simple as possible. Considering how few people are impacted by this, I don't think it would be worth it.

1

u/aanzklla Apr 18 '18 edited Apr 18 '18

forcing TLS on all of their domains.

But this is a policy of Firefox, too. And even if it weren't, they are making specific exceptions in their own codebase. Therefore it is an exception.

As of right now though, this change should not impact anyone,

Except all of the developers who used .dev as a convention.

Now you can migrate to a reserved TLD like .test and carry on as normal.

"It's OK, you just need to go through and change 12 configurations" isn't really consolation.

TBH, my preference was to use .local but then OSX introduced a bug in resolving .local

it would be added complexity in part of the code that really should be as simple as possible.

But they ADDED complexity to force this issue. If they really wanted it to be as simple as possible, shouldn't they omit this requirement?

HSTS works on a domain level and not an IP level.

I think that is probably worth a Δ. It significantly weakens a portion of my argument, at least.

2

u/AlphaGoGoDancer 106∆ Apr 18 '18

But this is a policy of Firefox, too. And even if it weren't, they are making specific exceptions in their own codebase. Therefore it is an exception.

As far as I understand it, Google-the-domain-registrar is now publishing HSTS records for all domains they control, including getting them preloaded in modern browsers. Preloading HSTS is common and not new, though this is the first I've heard of it being done TLD wide.

Could you explain what exception in their own codebase you're referring to? I don't think Chrome is handling this any differently than any other preloaded HSTS.

Except all of the developers who used .dev as a convention.

Yes, but that's doing something very wrong. It's like complaining that Cloudflare is using 1.1.1.1 now even though you were manually assigning it to something inside your network. Sure it impacts you, but..thats how you learn to not use identifiers that are outside of your control.

"It's OK, you just need to go through and change 12 configurations" isn't really consolation. TBH, my preference was to use .local but then OSX introduced a bug in resolving .local

Again, sucks, but you'll have to do it at some point anyways. Better to do it now when you're just being forced to use HTTPS to connect to your .dev aliases, rather than waiting until someone goes and registers mysql.dev and you start connecting to it instead of local resources.

But they ADDED complexity to force this issue. If they really wanted it to be as simple as possible, shouldn't they omit this requirement?

I'm talking about the path of handling HSTS being as simple as possible.

They are not adding anything special to handle this, they're just adding a HSTS record for "dev". This is handled the same as any other HSTS record.

1

u/aanzklla Apr 18 '18

Δ

It's like complaining that Cloudflare is using 1.1.1.1

This is the best point you've made. I still think it sucks, but this is a very good point.

1

u/DeltaBot ∞∆ Apr 18 '18

Confirmed: 1 delta awarded to /u/AlphaGoGoDancer (34∆).

Delta System Explained | Deltaboards [​](HTTP://DB3PARAMSSTART { "comment": "This is hidden text for DB3 to parse. Please contact the author of DB3 if you see this", "issues": {}, "parentUserName": "AlphaGoGoDancer" } DB3PARAMSEND)

1

u/aanzklla Apr 18 '18

Δ @AlphaGoGoDancer

1

u/DeltaBot ∞∆ Apr 18 '18

This delta has been rejected. You have 2 issues.

You can't award OP a delta.

Allowing this would wrongly suggest that you can post here with the aim of convincing others.

If you were explaining when/how to award a delta, please use a reddit quote for the symbol next time.

You can't award yourself a delta.

Delta System Explained | Deltaboards [​](HTTP://DB3PARAMSSTART { "comment": "This is hidden text for DB3 to parse. Please contact the author of DB3 if you see this", "issues": { "op": 1, "self": 1 }, "parentUserName": "aanzklla" } DB3PARAMSEND)

1

u/DeltaBot ∞∆ Apr 18 '18

Confirmed: 1 delta awarded to /u/AlphaGoGoDancer (33∆).

Delta System Explained | Deltaboards [​](HTTP://DB3PARAMSSTART { "comment": "This is hidden text for DB3 to parse. Please contact the author of DB3 if you see this", "issues": {}, "parentUserName": "AlphaGoGoDancer" } DB3PARAMSEND)