summaryrefslogtreecommitdiffstats
path: root/cholerab
diff options
context:
space:
mode:
authormakefu <github@syntax-fehler.de>2011-09-13 21:07:54 +0200
committermakefu <github@syntax-fehler.de>2011-09-13 21:07:54 +0200
commitbf985820deacbe49d7328b51c9df8aa02a57b03e (patch)
tree85d86c7fd218d1b52775bc5718e88672bc0ec44e /cholerab
parent638e731abd026cfde963ee600b2b5c5079e8eda6 (diff)
parenta9ee98ec26277014fd0f55ff414a71ece5c749aa (diff)
Merge remote-tracking branch 'origin/punani_files'
Diffstat (limited to 'cholerab')
-rw-r--r--cholerab/reaktor/priviliged_functions24
1 files changed, 24 insertions, 0 deletions
diff --git a/cholerab/reaktor/priviliged_functions b/cholerab/reaktor/priviliged_functions
new file mode 100644
index 00000000..a673267e
--- /dev/null
+++ b/cholerab/reaktor/priviliged_functions
@@ -0,0 +1,24 @@
+Use Case 1: Request update on Host
+=================================
+
+< user> bot: update
+< bot> /whois user
+< bot> /msg user [CHALLENGE]
+< user> /msg bot [CHALLENGE-RESPONSE]
+< bot> updating...
+< bot> now on rev XXXXX
+
+Command Flow
+----------------
+The bot has a locally stored list of [trusted] hosts along with their public
+key, preferably from the tinc/retiolum directory.
+
+The bot encrypts a 1K Byte long message with the public key of the host
+retrieved by the /whois command.
+
+This challenge is sent to the user requesting the command via private message.
+The user then decrpyts the message with its own private key and sends the
+decrpyted message to the bot.
+
+The bot then executes the requested command if the challenge is answered
+correctly