プロジェクト

全般

プロフィール

Vote #77747

未完了

Restrict permissions for anonymous role

Admin Redmine さんが約4年前に追加. 約4年前に更新.

ステータス:
New
優先度:
通常
担当者:
-
カテゴリ:
Permissions and roles_17
対象バージョン:
-
開始日:
2022/05/09
期日:
進捗率:

0%

予定工数:
category_id:
17
version_id:
0
issue_org_id:
23634
author_id:
154757
assigned_to_id:
0
comments:
4
status_id:
1
tracker_id:
2
plus1:
0
affected_version:
closed_on:
affected_version_id:
ステータス-->[New]

説明

Even when all permissions for the anonymous role are deactivated, without login in users can still see

  • the project list
  • public project members
  • activity in public projects
  • news in public projects

It would be a useful feature to be able to disable all access for anonymous users, i.e. include additional options "view public project list", "view activity" and "view news" in the roles/permissions configuration.

The current setting leads to some display sideeffects. Links to issues and versions in news items aren't displayed properly, but rather their sourcecode:

View for any logged-in user:
!news_user.PNG!

View for anonymous:
!news_anon.PNG!


journals

--------------------------------------------------------------------------------
These permissions you ask for are all related currently:

* Public projects are visible to all users. The data inside these projects is visible based on the permissions of the respective roles.
* The members list of projects a user can see is also visible to them. This is because in order to be able to use filters and show issues, the members are visible anyway.
* If a user can see a project (either by being a member or because it is public), they can also see the activity view. The contents of the activity view is restricted to the data a user can see based on their permissions
* "View news" is not a separate permission since the idea is that all user participating in a project also should be able to view the news. The implicit "view news" permission is thus bound to the ability to see a project.

Thus, in the end, it boils down to the question of whether anonymous users should be able to see public projects. This can already be configured in *Administration* -> *Settings* -> *Authentication* -> *Authentication required*. If the setting is enabled, all access of the Anonymous role is effectively disabled which appears to be what you want to achieve.

As for your observation that sometimes the source code is shown, this is an consequence of how these links are handled. The renderer checks the permissions of the current user. Only if the user is allowed to see the linked-to object (a version in this case), the link is rendered. If the permission would not be checked, some additional data might be inadvertently leaked like the subject for issues.
--------------------------------------------------------------------------------
Thank you for the explanation. We have indeed changed the configuration to require authentication as described. While not ideal, this setting currently works for us. Separate permission settings "view public project list", "view project members", "view activity" and "view news" would still be useful for better role and access definitions.
--------------------------------------------------------------------------------
I would like to use redmine so customers can anonymously submit bugs but don't have access to anything else apart from the project name.

Due to security policies, the fact that redmine shows member names, roles, news, etc means I cannot used the anonymous/public project feature.
--------------------------------------------------------------------------------

他の形式にエクスポート: Atom PDF

いいね!0
いいね!0