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
f165783d
Commit
f165783d
authored
Feb 14, 2022
by
Robert May
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Block external fork mirrors
Changelog: fixed
parent
f536b8cd
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
0 additions
and
19 deletions
+0
-19
config/feature_flags/development/block_external_fork_network_mirrors.yml
...flags/development/block_external_fork_network_mirrors.yml
+0
-8
ee/app/models/ee/project.rb
ee/app/models/ee/project.rb
+0
-2
ee/spec/models/project_spec.rb
ee/spec/models/project_spec.rb
+0
-9
No files found.
config/feature_flags/development/block_external_fork_network_mirrors.yml
deleted
100644 → 0
View file @
f536b8cd
---
name
:
block_external_fork_network_mirrors
introduced_by_url
:
https://gitlab.com/gitlab-org/gitlab/-/merge_requests/60735
rollout_issue_url
:
milestone
:
'
14.0'
type
:
development
group
:
group::source code
default_enabled
:
true
ee/app/models/ee/project.rb
View file @
f165783d
...
...
@@ -975,8 +975,6 @@ module EE
# If the project is inside a fork network, the mirror URL must
# also belong to a member of that fork network
def
import_url_inside_fork_network
return
unless
::
Feature
.
enabled?
(
:block_external_fork_network_mirrors
,
self
,
default_enabled: :yaml
)
if
forked?
mirror_project
=
::
Project
.
find_by_url
(
import_url
)
...
...
ee/spec/models/project_spec.rb
View file @
f165783d
...
...
@@ -2709,15 +2709,6 @@ RSpec.describe Project do
stub_config_setting
(
host:
'gitlab.com'
)
end
context
'feature flag is disabled'
do
before
do
stub_feature_flags
(
block_external_fork_network_mirrors:
false
)
project
.
import_url
=
"https://customgitlab.com/foo/bar.git"
end
it
{
is_expected
.
to
be_valid
}
end
context
'the project is the root of the fork network'
do
before
do
project
.
import_url
=
"https://customgitlab.com/foo/bar.git"
...
...
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