Website serves some resources under HTTP instead of HTTPS

Issue #3703 wontfix
Jeffrey F created an issue

Visiting https://docs.sqlalchemy.org/ (notice the https) in Firefox version 46.0 on Ubuntu 16.04 causes incorrect rendering because some resources are sent over an insecure connection (and Firefox blocks them).

A brief look in the developer tools reveals the following non-HTTPS display resources:

and active resources:

These resources should be served over HTTPS.

Comments (14)

  1. Mike Bayer repo owner

    I'd rather not have to deal with that, as this is a read-only website. Isn't there some meta tag I can add to the main templates that convince firefox to please allow non-https resources? readthedocs and their constant backwards-incompatible changes and breakages are giving me more work than the site saves.

  2. Mike Bayer repo owner

    im confused. readthedocs is still serving plain http and no redirect to https occurs. the https link you give above already serves up a non-trusted certificate in any case (it's for readthedocs.org, not docs.sqlalchemy.org). Why are you even locating that link ?

  3. Jeffrey F reporter

    Hm I don't know, but I doubt it. That would basically undo the browser-side protection entirely.

    If this is more of a RTD bug, I can report it there.

  4. Jeffrey F reporter

    I prefer to link to HTTPS sites whenever possible, and I have some links to SQLAlchemy documentation in my own project's documentation.

  5. Mike Bayer repo owner

    OK but SQLAlchemy doesn't have real https documentation available, at least without a certificate warning. We'd have to move our docs totally off readthedocs and I'd just host docs.sqlalchemy.org myself with a letsencrypt cert (fortunately I am hosting some of those now so I have infrastructure in place to support their auto-renewal process).

    The best RTD can do is serve from your own site and use proxying http://docs.readthedocs.io/en/latest/alternate_domains.html#cname-ssl. which means I'd rather just host myself entirely.

  6. Jeffrey F reporter

    I don't really know how to fix this sort of thing, so it's really up to you, I guess. I was just letting you know :)

  7. Mike Bayer repo owner

    are there specific security concerns for browsing an http website in pure read only these days? attackers could view which part of SQLAlchemy you're working with....some kind of cross-scripting issue?

  8. Jeffrey F reporter

    From the Mozilla Developer Network article on Mixed content:

    In the mixed active content case, a man-in-the-middle attacker can intercept the request for the HTTP content. The attacker can also rewrite the response to include malicious JavaScript code. Malicious active content can steal the user's credentials, acquire sensitive data about the user, or attempt to install malware on the user's system (by leveraging vulnerabilities in the browser or its plugins, for example).

  9. Mike Bayer repo owner

    oh i see...because the javascript "secure sandbox" is essentially permamently broken, basically all websites everywhere should be https. Makes sense. But kind of renders readthedocs useless.

  10. Jeffrey F reporter

    Is there a way of including them directly with the SQLAlchemy docs? Or with a separate Sphinx theme?

  11. Mike Bayer repo owner

    unfortunately HTTPS documentation is not supported right now. SQLAlchemy would need to move its hosting off of readthedocs, since RTD's only solution here is to host via proxy in any case.

  12. Log in to comment