comparison doc/upgrading.txt @ 4902:a403c29ffaf9

Security fix default user permissions Default user permissions should not include all user attributes. We now limit this to the username, realname and some further attributes depending on the schema. Note that we no longer include the email addresses, depending on your installation you may want to further restrict this or add some attributes like ``address`` and ``alternate_addresses``.
author Ralf Schlatterbeck <rsc@runtux.com>
date Fri, 04 Jul 2014 15:32:28 +0200
parents fa268ea457db
children cf22972fe080
comparison
equal deleted inserted replaced
4901:fa268ea457db 4902:a403c29ffaf9
21 :local: 21 :local:
22 22
23 Migrating from 1.5.0 to 1.5.1 23 Migrating from 1.5.0 to 1.5.1
24 ============================= 24 =============================
25 25
26 For security reasons you should change the permissions on the user
27 class. We previously shipped a configuration that allowed users to see
28 too many of other users details, including hashed passwords under
29 certain circumstances. In schema.py in your tracker, replace the line::
30
31 db.security.addPermissionToRole('User', 'View', 'user')
32
33 with::
34
35 p = db.security.addPermission(name='View', klass='user',
36 properties=('id', 'organisation', 'phone', 'realname',
37 'timezone', 'username'))
38 db.security.addPermissionToRole('User', p)
39
40 Note that this removes visibility of user emails, if you want emails to
41 be visible you can add 'address' and 'alternate_addresses' to the list
42 above.
26 If you have defined your own cgi actions in your tracker instance 43 If you have defined your own cgi actions in your tracker instance
27 (e.g. in a custom ``extensions/spambayes.py`` file) you need to modify 44 (e.g. in a custom ``extensions/spambayes.py`` file) you need to modify
28 all cases where client.error_message or client.ok_message are modified 45 all cases where client.error_message or client.ok_message are modified
29 directly. Instead of:: 46 directly. Instead of::
30 47

Roundup Issue Tracker: http://roundup-tracker.org/