summaryrefslogtreecommitdiffstats
path: root/cholerab/Reaktor/priviliged_functions
diff options
context:
space:
mode:
authortv <tv@xso>2011-09-06 23:53:01 +0200
committertv <tv@xso>2011-09-06 23:53:01 +0200
commit23cca02b550a80e91a76ddf7a3f2195859473c71 (patch)
tree189500a91f8870b8fd7391a2720aca385d6ab2c5 /cholerab/Reaktor/priviliged_functions
parentab641850349233b20ebb343201701f198239b3aa (diff)
It's Reaktor, not reaktor^_^
Diffstat (limited to 'cholerab/Reaktor/priviliged_functions')
-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