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

Remove "Https Redirect" global setting? #17

Open
abias opened this issue May 7, 2015 · 2 comments
Open

Remove "Https Redirect" global setting? #17

abias opened this issue May 7, 2015 · 2 comments

Comments

@abias
Copy link
Contributor

abias commented May 7, 2015

Hi,

may I ask what's the purpose of the "Https Redirect" global setting of this module?

IMHO it's obsolete for websites running completely on HTTPS with a https:// URL set in $CFG->wwwroot.

Thanks,
Alex

@tjwelde
Copy link
Collaborator

tjwelde commented May 22, 2015

I think more and more people are switching to HTTPS nowadays.
Nevertheless, if you want to provide the etherpadlite server only over https (so that no one can intercept the connection), with this setting Moodle also switches to HTTPS, so that the user won't get a "mixed mode" warning and feels secure.

@abias
Copy link
Contributor Author

abias commented May 24, 2015

Hi Timo,

now I understand your intention. We should avoid mixed content at all means. However, I think you should think about the following things:

  • Including HTTPS content in a HTTP website is no problem. You are only including more secure content into a less secure website, browsers don't care about that (please correct me if I'm wrong). So your example with a HTTPS Etherpad server and a HTTP Moodle is no technical problem.
  • Including HTTP content in a HTTPS website is a problem. If you are including a HTTP Etherpad server into a HTTPS Moodle, users will get mixed content warnings. This could be checked in your plugin and could give a warning to the admin, but that's not what your code is about.
  • Switching a HTTP Moodle to HTTPS is not as easy as adding a "s" to the URL's protocol part. You also have to make sure that the Moodle webserver responds on 443 and has a valid certificate installed. Your code does not deal with these questions.

Summing up, I would like to propose that you remove the code for $config->ssl completely and replace it with a clear and prominent explanation message on the settings page to notifiy the admin that he has to make sure that the protocols of Moodle and Etherpad match.

Thanks,
Alex

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

No branches or pull requests

2 participants