Version 1.13.
[pwmd.git] / NEWS
blob3b7712762d86e0403f6c0b59f209d2f70df722bd
1 PWMD v1.13
2 ----------
3 Sorry about this second release in the same day but I didn't catch these two
4 bugs until it was too late.
6 Parse ~/.pwmd/pinentry.conf even when adding files from the command line.
8 Fixed an uninitialized variable which may have led to invalid DECRYPT status
9 messages.
12 PWMD v1.12
13 ----------
14 There is now a GIT repository allowing anonymous checkouts and a web interface
15 at http://repo.or.cz/w/pwmd.git. To clone the repository:
17     git clone git://repo.or.cz/pwmd.git
19     To get the latest changes:
21     git pull
23 Fixed a segfault when adding a file to the cache from the command line.
26 PWMD v1.11
27 ----------
28 pwmd now becomes a daemon process (forks into the background) by default. To
29 prevent this use the new -n command line switch.
31 Added support for pinentry timeouts. This adds a new OPTION TIMEOUT protocol
32 command and the new "pinentry_timeout" configuration parameter. These set the
33 number of seconds before the pinentry process is terminated.
35 SIGHUP now reloads the configuration file rather than SIGUSR1 and SIGUSR1 will
36 reset the key cache. Sorry for the switch but I see more applications using
37 SIGHUP for file reloading and I'd like to be conforming.
39 Fixed launching pinentry when DISPLAY is unset.
41 Added configuration parameter "priority" to specify the niceness of pwmd. The
42 default value is inherited from the parent process.
44 Added support for pinentry's password quality meter. You'll need to have
45 cracklib2 installed and pass --enable-quality to ./configure.
48 PWMD v1.10
49 ----------
50 ATTR LIST now separates the attribute name and value with a space rather than
51 a tab.
53 Send LOCKED status messages while waiting for the pinentry mutex.
55 A couple minor cleanups.
58 PWMD v1.9
59 ----------
60 Fixed GETCONFIG showing the "key" and "key_file" parameters. Got broken in the
61 previous release.
63 Added the GETPID command which returns the process ID of pwmd.
65 Fixed terminating a client after it disconnected in the middle of a file mutex
66 lock. Note that while a client is waiting for a file mutex lock, a LOCKED
67 status message will be sent to the client once every second.
69 OPTION ITERATIONS no longer requires an open file and also sends the CONFIG
70 status message when successful.
72 Send both the current iteration and total iterations in the ENCRYPT and
73 DECRYPT status messages. This should make it easier for clients.
75 The "iterations" configuration parameter is updated after a successful OPEN
76 command. This keeps the iteration setting from the file header and can be
77 changed with OPTION ITERATIONS before saving. The "iterations" configuration
78 option is now only useful for new files. The CONFIG status message will be
79 sent to all clients when the file header iterations differs from the
80 configured one. Note that all this only applies to exiting files (OPEN) and
81 not new ones.
83 The GETCONFIG command now converts the configuration parameter to lower case.
86 PWMD v1.8
87 ----------
88 The GETCONFIG command can take a file argument. This lets the client retrieve
89 values for files that aren't opened yet.
91 Added command line option -i to specify the number of encryption iterations
92 when importing. If not specified, the "global" configuration parameter will be
93 used like before.
95 Fixed the "iteration" and "iteration_progress" configuration parameters when
96 used in a file section.
98 Added the CONFIG status message. This is sent when the configuration file is
99 reloaded (SIGUSR1).
101 Added the CLIENTS status message to show how many clients are connected.
103 Removed the cleanup thread. Cleanups now occur immediately after the client
104 thread terminates.
106 Redid how status messages are sent. We now use a pth_msgport_t rather than
107 signals.
109 Added OPTION ITERATIONS to set the encryption iterations for the current file.
110 This will send the CONFIG status message when successful.
113 PWMD v1.7
114 ----------
115 Added the LOCK and UNLOCK commands.
117 $DISPLAY bugfix. Use the --display pinentry command line option.
119 Fixed a xmlError segfault.
122 PWMD v1.6
123 ----------
124 IMPORT command bugfix. It now overwrites the node of the same name as the root
125 node of the content argument.
127 When a client sends OPTION PINENTRY, the option value is valid for the current
128 session only, and not any future sessions of the same file.
131 PWMD v1.5
132 ----------
133 Added the "backup" configuration parameter. When true, the default, a backup
134 of the opened file will be saved in "data_directory" when a SAVE command is
135 sent. The filename will have the ".backup" extension appended to it.
137 Added the XPATH command. This command can retrieve a result of the specified
138 expression or set a value to the result of the specified expression.
140 Added the IMPORT command. This is like STORE but reads real XML data and
141 stores it at the specified element path.
143 A few bugfixes. See ChangeLog for details.
146 PWMD v1.4
147 ----------
148 Ported to libPth2. This fixes key cache locking portability and removes the
149 --disable-locking 'configure' option.
151 Added configuration parameter "syslog" to enable logging to the syslog daemon
152 with facility LOG_DAEMON and priority LOG_INFO.
154 When the key cache changes, send the CACHE status message to each connected
155 client.
157 Reuse libgpg-error error codes more often. If your using libpwmd, please
158 update to libpwmd5 otherwise error codes will be wrong.
160 Added configuration option "keepalive" to specify the interval, in seconds, to
161 send the new KEEPALIVE status message.
163 Added pinentry(1) support. This adds a new configuration parameter
164 "enable_pinentry" (the default is enabled), and a few options that can be set
165 with the new OPTION command: PATH, TTYNAME, TTYTYPE, DISPLAY, TITLE, PROMPT,
166 DESC and PINENTRY. Read COMMANDS for details.
168 Added OPTION CLIENT NAME=VALUE to let clients set a string that is associated
169 with the connection thread ID. This may be useful for debugging log messages.
171 The "iterations" configuration parameter can be set to -1 to disable
172 encryption. Setting to 0, the default, will still encrypt with 1 iteration (I
173 know it doesn't make sense, but it's needed for compatibility with previous
174 data files).
176 Empty (null) keys are now allowed.
178 Changed the "default" configuration file section to "global". Be sure to
179 update your config file(s).
181 A few bug fixes. See ChangeLog for details.
184 PWMD v1.3
185 ----------
186 More safety checks when writing the data file after a SAVE command.
188 Added configuration parameter "socket_perms" to set the permissions of the
189 created socked overriding any umask setting. May be useful if a client
190 other than the user who invoked pwmd needs to connect (i.e., ACL's).
192 Added 'configure' option --disable-locking to disable key cache mutex locking.
193 Some systems don't have a complete pthread_mutex_t data type which is needed
194 rather than a pointer (FreeBSD and others probably). Note that using this
195 option increases the risk of key cache and data file corruption when more than
196 one client is using pwmd at the same time and save to the same file. If
197 possible, upgrade your OS and see if this fixes things.
199 A few bugfixes. See ChangeLog for details.
202 PWMD v1.2
203 ----------
204 Added locking of the file/key cache with certain commands. This prevents other
205 clients from modifying the cache until the lock is released. This adds a new
206 pthread compile time dependency.
208 Zlib version 1.2.2.1 or later is now a requirement.
211 PWMD v1.1
212 ----------
213 Added configuration parameter "recursion_depth". This specifies the maximum
214 number of times to follow a "target" attribute for a single element. The
215 default is 20.
217 When creating a "target" attribute, each element in the element path value is
218 no longer modified with the literal '!' character at all. You need to specify
219 the literal instead. This keeps the syntax more consistent with the other
220 commands.
222 Added the COMPRESS and DECOMPRESS status messages. Both show the bytes
223 processed so far, and the total bytes. In order to see the total after
224 upgrading from a previous version you need to save the data file once.
226 Changed the PROGRESS status message to ENCRYPT and DECRYPT.
228 The "disable_mlockall" configuration parameter now defaults to "true". Saves
229 RAM and is overkill for most since each memory deallocation is cleared before
230 being freed. The file cache is still locked in RAM though (if possible).
232 Bugfixes. See ChangeLog for details.
235 PWMD v1.0
236 ----------
237 EPWMD_FILE_NOT_FOUND is no longer used. It is up to the client to determine
238 if the file exists by using the GETCONFIG command along with 'data_directory'.
240 The CLEARCACHE command will always succeed (return 0) even if the file is not
241 found.
243 A few minor bugfixes.
246 PWMD v0.12
247 ----------
248 Added gettext support. Translations welcome.
250 Strip the first '!' of a newly created element. If there's a following one
251 it's an error. This is to avoid syntax errors and confusion with other
252 commands and element paths.
254 Only show the number of iterations so far when showing the PROGRESS status
255 message. The client can get the percentage by calculating the
256 "iteration_progress" with GETCONFIG.
258 Fixed a huge memory leak with (de)compression.
260 The cache status message format has changed to only show the used and
261 available slots and without any text strings to make it easier for clients to
262 parse.
264 SIGUSR1 is caught in the child process. This allows for reloading of the
265 configuration file.
267 Fixed pushing files and xml import with compression.
269 Added --enable-mem-debug to use the standard memory allocators. Valgrind seems
270 to work better this way.
272 Fixed a few memory leaks.
274 Fixed creating invalid XML elements. Elements must not begin with punctuation
275 or digit and not contain any whitespace.
277 The output of the LIST command is no longer sorted. Leave it up to the client.
280 PWMD v0.11
281 ----------
282 Added the GETCONFIG command. This will return a value for a configuration
283 parameter for the opened file or the default value if no file has been opened.
284 The "key" and "key_file" parameters are ignored.
286 Rewrote how element handling is done. No longer uses an xmlTextReader but
287 accesses the xmlDocPtr nodes directly.
289 The STORE command will no longer overwrite the element tree of the last
290 element in the specified element path. Instead it will set the content as
291 usual and keep the child nodes. This affects how GET handles empty elements.
292 GET will return EPWMD_EMPTY instead of EPWMD_TRAILING_ELEMENT. The STORE
293 command can also store content in a root element (account) and remove content
294 or store an empty element by not specifying any content after the last TAB in
295 the element path.
297 Each element in an element path can now be prefixed with the literal '!'
298 character. This allows for following targets of elements other than the root
299 element.
301 The LIST command will now shows all reachable elements including target
302 elements for the specified element path. It also prefixes each element with
303 the literal '!' when needed.
305 Added support for compressing data files before encryption. This adds the
306 "compression_level" configuration parameter. The default is 6 and setting to 0
307 will disable.
309 A couple of bug fixes.
312 PWMD v0.10
313 ----------
314 Fixed libgpg-error descriptions. The errors that pwmd uses for bad syntax and
315 invalid keys etc. used to return an error code that used
316 GPG_ERR_SOURCE_DEFAULT as the source. GPG_ERR_SOURCE_USER_1 is what pwmd uses
317 now. This breaks compatibility with clients that make use of the error codes
318 (i.e., libpwmd). Be sure to update.
320 Non-option arguments on the command line are files to cache upon startup. This
321 acts like the 'cache_push' configuration parameter.
323 The location of the default configuration file is now ~/.pwmd/config and the
324 default data directory is ~/.pwmd/data, and the default log file ~/.pwmd/log.
325 This fixes clients opening these non-data filenames.
327 Fixed default configuration values when an rcfile doesn't have one.
329 The configuration parameters 'key' and 'key_file' now check to make sure the
330 key is valid before adding it to the cache like 'cache_push' does.
332 Clear the file cache and free the memlist on SIGABRT when debugging is not
333 enabled.
335 Added command line option -b to fork pwmd to the background.
337 Added configuration parameter "iteration_progress". pwmd will send the client
338 a status message showing the percent of iterations that are complete while
339 encrypting or decrypting a data file. The default is 0 which disables sending
340 status messages.
342 Sending SIGUSR1 to pwmd will reload the configuration file.
344 New protocol command REALPATH. This will resolve any "target" attribute for
345 all elements in the specified element path and return the result.
347 Some portability (FreeBSD and maybe others) fixes.
349 SIGTERM and SIGABRT are now properly caught in a child process.
351 Bugfixes.
354 PWMD v0.9
355 ---------
356 Now uses the assuan protocol. This requires libassuan and libgpg-error.
358 Clear the shared memory on exit.
360 The CACHE sub-commands ISCACHED, CLEARCACHE and CACHETIMEOUT have been made
361 into their own commands removing the CACHE command itself.
363 The RESETCACHE command and the cache_reset_timeout configuration parameter
364 have been removed. The cached files timeout is reset to it's configured value
365 (or set value with CACHETIMEOUT) after each OPEN or SAVE command.
367 The OPEN command can open another file using the same connection. Beware
368 though that if the OPEN of the new file fails, no file will be open at all.
370 When OPEN'ing a new file with a specified key, cache both the filename and
371 key. Before you had to SAVE to cache the key.
373 All commands will check if the file has been modified before continueing. Not
374 the cache commands though.
376 Don't unlink() a socket filename that wasn't created by pwmd.
378 Fixed allocating more slots than needed.
380 The commands GET, STORE, DELETE and ATTR make use of the "target" attribute
381 unless the element path argument is prefixed with a '!'. The LIST command
382 will support "target" in the next release, hopefully.
384 Accounts names can no longer begin with a '!' character to avoid problems with
385 the "target" attribute.
387 Removed EPWMD_ROOT_TEXT_ELEMENT. The STORE command will return
388 EPWMD_COMMAND_SYNTAX instead.
390 Added command line option -D and configuration parameter
391 "disable_list_and_dump". When specified or enabled, the LIST and DUMP protocol
392 commands will return EPWMD_EMPTY_ELEMENT.
395 PWMD v0.8
396 ---------
397 Use AM_XML2_PATH() for finding libxml2.
399 Split pwmd and libpwmd into their own projects. Both can be found at
400 http://bjk.sourceforge.net/pwmd/.
403 PWMD v0.7
404 ---------
405 cache_push and working directory bugfix.
407 Added two new configuration options "key" and "key_file". Works with
408 cache_push too.
410 Added a boolean "cache_reset_timeout" configuration option to reset the timer
411 for a cached key when the OPEN or SAVE commands are used.
413 Added two new protocol commands CACHE RESET which clears only the key for the
414 specified file and CACHE RESETALL which clears the key for all files.
416 The "name" and "target" attributes are now case-sensitive.
418 The value of an element path that contains a "target" attribute can be
419 obtained by prefixing the account element with a '!'.
422 PWMD v0.6
423 ---------
424 Fix for the LIST command. When an element path was specified and the document
425 had following elements in the tree the following elements would be shown.
427 Added the CACHE TIMEOUT command to specify the lifetime of a cached file in
428 seconds. This adds a new configuration file setting "cache_timeout".
430 Added per-file settings in the configuration file. A file section is declared
431 by placing the filename in braces. Only the "iterations" and "cache_timeout"
432 settings are used in a file section.
434 No longer chdir() to the data directory.
437 PWMD v0.5
438 ---------
439 If a file size is 0 then CACHE ISCACHED will return EPWMD_FILE_NOT_FOUND.
441 Write a structure to the data file which specifies the iterations and IV. This
442 lets you open a file that had a different iteration setting than the current
443 setting. Breaks file compatibility with previous versions for hopefully the
444 last time.
446 cache_push with an invalid password bugfix.
448 Added command line option -I to import an XML file and write the encrypted
449 data to stdout.
452 PWMD v0.4
453 ---------
454 Use AES-256-CBC to store the data file. This breaks file compatibility with
455 older versions. Sorry.
457 The ATTR protocol command has a new GET sub-command to get an attribute value
458 for an element path.
460 The LIST protocol command can now take an element path.
462 The DUMP command will format it's output.
464 Use MAP_ANONYMOUS|MAP_SHARED mmap() flags on Linux 2.4+. This won't create a
465 file in /dev/shm. #define MMAP_ANONYMOUS_SHARED in config.h if your OS
466 supports this.
468 Fixed closing file descriptors.
470 Fixed some memory leaks.
472 The contents of all memory allocated by Glib, libXML and libgcrypt is cleared
473 before free()ing.
475 Added an "iterations" configuration parameter. This specifies the amount of
476 times to encrypt the data to prevent dictionary attacks. Idea borrowed from
477 aespipe.
480 PWMD v0.3
481 ---------
482 The SETATTR protocol command has been renamed to ATTR. This new command
483 includes three new sub-commands: SET, DELETE and LIST, to SET or update an
484 attribute, DELETE to delete an attribute and LIST to list attributes of an
485 element path. Read PROTOCOL for details.
487 Added the TARGET attribute. If an element has this attribute set, it's value
488 is another element path. It's recursive too so the destination element path
489 can be an element with a TARGET attribute. Be careful of loops though.
491 Added the DUMP protocol command. It shows the in-memory document. Useful for
492 cleaning up empty elements that aren't shown with any command.
494 The "name" attribute can be used in any element but cannot be removed for the
495 root "account" element.
497 More strict element name validation for new elements.
499 Code reorganization. Protocol commands have been put in src/commands.c.
501 The LIST command won't show element values anymore unless DEBUG was defined at
502 compile time. You must use the GET command to get a value.
504 The OPEN and SAVE protocol commands no longer expect a base64 encoded key.
505 Plain text is where it's at.
507 The STORE command wont base64 encode the value. We'll leave it up to the
508 client. But it's still recommended to avoid parsing errors.
510 All of the command line options have been moved into a configuration file. By
511 default pwmd will look for it in ~/.pwmdrc. You can use -f to specify an
512 alternate file. If the file doesn't exist, then some defaults will be used.
513 There is one new config option though; "cache_push" will take a list of
514 filenames as an argument. This will prompt for passwords upon startup and add
515 the file to the cache. It's a (temporary?) fix for background processes that
516 don't have an attached tty (see libpwmd/KnownBugs). Just make sure the file
517 the other process needs is added to the cache.
520 PWMD v0.2
521 ---------
522 There is a library included in the archive to make interfacing the pwmd alot
523 easier. See libpwmd/README for more information.
525 A (temporary) fix for 100% CPU usage after a client connects.
527 GnuPG is no longer used for data encryption. Instead, libgcrypt will
528 encrypt/decrypt the data with AES-128 key. The OPEN and SAVE commands will
529 need the base64 encoded key.
531 Renamed host to hostname and added sslfingerprint to the DTD.
533 Added command line option -s to specify the socket path.
535 Added command line option -d to specify where pwmd will open and save the data
536 files.
538 Renamed protocol command SET to SETATTR.
540 Added shared memory file caching. If a file is found in the cache then the
541 cached password associated with the file will be used with the OPEN command.
542 With SAVE, if there is no cached password a key is required, else the cached
543 password will be used unless there is a key argument. This also adds a new
544 protocol command CACHE with 3 subcommands CLEARALL, CLEAR and ISCACHED.
545 Sending the SIGHUP signal to pwmd will clear the file cache.
547 Added command line option -M to disable calling mlockall(). mlock() will still
548 be used for the file cache reguardless of this option.
550 Added command line option -C to specify the file cache size. The cache size
551 must be in multiples of PAGE_SIZE.
553 Added command line option -l to enable logging to the specified file.
555 If there is a protocol command error, ERR is returned along with a protocol
556 error code and description. See src/pwmd_error.h for error codes.
558 Fix for the DELETE command and deleting an entire element tree when an invalid
559 element was in the element path.
561 Fix for the GET command and finding elements of the same name in other
562 accounts.
564 Added a manual page.
567 PWMD v0.1
568 ---------
569 Initial release.