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

Adds system check for forced SSL connection #13193

Merged
merged 4 commits into from Jul 23, 2018
Merged

Adds system check for forced SSL connection #13193

merged 4 commits into from Jul 23, 2018

Conversation

sgiehl
Copy link
Member

@sgiehl sgiehl commented Jul 22, 2018

Maybe the message shown if force_ssl is disabled can be further improved...

fixes #7279

@sgiehl sgiehl added not-in-changelog For issues or pull requests that should not be included in our release changelog on matomo.org. Needs Review PRs that need a code review labels Jul 22, 2018
@sgiehl sgiehl added this to the 3.6.0 milestone Jul 22, 2018
lang/en.json Outdated
@@ -211,6 +211,8 @@
"FileIntegrityWarningReuploadBis": "Try to reupload all the Matomo files in BINARY mode.",
"First": "First",
"Flatten": "Flatten",
"ForcedSSL": "Forced SSL Connection",
"ForceSSLRecommended": "We recommend using Matomo over secure SSL connections only. To disallow unsecure access over http add `force_ssl = 1` to `General` section in Matomo config.",
Copy link
Member

Choose a reason for hiding this comment

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

Think force_ssl = 1 and General don't need to be translated correct? And are the backticks supposed to be there or should there be <code> elements (inserted via placeholder)?

Copy link
Member

Choose a reason for hiding this comment

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

Would change "disallow unsecure" to "prevent insecure", otherwise sounds good to me.

Copy link
Member Author

Choose a reason for hiding this comment

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

changed.


$comment = $this->translator->translate('General_ForceSSLRecommended');

return array(DiagnosticResult::singleResult($label, DiagnosticResult::STATUS_WARNING, $comment));
Copy link
Member

Choose a reason for hiding this comment

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

Also, should this check run if matomo isn't currently on https? If it isn't and a user adds force_ssl = 1, they may be confused why it doesn't work.

Copy link
Contributor

Choose a reason for hiding this comment

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

It should be checked and warned about! But with another text indicating the fact that a certificate need to be deployed first (with a link to eff's org maybe?).

Copy link
Member Author

Choose a reason for hiding this comment

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

I've added an additional sentence in that case:

Attention: Doing this without having set up an SSL certificate for using HTTPS will break Matomo.

@diosmosis diosmosis merged commit 8494445 into 3.x-dev Jul 23, 2018
@diosmosis diosmosis deleted the forcesslcheck branch July 23, 2018 22:08
InfinityVoid pushed a commit to InfinityVoid/matomo that referenced this pull request Oct 11, 2018
* Adds system check for forced SSL connection

* review adjustments

* update screenshots

* update screenshot
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Needs Review PRs that need a code review not-in-changelog For issues or pull requests that should not be included in our release changelog on matomo.org.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

New system check to Warn users if force_ssl is not yet enabled
3 participants