Suppress display of sensitive info by servers (proposal)
From: Daniel Rall <dlr_at_finemaltcoding.com>
Date: 2005-04-12 21:22:30 CEST
Issues: 1051, 2271
Problem:
o Possibly sensitive server information is currently revealed to
$ svn log -r3209683
o There is no way to tell from looking at an error object whether it
Requirements of any solution:
o Low-level libraries should continue to propogate all contextual
o Secure versions of error messages must still contain relevant
Solution:
o Add field, "safe_message" to svn_error_t which contains a safe
o Constructors of error messages are responsible for knowing when they
svn_error_t *err = svn_error_createf (apr_err, child,
o Helper function to acquire appropriate error message from svn_error_t:
/** Return the least security-sensitive available custom message in @a
o A macro which logs the security-insensitive version, and returns the
Questions about solution:
o Do we need svn_error2_t for safe_message (for binary compatibility)?
---------------------------------------------------------------------
|
This is an archived mail posted to the Subversion Dev mailing list.
This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.