Skip to content

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

Closed
vanzin wants to merge 1 commit into
apache:branch-2.1from
vanzin:SPARK-19220_2.1
Closed

[SPARK-19220][UI] Make redirection to HTTPS apply to all URIs. (branch-2.1)#16711
vanzin wants to merge 1 commit into
apache:branch-2.1from
vanzin:SPARK-19220_2.1

Conversation

@vanzin

Copy link
Copy Markdown
Contributor

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 d3dcb63)

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.
Author: Marcelo Vanzin <vanzin@cloudera.com>
Closesapache#16582 from vanzin/SPARK-19220.
(cherry picked from commit d3dcb63)
@SparkQA

Copy link
Copy Markdown

Test build #72031 has finished for PR 16711 at commit b3959ed.

  • This patch fails Spark unit tests.
  • This patch merges cleanly.
  • This patch adds no public classes.

@vanzin

Copy link
Copy Markdown
ContributorAuthor

retest this please

@SparkQA

Copy link
Copy Markdown

Test build #72049 has finished for PR 16711 at commit b3959ed.

  • This patch passes all tests.
  • This patch merges cleanly.
  • This patch adds no public classes.

@vanzin

Copy link
Copy Markdown
ContributorAuthor

Merging to 2.1 (and 2.0 if no conflicts).

asfgit pushed a commit that referenced this pull request Jan 27, 2017
…h-2.1)
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 d3dcb63)
Author: Marcelo Vanzin <vanzin@cloudera.com>
Closes#16711 from vanzin/SPARK-19220_2.1.
@vanzin

Copy link
Copy Markdown
ContributorAuthor

Didn't merge to 2.0.

@vanzinvanzin closed this Jan 27, 2017
@vanzin
vanzin deleted the SPARK-19220_2.1 branch January 27, 2017 00:57
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

@vanzin@SparkQA