Adds ticket security policy based on keyword.
Install
python setup.py bdist_egg
cp dist/TracKeywordSecretTicketsPlugin-*-py*.egg <path-of-trac-env>/plugins/
Overview
Secret ticket is restricted the following role for TICKET_VIEW
permission:
- Reporter.
- Ticket owner.
- All cc.
- Users with
TRAC_ADMIN
permission.
Usage
In components part:
[components]
keywordsecretticket.policy.keywordsecretticketpolicy = enabled
In trac part:
[trac]
permission_policies = KeywordSecretTicketPolicy, ...
In kkbox part:
[kkbox]
insensitive_group = intern,outsourcing
sensitive_keyword = secret
For insensitive_group
, which means users in these groups will be granted TICKET_VIEW
permission only if he/she is reporter, ticket owner, or in cc list.
For sensitive_keyword
sets to secret
, which means when a ticket's keyword contains secret
, then it will become secret ticket.
License
3-clause BSD license. Read COPYING.