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
cab5f1f1
Commit
cab5f1f1
authored
Jun 22, 2018
by
GitLab Bot
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'upstream/master' into ce-to-ee-2018-06-22
# Conflicts: # doc/topics/autodevops/index.md [ci skip]
parents
69c8c67c
9c321464
Changes
7
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
18 additions
and
5 deletions
+18
-5
app/controllers/application_controller.rb
app/controllers/application_controller.rb
+1
-1
app/controllers/health_controller.rb
app/controllers/health_controller.rb
+1
-1
app/controllers/metrics_controller.rb
app/controllers/metrics_controller.rb
+1
-1
app/controllers/omniauth_callbacks_controller.rb
app/controllers/omniauth_callbacks_controller.rb
+1
-1
changelogs/unreleased/blackst0ne-fix-protect-from-forgery-in-application-controller.yml
...ne-fix-protect-from-forgery-in-application-controller.yml
+5
-0
doc/topics/autodevops/index.md
doc/topics/autodevops/index.md
+8
-0
lib/gitlab/request_forgery_protection.rb
lib/gitlab/request_forgery_protection.rb
+1
-1
No files found.
app/controllers/application_controller.rb
View file @
cab5f1f1
...
...
@@ -27,7 +27,7 @@ class ApplicationController < ActionController::Base
after_action
:set_page_title_header
,
if:
->
{
request
.
format
==
:json
}
protect_from_forgery
with: :exception
protect_from_forgery
with: :exception
,
prepend:
true
helper_method
:can?
helper_method
:import_sources_enabled?
,
:github_import_enabled?
,
:gitea_import_enabled?
,
:github_import_configured?
,
:gitlab_import_enabled?
,
:gitlab_import_configured?
,
:bitbucket_import_enabled?
,
:bitbucket_import_configured?
,
:google_code_import_enabled?
,
:fogbugz_import_enabled?
,
:git_import_enabled?
,
:gitlab_project_import_enabled?
...
...
app/controllers/health_controller.rb
View file @
cab5f1f1
class
HealthController
<
ActionController
::
Base
protect_from_forgery
with: :exception
,
except: :storage_check
protect_from_forgery
with: :exception
,
except: :storage_check
,
prepend:
true
include
RequiresWhitelistedMonitoringClient
CHECKS
=
[
...
...
app/controllers/metrics_controller.rb
View file @
cab5f1f1
class
MetricsController
<
ActionController
::
Base
include
RequiresWhitelistedMonitoringClient
protect_from_forgery
with: :exception
protect_from_forgery
with: :exception
,
prepend:
true
def
index
response
=
if
Gitlab
::
Metrics
.
prometheus_metrics_enabled?
...
...
app/controllers/omniauth_callbacks_controller.rb
View file @
cab5f1f1
...
...
@@ -3,7 +3,7 @@ class OmniauthCallbacksController < Devise::OmniauthCallbacksController
include
Devise
::
Controllers
::
Rememberable
prepend
EE
::
OmniauthCallbacksController
protect_from_forgery
except:
[
:kerberos
,
:saml
,
:cas3
]
protect_from_forgery
except:
[
:kerberos
,
:saml
,
:cas3
]
,
prepend:
true
def
handle_omniauth
omniauth_flow
(
Gitlab
::
Auth
::
OAuth
)
...
...
changelogs/unreleased/blackst0ne-fix-protect-from-forgery-in-application-controller.yml
0 → 100644
View file @
cab5f1f1
---
title
:
"
[Rails5]
Force
the
callback
run
first"
merge_request
:
20055
author
:
"
@blackst0ne"
type
:
fixed
doc/topics/autodevops/index.md
View file @
cab5f1f1
...
...
@@ -323,7 +323,11 @@ report is created, it's uploaded as an artifact which you can later download and
check out.
Any security warnings are also
<<<<<<< HEAD
[shown in the merge request widget](../../user/project/merge_requests/dependency_scanning.md).
=======
[
shown in the merge request widget
](
https://docs.gitlab.com/ee//user/project/merge_requests/dependency_scanning.html
)
.
>>>>>>> upstream/master
### Auto License Management **[ULTIMATE]**
...
...
@@ -336,7 +340,11 @@ report is created, it's uploaded as an artifact which you can later download and
check out.
Any licenses are also
<<<<<<< HEAD
[shown in the merge request widget](../../user/project/merge_requests/license_management.md).
=======
[
shown in the merge request widget
](
https://docs.gitlab.com/ee//user/project/merge_requests/license_management.html
)
.
>>>>>>> upstream/master
### Auto Container Scanning
...
...
lib/gitlab/request_forgery_protection.rb
View file @
cab5f1f1
...
...
@@ -5,7 +5,7 @@
module
Gitlab
module
RequestForgeryProtection
class
Controller
<
ActionController
::
Base
protect_from_forgery
with: :exception
protect_from_forgery
with: :exception
,
prepend:
true
rescue_from
ActionController
::
InvalidAuthenticityToken
do
|
e
|
logger
.
warn
"This CSRF token verification failure is handled internally by `GitLab::RequestForgeryProtection`"
...
...
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