www-infrastructure-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Bryan Pendleton (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (INFRA-11746) Change Jenkins Content Security Policy
Date Thu, 21 Jul 2016 13:47:20 GMT

    [ https://issues.apache.org/jira/browse/INFRA-11746?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15387712#comment-15387712

Bryan Pendleton commented on INFRA-11746:

This problem seems to be re-occurring -- has the configuration change been altered?

The Derby docs on the Jenkins site are displaying with blank frames,and the browser
console says:

    Refused to frame 'https://builds.apache.org/job/Derby-docs/lastBuild/artifact/trunk/out/ref/toc.html'
    because it violates the following Content Security Policy directive: "default-src 'none'".

    Note that 'frame-src' was not explicitly set, so 'default-src' is used as a fallback.

Can somebody please have a look?

> Change Jenkins Content Security Policy
> --------------------------------------
>                 Key: INFRA-11746
>                 URL: https://issues.apache.org/jira/browse/INFRA-11746
>             Project: Infrastructure
>          Issue Type: Improvement
>          Components: Jenkins
>            Reporter: Uwe Schindler
>            Assignee: Chris Lambertus
> Jenkins changed the default Content Security Policy when delivering the web pages to
no longer allow foreign domains in frames. Unfortunately this prevents Javadocs or similar
documentation from displaying correctly.
> The contents of stuff is under full control by the commiters of the projects, there is
no security risk to disable this setting as described here: https://wiki.jenkins-ci.org/display/JENKINS/Configuring+Content+Security+Policy#ConfiguringContentSecurityPolicy-Considerations
> We should change this for ASF Jenkins instance to the state of the previous Jenkins LTS
> Several projects are affected by this:
> - Derby
> - Lucene
> See also mail on builds@ao: <https://mail-archives.apache.org/mod_mbox/www-builds/201604.mbox/%3CCAPbPdOYpULhAhgwSTc4Lvt%3DrJp9dvcNv5e%3D1%2BhS86WRHpZHR-Q%40mail.gmail.com%3E>
> The following would restore previous behaviour:
> The CSP header sent by Jenkins can be modified by setting the system property hudson.model.DirectoryBrowserSupport.CSP:
> If its value is the empty string, e.g. java -Dhudson.model.DirectoryBrowserSupport.CSP=
-jar jenkins.war then the header will not be sent at all.

This message was sent by Atlassian JIRA

View raw message