Skip to main content

Modified ticket security for Trac.

Project description

Notes

Allow users to only see tickets they are associated with.

There are three main permissions for this plugin: TICKET_VIEW_REPORTER, TICKET_VIEW_CC, and TICKET_VIEW_OWNER. TICKET_VIEW_SELF is an alias for all three of these.

With each permission, users will only be able to see tickets where they are the person mentioned in the permission. So if a user has TICKET_VIEW_REPORTER, they can only see tickets they reported. For TICKET_VIEW_CC, they just have to be included in the CC list.

There are also group-based permissions: TICKET_VIEW_REPORTER_GROUP, TICKET_VIEW_CC_GROUP, and TICKET_VIEW_OWNER_GROUP. These work in a similar way to their non-group counterparts, except that you are granted access if you share a group with the target user. For example, if ticket 1 was reported by Allan, and Allan and Bob are both in the group company_foo, and Bob has TICKET_VIEW_REPORTER_GROUP, then Bob will be able to see ticket 1 since he shares a group with the reporter. Each group-based permission is also an alias for the normal one, so you do not have to grant both. TICKET_VIEW_GROUP is an alias for all the group-based permissions (and therefore all the normal ones as well).

These extra permissions can only deny access, not allow it. This means the user must still have TICKET_VIEW granted as normal.

Finally, users with TRAC_ADMIN will not be restricted by this plugin.

Configuration

All configuration options go in the [privatetickets] section.

group_blacklist

Groups to ignore for the purposes of the *_GROUP permissions.

Defaults to “anonymous, authenticated

You must also add PrivateTicketsPolicy to your permission_policies setting in trac.ini. It must be before the DefaultPermissionPolicy. See below for an example if you don’t have any other policies.

Example

An example configuration:

[privatetickets]
group_blacklist = anonymous, authenticated, labusers

[components]
privatetickets.* = enabled

[trac]
permission_policies = PrivateTicketsPolicy, DefaultPermissionPolicy, LegacyAttachmentPolicy

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

TracPrivateTickets-2.0.tar.gz (3.7 kB view details)

Uploaded Source

Built Distributions

TracPrivateTickets-2.0-py2.5.egg (21.4 kB view details)

Uploaded Source

TracPrivateTickets-2.0-py2.4.egg (21.7 kB view details)

Uploaded Source

TracPrivateTickets-2.0-py2.3.egg (54.9 kB view details)

Uploaded Source

File details

Details for the file TracPrivateTickets-2.0.tar.gz.

File metadata

File hashes

Hashes for TracPrivateTickets-2.0.tar.gz
Algorithm Hash digest
SHA256 217bad7c43a61f72d5e7005808686650a0b3f96d2667e77462ce698204bb460c
MD5 9997733eed1e70e8ea1075e1daea5c6b
BLAKE2b-256 8cadb89d5e95affcd6daf9e8bc036ba4b2d713fc782a409ecfd8ff37ae40d6de

See more details on using hashes here.

File details

Details for the file TracPrivateTickets-2.0-py2.5.egg.

File metadata

File hashes

Hashes for TracPrivateTickets-2.0-py2.5.egg
Algorithm Hash digest
SHA256 b843021f3ce4c75593e36dfaf7601dffc86df93bb6530cfafa97084ed2aa62c9
MD5 641faec813903c0808566e99603e06a0
BLAKE2b-256 c65b9ea8b7ee27c8138da2e953f8dadfdcf15353f802c8e14fb3ec7249ccebb7

See more details on using hashes here.

File details

Details for the file TracPrivateTickets-2.0-py2.4.egg.

File metadata

File hashes

Hashes for TracPrivateTickets-2.0-py2.4.egg
Algorithm Hash digest
SHA256 29cad137ce5176e8c74650a35ae845eead6c842586ae5a5f233d9b11764a06c5
MD5 04e11a9866e76b7fc106cd5f09c64c1c
BLAKE2b-256 642ae61d151f6dbe1364ed91128d4b958c77582485d20ffa5b05f12983186410

See more details on using hashes here.

File details

Details for the file TracPrivateTickets-2.0-py2.3.egg.

File metadata

File hashes

Hashes for TracPrivateTickets-2.0-py2.3.egg
Algorithm Hash digest
SHA256 1745820b64ddb8218d0de2d05ecf3fdf63fbb42331b80e4437a5f254613e6dfc
MD5 f9226daed65d44b7506fc706f6b71126
BLAKE2b-256 c5afce8e779480b13514cf679c492714949dde7b7649405b11d16b3e24ce6b0a

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page