diff options
author | Endi Sukma Dewata <edewata@redhat.com> | 2013-01-23 12:10:52 -0600 |
---|---|---|
committer | Endi Sukma Dewata <edewata@redhat.com> | 2013-01-29 19:16:26 -0500 |
commit | 8390f25a4b5556af787ca5078dec221075dc9420 (patch) | |
tree | d4b198729a1b5493e72a3e59137789522e4a9034 /COPYING | |
parent | 95e41dc9043a3fbbeea2abd58cca84d1442c0102 (diff) | |
download | pki-ticket-474-1.tar.gz pki-ticket-474-1.tar.xz pki-ticket-474-1.zip |
Session-based nonces.ticket-474-1
Previously nonces were stored in a global map which might not scale
well due to some issues:
1. The map uses the nonces as map keys. There were possible nonce
collisions which required special handling.
2. The collision handling code was not thread safe. There were
possible race conditions during concurrent modifications.
3. The map was shared and size limited. If there were a lot of
users using the system, valid nonces could get pruned.
4. The map maps the nonces to client certificates. This limits
the possible authentication methods that can be supported.
Now the code has been modified such that each user has a private map
in the user's session to store the nonces. Additional locking has been
implemented to protect against concurrent modifications. The map now
uses the target of the operation as the map key, eliminating possible
collisions and allowing the use of other authentication methods. Since
this is a private map, it's not affected by the number of users using
the system.
Ticket #474
Diffstat (limited to 'COPYING')
0 files changed, 0 insertions, 0 deletions