security - Trac. Uploading attachment shows its contents in History View for all users. How to customize privileges? -
i'm using "mypage" plugin trac.
i have figured out useful store ssh keys on private page attachment, can clone git repository computer. have our found user can view history tab, can see content of attachment :/
any idea how secure thing?
since in general meant feature, you'd block 1 or several specific attachments common view.
if true, tracfinegrainedpermissions you. you'll able have like
[wiki:users/killdaclickhome@*/attachment/supersecret.file] killdaclick = attachment_view * = !attachment_view
to deny access specific file yourself. have @ finegrainedpageauthzeditorplugin alternative way define these permission (from web-ui instead of direct access authz file).
you'll think twice granting permission 'trac_admin' - hint these user can edit file , possibly circumvent restriction. 'trac_admin' have 'attachment_view' anyway.
Comments
Post a Comment