Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
8a69d1f0
Commit
8a69d1f0
authored
Jun 15, 2021
by
lauraMon
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Removes security_ci_lint_authorization code
Changelog: security
parent
0a7a0a2c
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
1 addition
and
13 deletions
+1
-13
config/feature_flags/development/security_ci_lint_authorization.yml
...ture_flags/development/security_ci_lint_authorization.yml
+0
-8
lib/api/lint.rb
lib/api/lint.rb
+1
-5
No files found.
config/feature_flags/development/security_ci_lint_authorization.yml
deleted
100644 → 0
View file @
0a7a0a2c
---
name
:
security_ci_lint_authorization
introduced_by_url
:
https://gitlab.com/gitlab-org/security/gitlab/-/merge_requests/1279
rollout_issue_url
:
https://gitlab.com/gitlab-org/gitlab/-/issues/326708
milestone
:
'
14.0'
type
:
development
group
:
group::pipeline authoring
default_enabled
:
false
lib/api/lint.rb
View file @
8a69d1f0
...
...
@@ -11,11 +11,7 @@ module API
optional
:include_merged_yaml
,
type:
Boolean
,
desc:
'Whether or not to include merged CI config yaml in the response'
end
post
'/lint'
do
if
Feature
.
enabled?
(
:security_ci_lint_authorization
)
unauthorized!
if
(
Gitlab
::
CurrentSettings
.
signup_disabled?
||
Gitlab
::
CurrentSettings
.
signup_limited?
)
&&
current_user
.
nil?
else
unauthorized!
if
Gitlab
::
CurrentSettings
.
signup_disabled?
&&
current_user
.
nil?
end
unauthorized!
if
(
Gitlab
::
CurrentSettings
.
signup_disabled?
||
Gitlab
::
CurrentSettings
.
signup_limited?
)
&&
current_user
.
nil?
result
=
Gitlab
::
Ci
::
YamlProcessor
.
new
(
params
[
:content
],
user:
current_user
).
execute
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment