Allow anonymous user to access pipelines
What does this MR do?
It fixes an issue where the Pipelines is shown for the Anonymous users, but they get 404 when clicked. Their session is then logged out.
Fixes #17717 (closed).
Merge request reports
Activity
Reassigned to @DouweM
mentioned in issue #17705 (closed)
mentioned in issue #17519 (closed)
mentioned in issue #17717 (closed)
20 20 - Updated gitlab_git to 10.1.0 21 21 - GitAccess#protected_tag? no longer loads all tags just to check if a single one exists 22 22 - Reduce delay in destroying a project from 1-minute to immediately 23 - Fix access to Pipelines by Anonymous user LGTM. We only should move CHANGELOG entry according to @grzesiek's comment
Added 36 commits:
- 2fa60114...b4c47368 - 34 commits from branch
master
- 479fec7b - Allow anonymous user to access pipelines
- eac409cf - Move Changelog for pipeline fix to valid version
- 2fa60114...b4c47368 - 34 commits from branch
Will this give an anonymous user access to look at any pipeline of a private project?
UPDATE: I think not given the
read_project
access is necessary, but I want to make sure we're not introducing a security issue.Edited by Stan Hu/cc: @rspeicher Can you do a review of this just to make sure we're not overlooking something here?
The
anonymous_project_abilities
are evaluated only for public projects: https://gitlab.com/gitlab-org/gitlab-ce/blob/eac409cf140aa734f3fb22bd03399b36ca584460/app/models/ability.rb#L53mentioned in issue #17715 (closed)
@stanhu Rebased.
Reassigned to @rspeicher
mentioned in commit b0e12290
mentioned in commit dbdeccdd
mentioned in issue #17731 (closed)
mentioned in commit 2b7b6c23
mentioned in commit afe67493
mentioned in issue #17885 (closed)