summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStef Walter <stefw@redhat.com>2016-02-01 13:42:27 +0100
committerStef Walter <stefw@redhat.com>2016-02-01 13:51:07 +0100
commitec775384752d780477cd1b74f0c37c8d2c7f6c08 (patch)
tree8696b584856de5dd3822b8ec1ea58553d79d7a1d
parentec48608a3fe1a1ea1ea54202294b622e1cc11a28 (diff)
Update with Content-Security-Policy security stuff
-rw-r--r--content/cockpit/cockpit-plugin-tutorial.md5
-rw-r--r--content/cockpit/dbus-basics.md2
-rw-r--r--content/cockpit/rest-api-plugin.md2
-rw-r--r--content/files/docker-info.tgzbin852 -> 904 bytes
-rw-r--r--content/files/pinger.tgzbin863 -> 934 bytes
-rw-r--r--content/files/zoner.tgzbin842 -> 915 bytes
6 files changed, 6 insertions, 3 deletions
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
--- a/content/files/docker-info.tgz
+++ b/content/files/docker-info.tgz
Binary files differ
diff --git a/content/files/pinger.tgz b/content/files/pinger.tgz
index 98d9741..79be4e4 100644
--- a/content/files/pinger.tgz
+++ b/content/files/pinger.tgz
Binary files differ
diff --git a/content/files/zoner.tgz b/content/files/zoner.tgz
index d5dcdeb..a3e8a8c 100644
--- a/content/files/zoner.tgz
+++ b/content/files/zoner.tgz
Binary files differ