diff options
author | Silvio Rhatto <rhatto@riseup.net> | 2014-02-25 15:58:05 -0300 |
---|---|---|
committer | Silvio Rhatto <rhatto@riseup.net> | 2014-02-25 15:58:05 -0300 |
commit | 91bb84fd086baaaa60454880e52075ae1c8e0dbe (patch) | |
tree | 2eb5f34c6fe6afa76dbcedbef98318ee875a7764 | |
parent | e33b8aa1d3a8377abccb738b6af163b1881bb708 (diff) | |
download | keyringer-91bb84fd086baaaa60454880e52075ae1c8e0dbe.tar.gz keyringer-91bb84fd086baaaa60454880e52075ae1c8e0dbe.tar.bz2 |
Canary skeleton
-rwxr-xr-x | lib/keyringer/actions/canary | 46 |
1 files changed, 46 insertions, 0 deletions
diff --git a/lib/keyringer/actions/canary b/lib/keyringer/actions/canary new file mode 100755 index 0000000..b00926d --- /dev/null +++ b/lib/keyringer/actions/canary @@ -0,0 +1,46 @@ +#!/bin/bash +# +# Keyringer's canary warrant implementation. +# +# Inspired by: +# +# https://en.wikipedia.org/wiki/Warrant_canary +# http://www.rsync.net/resources/notices/canary.txt +# +# A canary is: +# +# - Generated using any combination of public available RSS +# feeds configured by user preferences. +# +# - Configured to generate new information once a day. +# If you run it more than that interval, no canary will +# be updated. +# +# A canary is stored: +# +# - In a folder called "canaries" followed by the user ID. +# +# - With an addiditonal timestamp stored plain+signed so it +# can be easily checked. +# +# - Can optionally be uploaded (encrypted or plain+signed) to a +# remote url via scp. +# +# - Can optinally be included in another git repository +# (encrypted or plain+signed), commited and pushed +# to a remote repository (ikiwiki instance, etc). +# +# How to run: +# +# - First, "keyringer <keyring> preferences edit # basic canary preferences". +# +# - Then, add the following at your ~/.profile or wherever you want your canary +# be called from: "keyringer <keyring> canary". + +# Load functions +LIB="`dirname $0`/../functions" +source "$LIB" || exit 1 + +# TODO: code! +echo "Not implemented :(" +exit 1 |