GitHub user vanzin opened a pull request:

    https://github.com/apache/spark/pull/16717

    [SPARK-19220][UI] Make redirection to HTTPS apply to all URIs. (branch-2.0)

    The redirect handler was installed only for the root of the server;
    any other context ended up being served directly through the HTTP
    port. Since every sub page (e.g. application UIs in the history
    server) is a separate servlet context, this meant that everything
    but the root was accessible via HTTP still.
    
    The change adds separate names to each connector, and binds contexts
    to specific connectors so that content is only served through the
    HTTPS connector when it's enabled. In that case, the only thing that
    binds to the HTTP connector is the redirect handler.
    
    Tested with new unit tests and by checking a live history server.
    
    (cherry picked from commit 59502bbcf6e64e5b5e3dda080441054afaf58c53)

You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/vanzin/spark SPARK-19220_2.0

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/spark/pull/16717.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

    This closes #16717
    
----
commit ddd7727fc89b2db3721b712204243718cbbcfe92
Author: Marcelo Vanzin <van...@cloudera.com>
Date:   2017-01-27T00:53:28Z

    [SPARK-19220][UI] Make redirection to HTTPS apply to all URIs. (branch-2.0)
    
    The redirect handler was installed only for the root of the server;
    any other context ended up being served directly through the HTTP
    port. Since every sub page (e.g. application UIs in the history
    server) is a separate servlet context, this meant that everything
    but the root was accessible via HTTP still.
    
    The change adds separate names to each connector, and binds contexts
    to specific connectors so that content is only served through the
    HTTPS connector when it's enabled. In that case, the only thing that
    binds to the HTTP connector is the redirect handler.
    
    Tested with new unit tests and by checking a live history server.
    
    (cherry picked from commit 59502bbcf6e64e5b5e3dda080441054afaf58c53)

----


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastruct...@apache.org or file a JIRA ticket
with INFRA.
---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org
For additional commands, e-mail: reviews-h...@spark.apache.org

Reply via email to