/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: 2009-12-25 23:13:47 UTC
  • Revision ID: teddy@fukt.bsnet.se-20091225231347-gg9u9ru0wj0f24hh
More consistent terminology: Clients are no longer "invalid" - they
are "disabled".  All code and documentation changed to reflect this.

D=Bus API change: The "properties" argument was removed from the
"ClientAdded" signal on interface "se.bsnet.fukt.Mandos".  All code in
both "mandos" and "mandos-monitor" changed to reflect this.

* mandos: Replaced "with closing(F)" with simply "with F" in all
          places where F is a file object.
  (Client.still_valid): Removed.  All callers changed to look at
                        "Client.enabled" instead.
  (dbus_service_property): Check for unsupported signatures with the
                           "byte_arrays" option.
  (DBusObjectWithProperties.Set): - '' -
  (ClientHandler.handle): Use the reverse pipe to receive the
                          "Client.enabled" attribute instead of the
                          now-removed "Client.still_valid()" method.
  (ForkingMixInWithPipe): Renamed to "ForkingMixInWithPipes" (all
                          users changed).  Now also create a reverse
                          pipe for sending data to the child process.
  (ForkingMixInWithPipes.add_pipe): Now takes two pipe fd's as
                                    arguments.  All callers changed.
  (IPv6_TCPServer.handle_ipc): Take an additional "reply_fd" argument
                               (all callers changed).  Close the reply
                               pipe when the child data pipe is
                               closed.  New "GETATTR" IPC method; will
                               pickle client attribute and send it
                               over the reply pipe FD.
  (MandosDBusService.ClientAdded): Removed "properties" argument.  All
                                   emitters changed.
* mandos-clients.conf.xml (DESCRIPTION, OPTIONS): Use
                                                  "enabled/disabled"
                                                  terminology.
* mandos-ctl: Option "--is-valid" renamed to "--is-enabled".
* mandos-monitor: Enable user locale.  Try to log exceptions.
  (MandosClientPropertyCache.__init__): Removed "properties" argument.
                                        All callers changed.
  (UserInterface.add_new_client): Remove "properties" argument.  All
                                  callers changed.  Supply "logger"
                                  argument to MandosClientWidget().
  (UserInterface.add_client): New "logger" argument.  All callers
                              changed.
* mandos.xml (BUGS, SECURITY/CLIENTS): Use "enabled/disabled"
                                       terminology.

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 on signal
5
 
** TODO [#B] Temporarily lower kernel log level
6
 
   for less printouts during sucessfull boot.
7
 
   klogctl(6, NULL, 0); klogctl(7, NULL, 0);
8
 
** TODO [#C] IPv4 support
 
4
** TODO [#B] use scandir(3) instead of readdir(3)
 
5
** TODO [#B] Prefix all debug output with "Mandos plugin " + program_invocation_short_name
 
6
** TODO use error() instead of perror()
 
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
** TODO [#B] Use capabilities instead of seteuid().
 
11
 
 
12
* splashy
 
13
** TODO [#B] use scandir(3) instead of readdir(3)
 
14
** TODO [#B] Prefix all debug output with "Mandos plugin " + program_invocation_short_name
 
15
** TODO use error() instead of perror()
 
16
 
 
17
* usplash
 
18
** TODO [#B] use scandir(3) instead of readdir(3)
 
19
** TODO [#B] Prefix all debug output with "Mandos plugin " + program_invocation_short_name
 
20
** TODO use error() instead of perror()
 
21
 
 
22
* askpass-fifo
 
23
** TODO [#B] Prefix all debug output with "Mandos plugin " + program_invocation_short_name
 
24
** TODO use error() instead of perror()
 
25
** TODO [#B] Drop privileges after opening FIFO.
 
26
 
 
27
* password-prompt
 
28
** TODO [#B] Prefix all debug output with "Mandos plugin " + program_invocation_short_name
 
29
** TODO use error() instead of perror()
 
30
** TODO lock stdin (with flock()?)
 
31
 
 
32
* TODO passdev
9
33
 
10
34
* plugin-runner
11
35
** TODO [#B] use scandir(3) instead of readdir(3)
 
36
** TODO [#C] use same file name rules as run-parts(8)
 
37
** TODO use error() instead of perror()
12
38
 
13
39
* mandos (server)
14
 
** TODO [#B] Log level                          :bugs:
 
40
** TODO [#B] Log level                          :BUGS:
15
41
** TODO /etc/mandos/clients.d/*.conf
16
42
   Watch this directory and add/remove/update clients?
17
43
** TODO config for TXT record
18
 
** TODO [#B] Run-time communication with server :bugs:
 
44
** TODO [#B] Run-time communication with server :BUGS:
19
45
   Probably using D-Bus
20
 
   See also [[*Mandos-tools]]
21
46
*** Client class
22
47
*** Main server
23
48
    + SetLogLevel
24
49
      syslogger.setLevel(logging.WARNING)
25
 
    + Quit
26
50
    + [[http://log.ometer.com/2007-05.html][Best D-Bus practices]]
27
 
** TODO Implement --foreground                  :bugs:
 
51
** TODO Implement --foreground                  :BUGS:
28
52
   [[info:standards:Option%20Table][Table of Long Options]]
29
53
** TODO Implement --socket
30
54
   [[info:standards:Option%20Table][Table of Long Options]]
31
 
** TODO Date+time on console log messages       :bugs:
 
55
** TODO Date+time on console log messages       :BUGS:
32
56
   Is this the default?
33
 
** TODO delete hook when clients fall out by timeout
34
 
   This will not be strictly necessary when the D-Bus interface is
35
 
   implemented.
 
57
** TODO DBusServiceObjectUsingSuper
 
58
** TODO Global enable/disable flag
 
59
** TODO By-client countdown on secrets given
 
60
** TODO Fix problem with fsck taking a really long time
 
61
   Whenever a client successfully gets a secret it could get a
 
62
   one-time timeout boost to allow for an fsck-incurred delay
 
63
** TODO Delay before client receives key
 
64
   This would give an operator opportunity to cancel the request if
 
65
   desired.
 
66
** TODO Client manual approval mode
 
67
   A client needs manual approval on the server before it gets the
 
68
   secret
 
69
** TODO Persistent state
 
70
   /var/lib/mandos/*
 
71
** TODO Support RFC 3339 time duration syntax
36
72
 
37
73
* mandos.xml
38
74
** [[file:mandos.xml::XXX][Document D-Bus interface]]
39
75
 
40
76
* Provide and install /etc/dbus-1/system.d/mandos.conf
41
77
 
42
 
* mandos-list
 
78
* mandos-ctl
43
79
*** Handle "no D-Bus server" and/or "no Mandos server found" better
44
80
*** [#B] --dump option
45
 
** TODO Disable client
46
 
** TODO Enable client
47
 
** TODO Reset timer
48
 
 
49
 
* Curses interface
 
81
** TODO Support RFC 3339 time duration syntax
 
82
 
 
83
* TODO mandos-dispatch
 
84
  Listens for specified D-Bus signals and spawns shell commands with
 
85
  arguments.
 
86
 
 
87
* mandos-monitor
 
88
** Urwid client data displayer
 
89
*** Properties popup
50
90
 
51
91
* mandos-keygen
 
92
** TODO Loop until passwords match when run interactively
52
93
** TODO "--secfile" option
53
94
   Using the "secfile" option instead of "secret"
54
95
** TODO [#B] "--test" option
55
96
   For testing decryption before rebooting.
56
97
 
 
98
* Makefile
 
99
** Implement DEB_BUILD_OPTIONS
 
100
   http://www.debian.org/doc/debian-policy/ch-source.html#s-debianrules-options
 
101
 
57
102
* Package
58
103
** /usr/share/initramfs-tools/hooks/mandos
 
104
*** TODO [#C] use same file name rules as run-parts(8)
59
105
*** TODO [#C] Do not install in initrd.img if configured not to.
60
 
    Use "/etc/initramfs-tools/conf.d/mandos"?  Definitely a debconf
61
 
    question.
 
106
    Use "/etc/initramfs-tools/hooksconf.d/mandos"?
62
107
** TODO [#C] /etc/bash_completion.d/mandos
63
108
   From XML sources directly?
64
109