/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
 
* Use _attribute_((nonnull)) wherever possible.
4
 
 
5
 
* mandos-applet
6
 
 
7
3
* mandos-client
8
 
** TODO [#B] Use capabilities instead of seteuid().
9
 
** TODO [#B] Use struct sockaddr_storage instead of a union
10
 
** TODO [#B] Use getaddrinfo(hints=AI_NUMERICHOST) instead of inet_pton()
11
 
** TODO [#B] Use getnameinfo(serv=NULL, NI_NUMERICHOST) instead of inet_ntop()
12
 
** TODO [#B] Prefer /run/tmp over /tmp, if it exists
13
 
 
14
 
* splashy
15
 
** TODO [#B] use scandir(3) instead of readdir(3)
16
 
 
17
 
* usplash
18
 
** TODO [#A] Make it work again
19
 
** TODO [#B] use scandir(3) instead of readdir(3)
20
 
** TODO Use [[info:libc:Argz%20Functions][argz_extract]]
21
 
 
22
 
* askpass-fifo
23
 
** TODO [#B] Drop privileges after opening FIFO.
24
 
 
25
 
* password-prompt
26
 
** TODO [#B] lock stdin (with flock()?)
27
 
 
28
 
* plymouth
29
 
 
30
 
* TODO [#B] passdev
31
 
 
32
 
* plugin-runner
33
 
** TODO handle printing for errors for plugins
34
 
*** Hook up stderr of plugins, buffer them, and prepend mandos pluig [plugin name]
35
 
** TODO [#B] use scandir(3) instead of readdir(3)
36
 
** TODO [#C] use same file name rules as run-parts(8)
37
 
** kernel command line option for debug info
38
 
** TODO [#B] Use openat()
 
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
39
8
 
40
9
* mandos (server)
41
 
** TODO [#A] Make all attributes properties!
42
 
** TODO [#B] Log level                                                    :BUGS:
43
 
** TODO Persistent state                                                  :BUGS:
44
 
   /var/lib/mandos/*
45
 
*** TODO /etc/mandos/clients.d/*.conf
46
 
    Watch this directory and add/remove/update clients?
47
 
** TODO [#C] config for TXT record
48
 
** TODO Log level option
49
 
   syslogger.setLevel(logging.WARNING)
50
 
   + SetLogLevel D-Bus call
51
 
** TODO Implement --foreground                                            :BUGS:
 
10
** TODO [#B] Log level                          :bugs:
 
11
** TODO /etc/mandos/clients.d/*.conf
 
12
   Watch this directory and add/remove/update clients?
 
13
** TODO config for TXT record
 
14
** TODO [#B] Run-time communication with server :bugs:
 
15
   Probably using D-Bus
 
16
   See also [[*Mandos-tools]]
 
17
*** Client class
 
18
    + getHostname
 
19
    + getChecker
 
20
    + setChecker
 
21
*** Main server
 
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
 
27
      syslogger.setLevel(logging.WARNING)
 
28
    + quit
 
29
** TODO Implement --foreground                  :bugs:
52
30
   [[info:standards:Option%20Table][Table of Long Options]]
53
31
** TODO Implement --socket
54
32
   [[info:standards:Option%20Table][Table of Long Options]]
55
 
** TODO Date+time on console log messages                                 :BUGS:
 
33
** TODO Date+time on console log messages       :bugs:
56
34
   Is this the default?
57
 
** TODO [#C] DBusServiceObjectUsingSuper
58
 
** TODO [#B] Global enable/disable flag
59
 
** TODO [#B] By-client countdown on secrets given
60
 
** TODO [#B] Support RFC 3339 time duration syntax
61
 
** More D-Bus methods
62
 
*** NeedsPassword(50) - Timeout, default disapprove
63
 
    + SetPass(u"gazonk", True) -> Approval, persistent
64
 
    + Approve(False) -> Close client connection immediately
65
 
** TODO [#C] python-parsedatetime
66
 
** TODO [#C] systemd/launchd
67
 
   http://0pointer.de/blog/projects/systemd.html
68
 
** TODO Separate logging logic to own object
69
 
** TODO make clients to a dict!
70
 
** TODO [#A] Limit approval_delay to max gnutls/tls timeout value
71
 
** TODO [#B] break the wait on approval_delay if connection dies
72
 
** TODO Generate Client.runtime_expansions from client options + extra
73
 
** TODO Allow %%(checker)s as a runtime expansion
74
 
** TODO Use python-tlslite?
75
 
 
76
 
* mandos.xml
77
 
** Add mandos contact info in manual pages
78
 
 
79
 
* mandos-ctl
80
 
*** Handle "no D-Bus server" and/or "no Mandos server found" better
81
 
*** [#B] --dump option
82
 
** TODO Support RFC 3339 time duration syntax
83
 
 
84
 
* TODO mandos-dispatch
85
 
  Listens for specified D-Bus signals and spawns shell commands with
86
 
  arguments.
87
 
 
88
 
* mandos-monitor
89
 
** TODO help should be toggleable
90
 
** Urwid client data displayer
91
 
   Better view of client data in the listing
92
 
*** Properties popup
93
 
** Nicer crashes. Stack traces Messes up shell.
94
 
*** Print a nice "We are sorry" message, save stack trace to log.
95
 
** Show timeout countdown for approval
 
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
96
43
 
97
44
* mandos-keygen
98
45
** TODO "--secfile" option
100
47
** TODO [#B] "--test" option
101
48
   For testing decryption before rebooting.
102
49
 
103
 
* Makefile
104
 
** TODO [#C] Implement DEB_BUILD_OPTIONS
105
 
   http://www.debian.org/doc/debian-policy/ch-source.html#s-debianrules-options
106
 
 
107
 
* Package
 
50
* [#A] Package
108
51
** /usr/share/initramfs-tools/hooks/mandos
109
 
*** TODO [#C] use same file name rules as run-parts(8)
110
 
*** TODO [#C] Do not install in initrd.img if configured not to.
111
 
    Use "/etc/initramfs-tools/hooksconf.d/mandos"?
112
 
** 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
113
56
   From XML sources directly?
114
57
 
115
 
* Side Stuff
116
 
** TODO Locate which packet move the other bin/sh when busy box is deactivated
117
 
** TODO contact owner of packet, and ask them to have that shell static in position regardless of busybox
118
 
 
119
58
 
120
59
#+STARTUP: showall