Skip to content

Commit

Permalink
kubernetes: The merge removed Content-Security-Policy
Browse files Browse the repository at this point in the history
The merge of the kubernetes component broke the Content-Security-Policy
settings for the registry. Lets start to enforce that again.

Closes #4061
Reviewed-by: Dominik Perpeet <dperpeet@redhat.com>
  • Loading branch information
stefwalter authored and dperpeet committed Mar 22, 2016
1 parent 2f5044d commit 9165773
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 7 deletions.
2 changes: 1 addition & 1 deletion pkg/kubernetes/index.html
Expand Up @@ -17,7 +17,7 @@
You should have received a copy of the GNU Lesser General Public License
along with Cockpit; If not, see <http://www.gnu.org/licenses/>.
-->
<html lang="en" class="no-js">
<html lang="en" ng-csp class="no-js">
<head>
<meta charset="utf-8">
<title translatable="yes">Kubernetes Cluster</title>
Expand Down
4 changes: 1 addition & 3 deletions pkg/kubernetes/manifest.json
Expand Up @@ -4,7 +4,5 @@
"label": "Cluster",
"order": 1
}
},

"content-security-policy": "default-src 'self' 'unsafe-inline' 'unsafe-eval'"
}
}
7 changes: 4 additions & 3 deletions pkg/kubernetes/override.json
@@ -1,10 +1,11 @@
{
"comment": "Local debugging overrides to the manifest",
"content-security-policy": "style-src 'self' 'unsafe-inline' 'unsafe-eval'",

"dashboard": {
"registry": {
"label": "Image Registry",
"order": 3
}
},

"content-security-policy": "default-src 'self' 'unsafe-inline' 'unsafe-eval'"
}
}

0 comments on commit 9165773

Please sign in to comment.