/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-09-21 21:39:25 UTC
  • Revision ID: teddy@fukt.bsnet.se-20090921213925-jbpt6tzu99otseng
Use D-Bus properties instead of our own methods.

* mandos (Client._datetime_to_milliseconds): Renamed to
                                             "_timedelta_to_milliseconds".
                                             All callers changed.
  (dbus_service_property): New decorator for D-Bus properties.
  (DBusPropertyException, DBusPropertyAccessException,
  DBusPropertyNotFound): New D-Bus exception classes.
  (DBusObjectWithProperties): New; extends "dbus.service.Object" with
                              support for properties.
  (ClientDBus): Inherit from, and call up to, "DBusObjectWithProperties".
  (ClientDBus.CheckedOK, ClientDBus.GetAllProperties,
  ClientDBus.SetChecker, ClientDBus.SetHost, ClientDBus.SetInterval,
  ClientDBus.SetSecret, ClientDBus.SetTimeout, ClientDBus.Enable,
  ClientDBus.StartChecker, ClientDBus.Disable,
  ClientDBus.StopChecker): Removed, replaced with properties.
  (ClientDBus.IsStillValid): Removed, superfluous.
  (ClientDBus.name_dbus_property,
  ClientDBus.fingerprint_dbus_property, ClientDBus.host_dbus_property,
  ClientDBus.created_dbus_property,
  ClientDBus.last_enabled_dbus_property,
  ClientDBus.enabled_dbus_property,
  ClientDBus.last_checked_ok_dbus_property,
  ClientDBus.timeout_dbus_property, ClientDBus.interval_dbus_property,
  ClientDBus.checker_dbus_property,
  ClientDBus.checker_running_dbus_property,
  ClientDBus.object_path_dbus_property,
  ClientDBus.secret_dbus_property): New D-Bus properties.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
-*- org -*-
2
2
 
3
 
* _attribute_((nonnull))
4
 
 
5
3
* mandos-client
6
4
** TODO [#B] use scandir(3) instead of readdir(3)
7
 
** TODO [#B] Prefix all debug output with "Mandos plugin " + program_invocation_short_name
8
 
** TODO use error() instead of perror()
 
5
** TODO [#B] Prefix all debug output with argv[0]
9
6
** TODO [#B] Retry a server which has a non-definite reply:
10
7
*** A closed connection during the TLS handshake
11
8
*** A TCP timeout
12
9
** TODO [#B] Use capabilities instead of seteuid().
13
 
** TODO [#A] Retry --connect forever
14
10
 
15
11
* splashy
16
12
** TODO [#B] use scandir(3) instead of readdir(3)
17
 
** TODO [#B] Prefix all debug output with "Mandos plugin " + program_invocation_short_name
18
 
** TODO [#B] use error() instead of perror()
 
13
** TODO [#B] Prefix all debug output with "Mandos plugin " + argv[0]
19
14
 
20
15
* usplash
21
 
** TODO [#A] Make it work again
22
16
** TODO [#B] use scandir(3) instead of readdir(3)
23
 
** TODO [#B] Prefix all debug output with "Mandos plugin " + program_invocation_short_name
24
 
** TODO [#B] use error() instead of perror()
 
17
** TODO [#B] Prefix all debug output with "Mandos plugin " + argv[0]
25
18
 
26
19
* askpass-fifo
27
 
** TODO [#B] Prefix all debug output with "Mandos plugin " + program_invocation_short_name
28
 
** TODO [#B] use error() instead of perror()
 
20
** TODO [#B] Prefix all debug output with "Mandos plugin " + argv[0]
29
21
** TODO [#B] Drop privileges after opening FIFO.
30
22
 
31
23
* password-prompt
32
 
** TODO [#B] Prefix all debug output with "Mandos plugin " + program_invocation_short_name
33
 
** TODO [#B] use error() instead of perror()
34
 
** TODO [#B] lock stdin (with flock()?)
 
24
** TODO [#B] Prefix all debug output with "Mandos plugin " + argv[0]
35
25
 
36
 
* TODO [#B] passdev
 
26
* TODO passdev
37
27
 
38
28
* plugin-runner
39
29
** TODO [#B] use scandir(3) instead of readdir(3)
40
30
** TODO [#C] use same file name rules as run-parts(8)
41
 
** kernel command line option for debug info
42
 
** TODO [#B] use error() instead of perror()
43
 
** TODO [$B] Use openat() and readdir64()
44
 
   http://udrepper.livejournal.com/19395.html
45
31
 
46
32
* mandos (server)
47
 
** TODO [#B] Log level                                                    :BUGS:
48
 
** TODO Persistent state                                                  :BUGS:
49
 
   /var/lib/mandos/*
50
 
*** TODO /etc/mandos/clients.d/*.conf
51
 
    Watch this directory and add/remove/update clients?
52
 
** TODO [#C] config for TXT record
53
 
** TODO Log level option
54
 
   syslogger.setLevel(logging.WARNING)
55
 
   + SetLogLevel D-Bus call
56
 
** TODO Implement --foreground                                            :BUGS:
 
33
** TODO [#B] Log level                          :BUGS:
 
34
** TODO /etc/mandos/clients.d/*.conf
 
35
   Watch this directory and add/remove/update clients?
 
36
** TODO config for TXT record
 
37
** TODO [#B] Run-time communication with server :BUGS:
 
38
   Probably using D-Bus
 
39
*** Client class
 
40
*** Main server
 
41
    + SetLogLevel
 
42
      syslogger.setLevel(logging.WARNING)
 
43
    + [[http://log.ometer.com/2007-05.html][Best D-Bus practices]]
 
44
** TODO Implement --foreground                  :BUGS:
57
45
   [[info:standards:Option%20Table][Table of Long Options]]
58
46
** TODO Implement --socket
59
47
   [[info:standards:Option%20Table][Table of Long Options]]
60
 
** TODO Date+time on console log messages                                 :BUGS:
 
48
** TODO Date+time on console log messages       :BUGS:
61
49
   Is this the default?
62
 
** TODO [#C] DBusServiceObjectUsingSuper
63
 
** TODO [#B] Global enable/disable flag
64
 
** TODO [#B] By-client countdown on secrets given
65
 
** TODO [#B] Fix problem with fsck taking a really long time
 
50
** TODO DBusServiceObjectUsingSuper
 
51
** TODO Global enable/disable flag
 
52
** TODO By-client countdown on secrets given
 
53
** TODO Fix problem with fsck taking a really long time
66
54
   Whenever a client successfully gets a secret it could get a
67
55
   one-time timeout boost to allow for an fsck-incurred delay
68
 
** TODO [#A] Delay before client receives key
 
56
** TODO Delay before client receives key
69
57
   This would give an operator opportunity to cancel the request if
70
58
   desired.
71
 
** TODO [#A] Client manual approval mode
 
59
** TODO Client manual approval mode
72
60
   A client needs manual approval on the server before it gets the
73
61
   secret
74
 
** TODO [#B] Support RFC 3339 time duration syntax
75
 
** More D-Bus methods
76
 
*** NeedsApproval(50, True) -> timeout, default approve
77
 
    Default approval is configurable, but True by default
78
 
    + Approval(True) -> approve sending saved
79
 
    + Approval(False) -> Close client connection immediately
80
 
*** NeedsPassword(50) - Timeout, default disapprove
81
 
    + SetPass(u"gazonk", True) -> Approval, persistent
82
 
    + Approval(False) -> Close client connection immediately
83
 
** TODO [#C] python-parsedatetime
84
 
** TODO [#C] systemd/launchd
85
 
   http://0pointer.de/blog/projects/systemd.html
 
62
** TODO Persistent state
 
63
   /var/lib/mandos/*
86
64
 
87
65
* mandos.xml
88
66
** [[file:mandos.xml::XXX][Document D-Bus interface]]
89
 
   Remove mention of lack of such interface in BUGS section
90
 
** Add mandos contact info in manual pages
91
67
 
92
 
* TODO [#A] Provide and install /etc/dbus-1/system.d/mandos.conf
 
68
* Provide and install /etc/dbus-1/system.d/mandos.conf
93
69
 
94
70
* mandos-ctl
95
71
*** Handle "no D-Bus server" and/or "no Mandos server found" better
96
72
*** [#B] --dump option
97
 
** TODO Support RFC 3339 time duration syntax
98
73
 
99
74
* TODO mandos-dispatch
100
75
  Listens for specified D-Bus signals and spawns shell commands with
101
76
  arguments.
102
77
 
103
78
* mandos-monitor
104
 
** Urwid client data displayer
105
 
   Better view of client data in the listing
 
79
** D-Bus mail loop w/ signal receiver
 
80
** Snack/Newt client data displayer
 
81
*** Client Widgets
106
82
*** Properties popup
107
83
 
108
84
* mandos-keygen
113
89
   For testing decryption before rebooting.
114
90
 
115
91
* Makefile
116
 
** TODO Add "--Xlinker --as-needed"
117
 
   http://udrepper.livejournal.com/19395.html
118
 
** TODO [#C] Implement DEB_BUILD_OPTIONS
 
92
** Implement DEB_BUILD_OPTIONS
119
93
   http://www.debian.org/doc/debian-policy/ch-source.html#s-debianrules-options
120
94
 
121
95
* Package