From ec775384752d780477cd1b74f0c37c8d2c7f6c08 Mon Sep 17 00:00:00 2001 From: Stef Walter Date: Mon, 1 Feb 2016 13:42:27 +0100 Subject: Update with Content-Security-Policy security stuff --- content/cockpit/cockpit-plugin-tutorial.md | 5 +++-- content/cockpit/dbus-basics.md | 2 +- content/cockpit/rest-api-plugin.md | 2 ++ content/files/docker-info.tgz | Bin 852 -> 904 bytes content/files/pinger.tgz | Bin 863 -> 934 bytes content/files/zoner.tgz | Bin 842 -> 915 bytes 6 files changed, 6 insertions(+), 3 deletions(-) (limited to 'content') diff --git a/content/cockpit/cockpit-plugin-tutorial.md b/content/cockpit/cockpit-plugin-tutorial.md index 5c10d80..a311825 100644 --- a/content/cockpit/cockpit-plugin-tutorial.md +++ b/content/cockpit/cockpit-plugin-tutorial.md @@ -4,7 +4,7 @@ Category: Cockpit, Linux Tags: cockpit, linux Slug: creating-plugins-for-the-cockpit-user-interface -*Note: This post has been updated for changes in Cockpit 0.41 and later.* +*Note: This post has been updated for changes in Cockpit 0.90 and later.* [Cockpit is a user interface for servers](http://cockpit-project.org). And you can add stuff to that user interface. Cockpit is internally built of various components. Each component is HTML, with Javascript logic that makes it work, and CSS to make it pretty. @@ -30,7 +30,8 @@ Components, and more specifically their HTML and Javascript files, live in packa "label": "Pinger", "path": "ping.html" } - } + }, + "content-security-policy": "default-src 'self' 'unsafe-inline' 'unsafe-eval'" } The manifest above has a `"tools"` subsection. Each tool is listed in the *Tools* menu by Cockpit. The `"path"` is the name of the HTML file that implements the tool, and the `"label"` is the text to show in the *Tools* menu. diff --git a/content/cockpit/dbus-basics.md b/content/cockpit/dbus-basics.md index 9aa7479..e5599a7 100644 --- a/content/cockpit/dbus-basics.md +++ b/content/cockpit/dbus-basics.md @@ -4,7 +4,7 @@ Category: Cockpit, Linux Tags: cockpit, linux Slug: using-dbus-from-javascript-in-cockpit -*Note: This post has been updated for changes in Cockpit 0.41 and later.* +*Note: This post has been updated for changes in Cockpit 0.90 and later.* [Cockpit is a user interface for servers](http://cockpit-project.org). As we covered in the [last tutorial](http://stef.thewalter.net/creating-plugins-for-the-cockpit-user-interface.html) you can add user interface component to Cockpit, and build your own parts of the Server UI. diff --git a/content/cockpit/rest-api-plugin.md b/content/cockpit/rest-api-plugin.md index 63256fc..07827df 100644 --- a/content/cockpit/rest-api-plugin.md +++ b/content/cockpit/rest-api-plugin.md @@ -4,6 +4,8 @@ Category: Cockpit, Linux Tags: cockpit, linux Slug: making-rest-calls-from-javascript-in-cockpit +*Note: This post has been updated for changes in Cockpit 0.90 and later.* + [Cockpit is a user interface for servers](http://cockpit-project.org). In [earlier](http://stef.thewalter.net/creating-plugins-for-the-cockpit-user-interface.html) [tutorials](http://stef.thewalter.net/using-dbus-from-javascript-in-cockpit.html) there's a guide on how to add components to Cockpit. Not all of the [system APIs use DBus](http://stef.thewalter.net/d-bus-is-powerful-ipc.html). So sometimes we find ourselves in a situation where we have to use REST (which is often just treated as another word for HTTP) to talk to certain parts of the system. For example [Docker has a REST API](https://docs.docker.com/reference/api/docker_remote_api/). diff --git a/content/files/docker-info.tgz b/content/files/docker-info.tgz index d2ea736..7a007c6 100644 Binary files a/content/files/docker-info.tgz and b/content/files/docker-info.tgz differ diff --git a/content/files/pinger.tgz b/content/files/pinger.tgz index 98d9741..79be4e4 100644 Binary files a/content/files/pinger.tgz and b/content/files/pinger.tgz differ diff --git a/content/files/zoner.tgz b/content/files/zoner.tgz index d5dcdeb..a3e8a8c 100644 Binary files a/content/files/zoner.tgz and b/content/files/zoner.tgz differ -- cgit v1.2.3