/mandos/trunk

To get this branch, use:
bzr branch http://bzr.recompile.se/loggerhead/mandos/trunk

« back to all changes in this revision

Viewing changes to TODO

  • Committer: Teddy Hogeborn
  • Date: 2008-11-09 06:40:29 UTC
  • mto: (24.1.113 mandos)
  • mto: This revision was merged to the branch mainline in revision 238.
  • Revision ID: teddy@fukt.bsnet.se-20081109064029-df71jpoce308cq3v
First steps of a D-Bus interface to the server.

* mandos: Also import "dbus.service".
  (Client): Inherit from "dbus.service.Object", which is a new-style
            class, so inheriting from "object" is no longer necessary.
  (Client.interface): New temporary variable which only exists during
                     class definition.

  (Client.getName, Client.getFingerprint): New D-Bus getter methods.
  (Client.setSecret): New D-Bus setter method.
  (Client._set_timeout): Emit D-Bus signal "TimeoutChanged".
  (Client.getTimeout): New D-Bus getter method.
  (Client.TimeoutChanged): New D-Bus signal.
  (Client._set_interval): Emit D-Bus signal "IntervalChanged".
  (Client.getInterval): New D-Bus getter method.
  (Client.intervalChanged): New D-Bus signal.
  (Client.__init__): Also call "dbus.service.Object.__init__".
  (Client.started): New boolean attribute.
  (Client.start, Client.stop): Update "self.started", and emit D-Bus
                               signal "StateChanged".
  (Client.StateChanged): New D-Bus signal.
  (Client.stop): Use "self.started" instead of misusing "self.secret".
                 Also simplify code by using "getattr" instead of
                 "hasattr".
  (Client.checker_callback): Emit D-Bus signal "CheckerCompleted".
  (Client.CheckerCompleted): New D-Bus signal.
  (Client.bumpTimeout): D-Bus method name for "bump_timeout".
  (Client.start_checker): Emit D-Bus signal "CheckerStarted".
  (Client.CheckerStarted): New D-Bus signal.
  (Client.checkerIsRunning): New D-Bus method.
  (Client.StopChecker): D-Bus method name for "stop_checker".
  (Client.still_valid): First check "self.started".
  (Client.stillValid): D-Bus method name for "still_valid".

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
-*- org -*-
2
2
 
3
3
* mandos-client
4
 
** TODO [#A] Clean up /tmp directory and take down interface on signal    :test:
5
 
** TODO [#B] use scandir(3) instead of readdir(3)
6
 
** TODO [#B] Prefix all debug output with argv[0]
7
 
** TODO [#B] Retry a server which has a non-definite reply.
8
 
*** A closed connection during the TLS handshake
9
 
*** A TCP timeout
10
 
 
11
 
* splashy
12
 
** TODO [#A] Re-raise signal received when exiting due to handled signal  :test:
13
 
** TODO [#B] use scandir(3) instead of readdir(3)
14
 
** TODO [#B] Prefix all debug output with argv[0]
15
 
 
16
 
* usplash
17
 
** TODO [#A] Re-raise signal received when exiting due to handled signal.
18
 
** TODO [#B] use scandir(3) instead of readdir(3)
19
 
** TODO [#B] Prefix all debug output with argv[0]
20
 
 
21
 
* password-prompt
22
 
** TODO [#B] Prefix all debug output with argv[0]
23
 
 
24
 
* plugin-runner
25
 
** TODO [#B] use scandir(3) instead of readdir(3)
26
 
** TODO [#C] use same file name rules as run-parts(8)
 
4
** TODO [#B] Temporarily lower kernel log level
 
5
   for less printouts during sucessfull boot.
 
6
   klogctl(6, NULL, 0); klogctl(7, NULL, 0);
 
7
** TODO [#C] IPv4 support
27
8
 
28
9
* mandos (server)
29
 
** TODO [#B] Log level                          :BUGS:
 
10
** TODO [#B] Log level                          :bugs:
30
11
** TODO /etc/mandos/clients.d/*.conf
31
12
   Watch this directory and add/remove/update clients?
32
13
** TODO config for TXT record
33
 
** TODO [#B] Run-time communication with server :BUGS:
 
14
** TODO [#B] Run-time communication with server :bugs:
34
15
   Probably using D-Bus
 
16
   See also [[*Mandos-tools]]
35
17
*** Client class
 
18
    + getHostname
 
19
    + getChecker
 
20
    + setChecker
36
21
*** Main server
37
 
    + SetLogLevel
 
22
    + Clients
 
23
      out_signature="ao"
 
24
      Does this have to be "getClients" so as not to collide with the
 
25
      interface name?
 
26
    + setLogLevel
38
27
      syslogger.setLevel(logging.WARNING)
39
 
    + [[http://log.ometer.com/2007-05.html][Best D-Bus practices]]
40
 
** TODO Implement --foreground                  :BUGS:
 
28
    + quit
 
29
** TODO Implement --foreground                  :bugs:
41
30
   [[info:standards:Option%20Table][Table of Long Options]]
42
31
** TODO Implement --socket
43
32
   [[info:standards:Option%20Table][Table of Long Options]]
44
 
** TODO Date+time on console log messages       :BUGS:
 
33
** TODO Date+time on console log messages       :bugs:
45
34
   Is this the default?
46
 
** TODO Split IPv6_TCPServer into a generic and Mandos-specific class
47
 
** TODO move handle_ipc out of IPv6_TCPServer
48
 
** TODO DBusServiceObjectUsingSuper
49
 
** Global enable/disable flag
50
 
** By-client countdown on secrets given
51
 
 
52
 
* mandos.xml
53
 
** [[file:mandos.xml::XXX][Document D-Bus interface]]
54
 
 
55
 
* Provide and install /etc/dbus-1/system.d/mandos.conf
56
 
 
57
 
* mandos-ctl
58
 
*** Handle "no D-Bus server" and/or "no Mandos server found" better
59
 
*** [#B] --dump option
60
 
 
61
 
* mandos-name
62
 
** D-Bus mail loop w/ signal receiver
63
 
** Urwid/Newt client data displayer
64
 
*** Urwid scaffolding
65
 
*** Client Widgets
66
 
*** Properties popup
 
35
** TODO delete hook when clients fall out by timeout
 
36
 
 
37
* Mandos-tools/utilities
 
38
  All of this probably using D-Bus
 
39
** TODO List clients
 
40
** TODO Disable client
 
41
** TODO Enable client
 
42
** TODO Reset timer
67
43
 
68
44
* mandos-keygen
69
 
** TODO Loop until passwords match when run interactively
70
45
** TODO "--secfile" option
71
46
   Using the "secfile" option instead of "secret"
72
47
** TODO [#B] "--test" option
73
48
   For testing decryption before rebooting.
74
49
 
75
 
* Package
 
50
* [#A] Package
76
51
** /usr/share/initramfs-tools/hooks/mandos
77
 
*** TODO [#C] use same file name rules as run-parts(8)
78
 
*** TODO [#C] Do not install in initrd.img if configured not to.
79
 
    Use "/etc/initramfs-tools/hooksconf.d/mandos"?
80
 
** TODO [#C] /etc/bash_completion.d/mandos
 
52
*** TODO Do not install in initrd.img if configured not to.
 
53
    Use "/etc/initramfs-tools/conf.d/mandos"?  Definitely a debconf
 
54
    question.
 
55
** TODO /etc/bash_completion.d/mandos
81
56
   From XML sources directly?
82
57
 
83
58