/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 at recompile
  • Date: 2012-02-26 11:47:19 UTC
  • mto: This revision was merged to the branch mainline in revision 561.
  • Revision ID: teddy@recompile.se-20120226114719-m3odq4s34ebt6hg8
Add facilities for D-Bus interface annotations and use them to mark
the old D-Bus interfaces as deprecated.

* mandos (dbus_interface_annotations): New decorator.
  (DBusObjectWithProperties._is_dbus_property): Removed.  All callers
                                                changed.
  (DBusObjectWithProperties._is_dbus_thing): New; generalized version
                                             of "_is_dbus_property".
  (DBusObjectWithProperties._get_all_dbus_properties): Removed.  All
                                                       callers
                                                       changed.
  (DBusObjectWithProperties._get_all_dbus_things): New; generalized
                                                   version of
                                                   "_get_all_dbus_properties".
  (DBusObjectWithProperties.Introspect): Also add interface
                                         annotation tags.
  (AlternateDBusNamesMetaclass.__new__): Also copy interface
                                         annotations.  Add
                                         "deprecated" annotation on
                                         old interface.
  (ClientDBus._foo): New interface annotation to mark non-compliance
                     with the standard property change signal
                     interface.
  (MandosDBusService): Inherit from DBusObjectWithProperties to get
                       interface annotation support.
  (MandosDBusService._foo): New interface annotation to mark
                            non-compliance with the standard property
                            change signal interface.

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
3
* [[http://www.undeadly.org/cgi?action=article&sid=20110530221728][OpenBSD]]
6
4
 
7
5
* mandos-applet
8
6
 
9
7
* mandos-client
 
8
** TODO [#A] Wireless network hook
10
9
** TODO [#B] Use capabilities instead of seteuid().
11
10
** TODO [#B] Use struct sockaddr_storage instead of a union
12
11
** TODO [#B] Use getaddrinfo(hints=AI_NUMERICHOST) instead of inet_pton()
40
39
** TODO [#B] Use openat()
41
40
 
42
41
* mandos (server)
 
42
** TODO Document why we ignore sigint
43
43
** TODO [#B] Log level                                                    :BUGS:
44
 
** TODO Persistent state                                                  :BUGS:
45
 
   /var/lib/mandos/*
46
44
*** TODO /etc/mandos/clients.d/*.conf
47
45
    Watch this directory and add/remove/update clients?
48
46
** TODO [#C] config for TXT record
49
 
** TODO Log level option
50
 
   syslogger.setLevel(logging.WARNING)
51
 
   + SetLogLevel D-Bus call
 
47
** TODO Log level dbus option
 
48
   SetLogLevel D-Bus call
52
49
** TODO Implement --foreground                                            :BUGS:
53
50
   [[info:standards:Option%20Table][Table of Long Options]]
54
51
** TODO Implement --socket
55
52
   [[info:standards:Option%20Table][Table of Long Options]]
56
 
** TODO Date+time on console log messages                                 :BUGS:
57
 
   Is this the default?
58
53
** TODO [#C] DBusServiceObjectUsingSuper
59
54
** TODO [#B] Global enable/disable flag
60
 
** TODO [#B] By-client countdown on secrets given
 
55
** TODO [#B] By-client countdown on number of secrets given
61
56
** TODO [#B] Support RFC 3339 time duration syntax
62
57
** More D-Bus methods
63
58
*** NeedsPassword(50) - Timeout, default disapprove
68
63
   http://0pointer.de/blog/projects/systemd.html
69
64
   http://wiki.debian.org/systemd
70
65
** TODO Separate logging logic to own object
71
 
** TODO make clients to a dict!
72
66
** TODO [#A] Limit approval_delay to max gnutls/tls timeout value
73
67
** TODO [#B] break the wait on approval_delay if connection dies
74
68
** TODO Generate Client.runtime_expansions from client options + extra
75
69
** TODO Allow %%(checker)s as a runtime expansion
76
70
** TODO Use python-tlslite?
 
71
** TODO D-Bus AddClient() method on server object
 
72
** TODO Use org.freedesktop.DBus.Method.NoReply annotation on async methods.
 
73
** TODO Emit [[http://dbus.freedesktop.org/doc/dbus-specification.html#standard-interfaces-properties][org.freedesktop.DBus.Properties.PropertiesChanged]] signal
 
74
   TODO Deprecate se.recompile.Mandos.Client.PropertyChanged - annotate!
 
75
   TODO Can use "invalidates" annotation to also emit on changed secret.
 
76
** TODO Support [[http://dbus.freedesktop.org/doc/dbus-specification.html#standard-interfaces-objectmanager][org.freedesktop.DBus.ObjectManager]] interface on server object
 
77
   Deprecate methods GetAllClients(), GetAllClientsWithProperties()
 
78
   and signals ClientAdded and ClientRemoved.
 
79
** TODO Save state periodically to recover better from hard shutdowns
 
80
** TODO CheckerCompleted method, deprecate CheckedOK
77
81
 
78
82
* mandos.xml
79
83
** Add mandos contact info in manual pages
82
86
*** Handle "no D-Bus server" and/or "no Mandos server found" better
83
87
*** [#B] --dump option
84
88
** TODO Support RFC 3339 time duration syntax
85
 
** TODO Send milliseconds if bare integer is passed as time duration
86
89
 
87
90
* TODO mandos-dispatch
88
91
  Listens for specified D-Bus signals and spawns shell commands with
93
96
** Urwid client data displayer
94
97
   Better view of client data in the listing
95
98
*** Properties popup
96
 
** Nicer crashes. Stack traces Messes up shell.
97
 
*** Print a nice "We are sorry" message, save stack trace to log.
 
99
** Print a nice "We are sorry" message, save stack trace to log.
98
100
** Show timeout countdown for approval
99
101
 
100
102
* mandos-keygen