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

use https by default if no protocol is given. #1975

Merged
merged 1 commit into from
Nov 2, 2016

Conversation

schiessle
Copy link
Member

@schiessle schiessle commented Nov 2, 2016

Until now we always used a http connection as fall-back if https falied which is not perfect from a security point of view.

This pr changes the behaviour to always use https. Only excption: if http is explicitly given (user@http://server.org). Existing shares continue to work because we always store the protocol as part of the server url in the share table.

cc @LukasReschke we already discussed this in the past

…ction if it is explicitely given

Signed-off-by: Bjoern Schiessle <bjoern@schiessle.org>
@schiessle schiessle added this to the Nextcloud 11.0 milestone Nov 2, 2016
@mention-bot
Copy link

@schiessle, thanks for your PR! By analyzing the history of the files in this pull request, we identified @LukasReschke, @PVince81 and @nickvergessen to be potential reviewers.

@nickvergessen
Copy link
Member

I guess it's okay, although it will trap some users in the beginning.

👍

@rullzer
Copy link
Member

rullzer commented Nov 2, 2016

LGTM.

But we should really look into #1667 since the messages here are not really understandable for the avarage user.

But good security hardening!

@rullzer rullzer merged commit acf01b7 into master Nov 2, 2016
@rullzer rullzer deleted the federated-sharing-always-https-by-default branch November 2, 2016 11:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants