Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-shell
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
0
Merge Requests
0
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-shell
Commits
eff3b3c0
Commit
eff3b3c0
authored
Oct 01, 2019
by
Małgorzata Ksionek
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Reverse ruby changes
parent
1ba172d4
Changes
24
Hide whitespace changes
Inline
Side-by-side
Showing
24 changed files
with
24 additions
and
24 deletions
+24
-24
lib/gitlab_net.rb
lib/gitlab_net.rb
+1
-1
spec/gitlab_shell_custom_git_receive_pack_spec.rb
spec/gitlab_shell_custom_git_receive_pack_spec.rb
+1
-1
spec/gitlab_shell_lfs_authentication_spec.rb
spec/gitlab_shell_lfs_authentication_spec.rb
+1
-1
spec/vcr_cassettes/allowed-pull.yml
spec/vcr_cassettes/allowed-pull.yml
+1
-1
spec/vcr_cassettes/allowed-push-project-not-found-404-text-html.yml
...assettes/allowed-push-project-not-found-404-text-html.yml
+1
-1
spec/vcr_cassettes/allowed-push-project-not-found-404-text-plain.yml
...ssettes/allowed-push-project-not-found-404-text-plain.yml
+1
-1
spec/vcr_cassettes/allowed-push-project-not-found-404.yml
spec/vcr_cassettes/allowed-push-project-not-found-404.yml
+1
-1
spec/vcr_cassettes/allowed-push-project-not-found-text-html.yml
...cr_cassettes/allowed-push-project-not-found-text-html.yml
+1
-1
spec/vcr_cassettes/allowed-push-project-not-found-text-plain.yml
...r_cassettes/allowed-push-project-not-found-text-plain.yml
+1
-1
spec/vcr_cassettes/allowed-push-project-not-found.yml
spec/vcr_cassettes/allowed-push-project-not-found.yml
+1
-1
spec/vcr_cassettes/allowed-push.yml
spec/vcr_cassettes/allowed-push.yml
+1
-1
spec/vcr_cassettes/http-pull-disabled.yml
spec/vcr_cassettes/http-pull-disabled.yml
+1
-1
spec/vcr_cassettes/http-push-disabled.yml
spec/vcr_cassettes/http-push-disabled.yml
+1
-1
spec/vcr_cassettes/ssh-pull-disabled.yml
spec/vcr_cassettes/ssh-pull-disabled.yml
+1
-1
spec/vcr_cassettes/ssh-pull-project-denied-401-text-html.yml
spec/vcr_cassettes/ssh-pull-project-denied-401-text-html.yml
+1
-1
spec/vcr_cassettes/ssh-pull-project-denied-401-text-plain.yml
.../vcr_cassettes/ssh-pull-project-denied-401-text-plain.yml
+1
-1
spec/vcr_cassettes/ssh-pull-project-denied-401.yml
spec/vcr_cassettes/ssh-pull-project-denied-401.yml
+1
-1
spec/vcr_cassettes/ssh-pull-project-denied-with-user.yml
spec/vcr_cassettes/ssh-pull-project-denied-with-user.yml
+1
-1
spec/vcr_cassettes/ssh-pull-project-denied.yml
spec/vcr_cassettes/ssh-pull-project-denied.yml
+1
-1
spec/vcr_cassettes/ssh-push-disabled.yml
spec/vcr_cassettes/ssh-push-disabled.yml
+1
-1
spec/vcr_cassettes/ssh-push-project-denied-401-text-html.yml
spec/vcr_cassettes/ssh-push-project-denied-401-text-html.yml
+1
-1
spec/vcr_cassettes/ssh-push-project-denied-401-text-plain.yml
.../vcr_cassettes/ssh-push-project-denied-401-text-plain.yml
+1
-1
spec/vcr_cassettes/ssh-push-project-denied-401.yml
spec/vcr_cassettes/ssh-push-project-denied-401.yml
+1
-1
spec/vcr_cassettes/ssh-push-project-denied.yml
spec/vcr_cassettes/ssh-push-project-denied.yml
+1
-1
No files found.
lib/gitlab_net.rb
View file @
eff3b3c0
...
...
@@ -28,7 +28,7 @@ class GitlabNet # rubocop:disable Metrics/ClassLength
who_sym
,
_
,
who_v
=
self
.
class
.
parse_who
(
who
)
params
[
who_sym
]
=
who_v
url
=
"
#{
internal_api_endpoint
}
/allowed
/secure
"
url
=
"
#{
internal_api_endpoint
}
/allowed"
resp
=
post
(
url
,
params
)
case
resp
...
...
spec/gitlab_shell_custom_git_receive_pack_spec.rb
View file @
eff3b3c0
...
...
@@ -24,7 +24,7 @@ describe 'Custom bin/gitlab-shell git-receive-pack' do
res
.
body
=
{
"result"
=>
output
}.
to_json
end
server
.
mount_proc
(
'/api/v4/internal/allowed
/secure
'
)
do
|
req
,
res
|
server
.
mount_proc
(
'/api/v4/internal/allowed'
)
do
|
req
,
res
|
res
.
content_type
=
'application/json'
key_id
=
req
.
query
[
'key_id'
]
||
req
.
query
[
'username'
]
...
...
spec/gitlab_shell_lfs_authentication_spec.rb
View file @
eff3b3c0
...
...
@@ -26,7 +26,7 @@ describe 'bin/gitlab-shell git-lfs-authentication' do
end
end
server
.
mount_proc
(
'/api/v4/internal/allowed
/secure
'
)
do
|
req
,
res
|
server
.
mount_proc
(
'/api/v4/internal/allowed'
)
do
|
req
,
res
|
res
.
content_type
=
'application/json'
key_id
=
req
.
query
[
'key_id'
]
||
req
.
query
[
'username'
]
...
...
spec/vcr_cassettes/allowed-pull.yml
View file @
eff3b3c0
...
...
@@ -2,7 +2,7 @@
http_interactions
:
-
request
:
method
:
post
uri
:
http://localhost:3000/api/v4/internal/allowed
/secure
uri
:
http://localhost:3000/api/v4/internal/allowed
body
:
encoding
:
US-ASCII
string
:
action=git-upload-pack&changes=0000000000000000000000000000000000000000+92d0970eefd7acb6d548878925ce2208cfe2d2ec+refs%2Fheads%2Fbranch4&gl_repository&project=gitlab-org%2Fgitlab-test.git&protocol=ssh&env=%7B%7D&key_id=1&secret_token=0a3938d9d95d807e94d937af3a4fbbea%0A
...
...
spec/vcr_cassettes/allowed-push-project-not-found-404-text-html.yml
View file @
eff3b3c0
...
...
@@ -2,7 +2,7 @@
http_interactions
:
-
request
:
method
:
post
uri
:
http://localhost:3000/api/v4/internal/allowed
/secure
uri
:
http://localhost:3000/api/v4/internal/allowed
body
:
encoding
:
US-ASCII
string
:
action=git-receive-pack&changes=0000000000000000000000000000000000000000+92d0970eefd7acb6d548878925ce2208cfe2d2ec+refs%2Fheads%2Fbranch4&gl_repository&project=gitlab-org%2Fgitlab-test.git&protocol=ssh&env=%7B%7D&key_id=1&secret_token=0a3938d9d95d807e94d937af3a4fbbea%0A
...
...
spec/vcr_cassettes/allowed-push-project-not-found-404-text-plain.yml
View file @
eff3b3c0
...
...
@@ -2,7 +2,7 @@
http_interactions
:
-
request
:
method
:
post
uri
:
http://localhost:3000/api/v4/internal/allowed
/secure
uri
:
http://localhost:3000/api/v4/internal/allowed
body
:
encoding
:
US-ASCII
string
:
action=git-receive-pack&changes=0000000000000000000000000000000000000000+92d0970eefd7acb6d548878925ce2208cfe2d2ec+refs%2Fheads%2Fbranch4&gl_repository&project=gitlab-org%2Fgitlab-test.git&protocol=ssh&env=%7B%7D&key_id=1&secret_token=0a3938d9d95d807e94d937af3a4fbbea%0A
...
...
spec/vcr_cassettes/allowed-push-project-not-found-404.yml
View file @
eff3b3c0
...
...
@@ -2,7 +2,7 @@
http_interactions
:
-
request
:
method
:
post
uri
:
http://localhost:3000/api/v4/internal/allowed
/secure
uri
:
http://localhost:3000/api/v4/internal/allowed
body
:
encoding
:
US-ASCII
string
:
action=git-receive-pack&changes=0000000000000000000000000000000000000000+92d0970eefd7acb6d548878925ce2208cfe2d2ec+refs%2Fheads%2Fbranch4&gl_repository&project=gitlab-org%2Fgitlab-test.git&protocol=ssh&env=%7B%7D&key_id=1&secret_token=0a3938d9d95d807e94d937af3a4fbbea%0A
...
...
spec/vcr_cassettes/allowed-push-project-not-found-text-html.yml
View file @
eff3b3c0
...
...
@@ -2,7 +2,7 @@
http_interactions
:
-
request
:
method
:
post
uri
:
http://localhost:3000/api/v4/internal/allowed
/secure
uri
:
http://localhost:3000/api/v4/internal/allowed
body
:
encoding
:
US-ASCII
string
:
action=git-receive-pack&changes=0000000000000000000000000000000000000000+92d0970eefd7acb6d548878925ce2208cfe2d2ec+refs%2Fheads%2Fbranch4&gl_repository&project=gitlab-org%2Fgitlab-test.git&protocol=ssh&env=%7B%7D&key_id=1&secret_token=0a3938d9d95d807e94d937af3a4fbbea%0A
...
...
spec/vcr_cassettes/allowed-push-project-not-found-text-plain.yml
View file @
eff3b3c0
...
...
@@ -2,7 +2,7 @@
http_interactions
:
-
request
:
method
:
post
uri
:
http://localhost:3000/api/v4/internal/allowed
/secure
uri
:
http://localhost:3000/api/v4/internal/allowed
body
:
encoding
:
US-ASCII
string
:
action=git-receive-pack&changes=0000000000000000000000000000000000000000+92d0970eefd7acb6d548878925ce2208cfe2d2ec+refs%2Fheads%2Fbranch4&gl_repository&project=gitlab-org%2Fgitlab-test.git&protocol=ssh&env=%7B%7D&key_id=1&secret_token=0a3938d9d95d807e94d937af3a4fbbea%0A
...
...
spec/vcr_cassettes/allowed-push-project-not-found.yml
View file @
eff3b3c0
...
...
@@ -2,7 +2,7 @@
http_interactions
:
-
request
:
method
:
post
uri
:
http://localhost:3000/api/v4/internal/allowed
/secure
uri
:
http://localhost:3000/api/v4/internal/allowed
body
:
encoding
:
US-ASCII
string
:
action=git-receive-pack&changes=0000000000000000000000000000000000000000+92d0970eefd7acb6d548878925ce2208cfe2d2ec+refs%2Fheads%2Fbranch4&gl_repository&project=gitlab-org%2Fgitlab-test.git&protocol=ssh&env=%7B%7D&key_id=1&secret_token=0a3938d9d95d807e94d937af3a4fbbea%0A
...
...
spec/vcr_cassettes/allowed-push.yml
View file @
eff3b3c0
...
...
@@ -2,7 +2,7 @@
http_interactions
:
-
request
:
method
:
post
uri
:
http://localhost:3000/api/v4/internal/allowed
/secure
uri
:
http://localhost:3000/api/v4/internal/allowed
body
:
encoding
:
US-ASCII
string
:
action=git-receive-pack&changes=0000000000000000000000000000000000000000+92d0970eefd7acb6d548878925ce2208cfe2d2ec+refs%2Fheads%2Fbranch4&gl_repository&project=gitlab-org%2Fgitlab-test.git&protocol=ssh&env=%7B%7D&key_id=1&secret_token=0a3938d9d95d807e94d937af3a4fbbea%0A
...
...
spec/vcr_cassettes/http-pull-disabled.yml
View file @
eff3b3c0
...
...
@@ -2,7 +2,7 @@
http_interactions
:
-
request
:
method
:
post
uri
:
http://localhost:3000/api/v4/internal/allowed
/secure
uri
:
http://localhost:3000/api/v4/internal/allowed
body
:
encoding
:
US-ASCII
string
:
action=git-upload-pack&changes=0000000000000000000000000000000000000000+92d0970eefd7acb6d548878925ce2208cfe2d2ec+refs%2Fheads%2Fbranch4&gl_repository&project=gitlab-org%2Fgitlab-test.git&protocol=http&env=%7B%7D&key_id=1&secret_token=0a3938d9d95d807e94d937af3a4fbbea%0A
...
...
spec/vcr_cassettes/http-push-disabled.yml
View file @
eff3b3c0
...
...
@@ -2,7 +2,7 @@
http_interactions
:
-
request
:
method
:
post
uri
:
http://localhost:3000/api/v4/internal/allowed
/secure
uri
:
http://localhost:3000/api/v4/internal/allowed
body
:
encoding
:
US-ASCII
string
:
action=git-receive-pack&changes=0000000000000000000000000000000000000000+92d0970eefd7acb6d548878925ce2208cfe2d2ec+refs%2Fheads%2Fbranch4&gl_repository&project=gitlab-org%2Fgitlab-test.git&protocol=http&env=%7B%7D&key_id=1&secret_token=0a3938d9d95d807e94d937af3a4fbbea%0A
...
...
spec/vcr_cassettes/ssh-pull-disabled.yml
View file @
eff3b3c0
...
...
@@ -2,7 +2,7 @@
http_interactions
:
-
request
:
method
:
post
uri
:
http://localhost:3000/api/v4/internal/allowed
/secure
uri
:
http://localhost:3000/api/v4/internal/allowed
body
:
encoding
:
US-ASCII
string
:
action=git-upload-pack&changes=0000000000000000000000000000000000000000+92d0970eefd7acb6d548878925ce2208cfe2d2ec+refs%2Fheads%2Fbranch4&gl_repository&project=gitlab-org%2Fgitlab-test.git&protocol=ssh&env=%7B%7D&key_id=1&secret_token=0a3938d9d95d807e94d937af3a4fbbea%0A
...
...
spec/vcr_cassettes/ssh-pull-project-denied-401-text-html.yml
View file @
eff3b3c0
...
...
@@ -2,7 +2,7 @@
http_interactions
:
-
request
:
method
:
post
uri
:
http://localhost:3000/api/v4/internal/allowed
/secure
uri
:
http://localhost:3000/api/v4/internal/allowed
body
:
encoding
:
US-ASCII
string
:
action=git-upload-pack&changes=0000000000000000000000000000000000000000+92d0970eefd7acb6d548878925ce2208cfe2d2ec+refs%2Fheads%2Fbranch4&gl_repository&project=gitlab-org%2Fgitlab-test.git&protocol=ssh&env=%7B%7D&key_id=2&secret_token=0a3938d9d95d807e94d937af3a4fbbea%0A
...
...
spec/vcr_cassettes/ssh-pull-project-denied-401-text-plain.yml
View file @
eff3b3c0
...
...
@@ -2,7 +2,7 @@
http_interactions
:
-
request
:
method
:
post
uri
:
http://localhost:3000/api/v4/internal/allowed
/secure
uri
:
http://localhost:3000/api/v4/internal/allowed
body
:
encoding
:
US-ASCII
string
:
action=git-upload-pack&changes=0000000000000000000000000000000000000000+92d0970eefd7acb6d548878925ce2208cfe2d2ec+refs%2Fheads%2Fbranch4&gl_repository&project=gitlab-org%2Fgitlab-test.git&protocol=ssh&env=%7B%7D&key_id=2&secret_token=0a3938d9d95d807e94d937af3a4fbbea%0A
...
...
spec/vcr_cassettes/ssh-pull-project-denied-401.yml
View file @
eff3b3c0
...
...
@@ -2,7 +2,7 @@
http_interactions
:
-
request
:
method
:
post
uri
:
http://localhost:3000/api/v4/internal/allowed
/secure
uri
:
http://localhost:3000/api/v4/internal/allowed
body
:
encoding
:
US-ASCII
string
:
action=git-upload-pack&changes=0000000000000000000000000000000000000000+92d0970eefd7acb6d548878925ce2208cfe2d2ec+refs%2Fheads%2Fbranch4&gl_repository&project=gitlab-org%2Fgitlab-test.git&protocol=ssh&env=%7B%7D&key_id=2&secret_token=0a3938d9d95d807e94d937af3a4fbbea%0A
...
...
spec/vcr_cassettes/ssh-pull-project-denied-with-user.yml
View file @
eff3b3c0
...
...
@@ -2,7 +2,7 @@
http_interactions
:
-
request
:
method
:
post
uri
:
http://localhost:3000/api/v4/internal/allowed
/secure
uri
:
http://localhost:3000/api/v4/internal/allowed
body
:
encoding
:
US-ASCII
string
:
action=git-upload-pack&changes=0000000000000000000000000000000000000000+92d0970eefd7acb6d548878925ce2208cfe2d2ec+refs%2Fheads%2Fbranch4&gl_repository&project=gitlab-org%2Fgitlab-test.git&protocol=ssh&env=%7B%7D&user_id=2&secret_token=0a3938d9d95d807e94d937af3a4fbbea%0A
...
...
spec/vcr_cassettes/ssh-pull-project-denied.yml
View file @
eff3b3c0
...
...
@@ -2,7 +2,7 @@
http_interactions
:
-
request
:
method
:
post
uri
:
http://localhost:3000/api/v4/internal/allowed
/secure
uri
:
http://localhost:3000/api/v4/internal/allowed
body
:
encoding
:
US-ASCII
string
:
action=git-upload-pack&changes=0000000000000000000000000000000000000000+92d0970eefd7acb6d548878925ce2208cfe2d2ec+refs%2Fheads%2Fbranch4&gl_repository&project=gitlab-org%2Fgitlab-test.git&protocol=ssh&env=%7B%7D&key_id=2&secret_token=0a3938d9d95d807e94d937af3a4fbbea%0A
...
...
spec/vcr_cassettes/ssh-push-disabled.yml
View file @
eff3b3c0
...
...
@@ -2,7 +2,7 @@
http_interactions
:
-
request
:
method
:
post
uri
:
http://localhost:3000/api/v4/internal/allowed
/secure
uri
:
http://localhost:3000/api/v4/internal/allowed
body
:
encoding
:
US-ASCII
string
:
action=git-receive-pack&changes=0000000000000000000000000000000000000000+92d0970eefd7acb6d548878925ce2208cfe2d2ec+refs%2Fheads%2Fbranch4&gl_repository&project=gitlab-org%2Fgitlab-test.git&protocol=ssh&env=%7B%7D&key_id=1&secret_token=0a3938d9d95d807e94d937af3a4fbbea%0A
...
...
spec/vcr_cassettes/ssh-push-project-denied-401-text-html.yml
View file @
eff3b3c0
...
...
@@ -2,7 +2,7 @@
http_interactions
:
-
request
:
method
:
post
uri
:
http://localhost:3000/api/v4/internal/allowed
/secure
uri
:
http://localhost:3000/api/v4/internal/allowed
body
:
encoding
:
US-ASCII
string
:
action=git-receive-pack&changes=0000000000000000000000000000000000000000+92d0970eefd7acb6d548878925ce2208cfe2d2ec+refs%2Fheads%2Fbranch4&gl_repository&project=gitlab-org%2Fgitlab-test.git&protocol=ssh&env=%7B%7D&key_id=2&secret_token=0a3938d9d95d807e94d937af3a4fbbea%0A
...
...
spec/vcr_cassettes/ssh-push-project-denied-401-text-plain.yml
View file @
eff3b3c0
...
...
@@ -2,7 +2,7 @@
http_interactions
:
-
request
:
method
:
post
uri
:
http://localhost:3000/api/v4/internal/allowed
/secure
uri
:
http://localhost:3000/api/v4/internal/allowed
body
:
encoding
:
US-ASCII
string
:
action=git-receive-pack&changes=0000000000000000000000000000000000000000+92d0970eefd7acb6d548878925ce2208cfe2d2ec+refs%2Fheads%2Fbranch4&gl_repository&project=gitlab-org%2Fgitlab-test.git&protocol=ssh&env=%7B%7D&key_id=2&secret_token=0a3938d9d95d807e94d937af3a4fbbea%0A
...
...
spec/vcr_cassettes/ssh-push-project-denied-401.yml
View file @
eff3b3c0
...
...
@@ -2,7 +2,7 @@
http_interactions
:
-
request
:
method
:
post
uri
:
http://localhost:3000/api/v4/internal/allowed
/secure
uri
:
http://localhost:3000/api/v4/internal/allowed
body
:
encoding
:
US-ASCII
string
:
action=git-receive-pack&changes=0000000000000000000000000000000000000000+92d0970eefd7acb6d548878925ce2208cfe2d2ec+refs%2Fheads%2Fbranch4&gl_repository&project=gitlab-org%2Fgitlab-test.git&protocol=ssh&env=%7B%7D&key_id=2&secret_token=0a3938d9d95d807e94d937af3a4fbbea%0A
...
...
spec/vcr_cassettes/ssh-push-project-denied.yml
View file @
eff3b3c0
...
...
@@ -2,7 +2,7 @@
http_interactions
:
-
request
:
method
:
post
uri
:
http://localhost:3000/api/v4/internal/allowed
/secure
uri
:
http://localhost:3000/api/v4/internal/allowed
body
:
encoding
:
US-ASCII
string
:
action=git-receive-pack&changes=0000000000000000000000000000000000000000+92d0970eefd7acb6d548878925ce2208cfe2d2ec+refs%2Fheads%2Fbranch4&gl_repository&project=gitlab-org%2Fgitlab-test.git&protocol=ssh&env=%7B%7D&key_id=2&secret_token=0a3938d9d95d807e94d937af3a4fbbea%0A
...
...
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