Skip to content
Closed
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions conf/zeppelin-site.xml.template
Original file line number Diff line number Diff line change
Expand Up @@ -485,6 +485,14 @@
</property>
-->

<!--
<property>
<name>zeppelin.server.send.jetty.name</name>
<value>true</value>
Comment thread
javierivanov marked this conversation as resolved.
Outdated
<description>If set to true, will not show the Jetty version to prevent Fingerprinting</description>
</property>
-->

<!--
<property>
<name>zeppelin.server.jetty.request.header.size</name>
Expand Down
13 changes: 12 additions & 1 deletion docs/setup/security/http_security_headers.md
Original file line number Diff line number Diff line change
Expand Up @@ -121,4 +121,15 @@ The following property needs to be updated in the zeppelin-site.xml in order to
</property>
```

The value can be any "String".
The value can be any "String".

Also, it can be removed the from response headers and from 300/400/500 HTTP response pages.


```xml
<property>
<name>zeppelin.server.send.jetty.name</name>
<value>false</value>
<description>If set to true, will not show the Jetty version to prevent Fingerprinting</description>
</property>
```
Original file line number Diff line number Diff line change
Expand Up @@ -618,6 +618,10 @@ public String getJettyName() {
return getString(ConfVars.ZEPPELIN_SERVER_JETTY_NAME);
}

public boolean sendJettyName() {
return getBoolean(ConfVars.ZEPPELIN_SERVER_SEND_JETTY_NAME);
}

public Integer getJettyRequestHeaderSize() {
return getInt(ConfVars.ZEPPELIN_SERVER_JETTY_REQUEST_HEADER_SIZE);
}
Expand Down Expand Up @@ -887,6 +891,7 @@ public enum ConfVars {
ZEPPELIN_SERVER_DEFAULT_DIR_ALLOWED("zeppelin.server.default.dir.allowed", false),
ZEPPELIN_SERVER_XFRAME_OPTIONS("zeppelin.server.xframe.options", "SAMEORIGIN"),
ZEPPELIN_SERVER_JETTY_NAME("zeppelin.server.jetty.name", null),
ZEPPELIN_SERVER_SEND_JETTY_NAME("zeppelin.server.send.jetty.name", true),
ZEPPELIN_SERVER_JETTY_THREAD_POOL_MAX("zeppelin.server.jetty.thread.pool.max", 400),
ZEPPELIN_SERVER_JETTY_THREAD_POOL_MIN("zeppelin.server.jetty.thread.pool.min", 8),
ZEPPELIN_SERVER_JETTY_THREAD_POOL_TIMEOUT("zeppelin.server.jetty.thread.pool.timeout", 30),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -297,13 +297,13 @@ private static void initServerConnector(Server server, int port, int sslPort) {
ServerConnector connector;
HttpConfiguration httpConfig = new HttpConfiguration();
httpConfig.addCustomizer(new ForwardedRequestCustomizer());
httpConfig.setSendServerVersion(conf.sendJettyName());
if (conf.useSsl()) {
LOG.debug("Enabling SSL for Zeppelin Server on port " + sslPort);
httpConfig.setSecureScheme("https");
httpConfig.setSecurePort(sslPort);
httpConfig.setOutputBufferSize(32768);
httpConfig.setResponseHeaderSize(8192);
httpConfig.setSendServerVersion(true);

HttpConfiguration httpsConfig = new HttpConfiguration(httpConfig);
SecureRequestCustomizer src = new SecureRequestCustomizer();
Expand Down