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
1ba172d4
Commit
1ba172d4
authored
Oct 01, 2019
by
Małgorzata Ksionek
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update methods to use new path
parent
650ecad9
Changes
31
Hide whitespace changes
Inline
Side-by-side
Showing
31 changed files
with
41 additions
and
41 deletions
+41
-41
go/internal/command/lfsauthenticate/lfsauthenticate_test.go
go/internal/command/lfsauthenticate/lfsauthenticate_test.go
+1
-1
go/internal/command/receivepack/customaction_test.go
go/internal/command/receivepack/customaction_test.go
+1
-1
go/internal/command/shared/accessverifier/accessverifier_test.go
...rnal/command/shared/accessverifier/accessverifier_test.go
+1
-1
go/internal/gitlabnet/accessverifier/client.go
go/internal/gitlabnet/accessverifier/client.go
+1
-1
go/internal/gitlabnet/accessverifier/client_test.go
go/internal/gitlabnet/accessverifier/client_test.go
+1
-1
go/internal/testhelper/requesthandlers/requesthandlers.go
go/internal/testhelper/requesthandlers/requesthandlers.go
+2
-2
lib/gitlab_net.rb
lib/gitlab_net.rb
+1
-1
lib/gitlab_shell.rb
lib/gitlab_shell.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
+2
-2
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
+2
-2
spec/vcr_cassettes/http-pull-disabled.yml
spec/vcr_cassettes/http-pull-disabled.yml
+2
-2
spec/vcr_cassettes/http-push-disabled.yml
spec/vcr_cassettes/http-push-disabled.yml
+2
-2
spec/vcr_cassettes/ssh-pull-disabled.yml
spec/vcr_cassettes/ssh-pull-disabled.yml
+2
-2
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
+2
-2
spec/vcr_cassettes/ssh-pull-project-denied.yml
spec/vcr_cassettes/ssh-pull-project-denied.yml
+2
-2
spec/vcr_cassettes/ssh-push-disabled.yml
spec/vcr_cassettes/ssh-push-disabled.yml
+2
-2
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
+2
-2
No files found.
go/internal/command/lfsauthenticate/lfsauthenticate_test.go
View file @
1ba172d4
...
...
@@ -90,7 +90,7 @@ func TestLfsAuthenticateRequests(t *testing.T) {
},
},
{
Path
:
"/api/v4/internal/allowed"
,
Path
:
"/api/v4/internal/allowed
/secure
"
,
Handler
:
func
(
w
http
.
ResponseWriter
,
r
*
http
.
Request
)
{
b
,
err
:=
ioutil
.
ReadAll
(
r
.
Body
)
defer
r
.
Body
.
Close
()
...
...
go/internal/command/receivepack/customaction_test.go
View file @
1ba172d4
...
...
@@ -22,7 +22,7 @@ func TestCustomReceivePack(t *testing.T) {
requests
:=
[]
testserver
.
TestRequestHandler
{
{
Path
:
"/api/v4/internal/allowed"
,
Path
:
"/api/v4/internal/allowed
/secure
"
,
Handler
:
func
(
w
http
.
ResponseWriter
,
r
*
http
.
Request
)
{
b
,
err
:=
ioutil
.
ReadAll
(
r
.
Body
)
require
.
NoError
(
t
,
err
)
...
...
go/internal/command/shared/accessverifier/accessverifier_test.go
View file @
1ba172d4
...
...
@@ -24,7 +24,7 @@ var (
func
setup
(
t
*
testing
.
T
)
(
*
Command
,
*
bytes
.
Buffer
,
*
bytes
.
Buffer
,
func
())
{
requests
:=
[]
testserver
.
TestRequestHandler
{
{
Path
:
"/api/v4/internal/allowed"
,
Path
:
"/api/v4/internal/allowed
/secure
"
,
Handler
:
func
(
w
http
.
ResponseWriter
,
r
*
http
.
Request
)
{
b
,
err
:=
ioutil
.
ReadAll
(
r
.
Body
)
require
.
NoError
(
t
,
err
)
...
...
go/internal/gitlabnet/accessverifier/client.go
View file @
1ba172d4
...
...
@@ -80,7 +80,7 @@ func (c *Client) Verify(args *commandargs.Shell, action commandargs.CommandType,
request
.
KeyId
=
args
.
GitlabKeyId
}
response
,
err
:=
c
.
client
.
Post
(
"/allowed"
,
request
)
response
,
err
:=
c
.
client
.
Post
(
"/allowed
/secure
"
,
request
)
if
err
!=
nil
{
return
nil
,
err
}
...
...
go/internal/gitlabnet/accessverifier/client_test.go
View file @
1ba172d4
...
...
@@ -157,7 +157,7 @@ func setup(t *testing.T) (*Client, func()) {
requests
:=
[]
testserver
.
TestRequestHandler
{
{
Path
:
"/api/v4/internal/allowed"
,
Path
:
"/api/v4/internal/allowed
/secure
"
,
Handler
:
func
(
w
http
.
ResponseWriter
,
r
*
http
.
Request
)
{
b
,
err
:=
ioutil
.
ReadAll
(
r
.
Body
)
require
.
NoError
(
t
,
err
)
...
...
go/internal/testhelper/requesthandlers/requesthandlers.go
View file @
1ba172d4
...
...
@@ -13,7 +13,7 @@ import (
func
BuildDisallowedByApiHandlers
(
t
*
testing
.
T
)
[]
testserver
.
TestRequestHandler
{
requests
:=
[]
testserver
.
TestRequestHandler
{
{
Path
:
"/api/v4/internal/allowed"
,
Path
:
"/api/v4/internal/allowed
/secure
"
,
Handler
:
func
(
w
http
.
ResponseWriter
,
r
*
http
.
Request
)
{
body
:=
map
[
string
]
interface
{}{
"status"
:
false
,
...
...
@@ -31,7 +31,7 @@ func BuildDisallowedByApiHandlers(t *testing.T) []testserver.TestRequestHandler
func
BuildAllowedWithGitalyHandlers
(
t
*
testing
.
T
,
gitalyAddress
string
)
[]
testserver
.
TestRequestHandler
{
requests
:=
[]
testserver
.
TestRequestHandler
{
{
Path
:
"/api/v4/internal/allowed"
,
Path
:
"/api/v4/internal/allowed
/secure
"
,
Handler
:
func
(
w
http
.
ResponseWriter
,
r
*
http
.
Request
)
{
body
:=
map
[
string
]
interface
{}{
"status"
:
true
,
...
...
lib/gitlab_net.rb
View file @
1ba172d4
...
...
@@ -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"
url
=
"
#{
internal_api_endpoint
}
/allowed
/secure
"
resp
=
post
(
url
,
params
)
case
resp
...
...
lib/gitlab_shell.rb
View file @
1ba172d4
...
...
@@ -77,7 +77,7 @@ class GitlabShell # rubocop:disable Metrics/ClassLength
end
if
@command
==
GIT_RECEIVE_PACK_COMMAND
&&
access_status
.
custom_action?
# If the response from /api/v4/allowed is a HTTP 300, we need to perform
# If the response from /api/v4/allowed
/secure
is a HTTP 300, we need to perform
# a Custom Action and therefore should return and not call process_cmd()
#
return
process_custom_action
(
access_status
)
...
...
spec/gitlab_shell_custom_git_receive_pack_spec.rb
View file @
1ba172d4
...
...
@@ -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'
)
do
|
req
,
res
|
server
.
mount_proc
(
'/api/v4/internal/allowed
/secure
'
)
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 @
1ba172d4
...
...
@@ -26,7 +26,7 @@ describe 'bin/gitlab-shell git-lfs-authentication' do
end
end
server
.
mount_proc
(
'/api/v4/internal/allowed'
)
do
|
req
,
res
|
server
.
mount_proc
(
'/api/v4/internal/allowed
/secure
'
)
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 @
1ba172d4
...
...
@@ -2,7 +2,7 @@
http_interactions
:
-
request
:
method
:
post
uri
:
http://localhost:3000/api/v4/internal/allowed
uri
:
http://localhost:3000/api/v4/internal/allowed
/secure
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
...
...
@@ -41,6 +41,6 @@ http_interactions:
body
:
encoding
:
UTF-8
string
:
'
{"status":true,"gl_repository":"project-3","gl_project_path":"gitlab-org/gitlab.test","repository_path":"/Users/dzaporozhets/Projects/gitlab-development-kit/repositories/gitlab-org/gitlab-test.git"}'
http_version
:
http_version
:
recorded_at
:
Wed, 21 Jun 2017 10:44:52 GMT
recorded_with
:
VCR 2.4.0
spec/vcr_cassettes/allowed-push-project-not-found-404-text-html.yml
View file @
1ba172d4
...
...
@@ -2,7 +2,7 @@
http_interactions
:
-
request
:
method
:
post
uri
:
http://localhost:3000/api/v4/internal/allowed
uri
:
http://localhost:3000/api/v4/internal/allowed
/secure
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 @
1ba172d4
...
...
@@ -2,7 +2,7 @@
http_interactions
:
-
request
:
method
:
post
uri
:
http://localhost:3000/api/v4/internal/allowed
uri
:
http://localhost:3000/api/v4/internal/allowed
/secure
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 @
1ba172d4
...
...
@@ -2,7 +2,7 @@
http_interactions
:
-
request
:
method
:
post
uri
:
http://localhost:3000/api/v4/internal/allowed
uri
:
http://localhost:3000/api/v4/internal/allowed
/secure
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 @
1ba172d4
...
...
@@ -2,7 +2,7 @@
http_interactions
:
-
request
:
method
:
post
uri
:
http://localhost:3000/api/v4/internal/allowed
uri
:
http://localhost:3000/api/v4/internal/allowed
/secure
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 @
1ba172d4
...
...
@@ -2,7 +2,7 @@
http_interactions
:
-
request
:
method
:
post
uri
:
http://localhost:3000/api/v4/internal/allowed
uri
:
http://localhost:3000/api/v4/internal/allowed
/secure
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 @
1ba172d4
...
...
@@ -2,7 +2,7 @@
http_interactions
:
-
request
:
method
:
post
uri
:
http://localhost:3000/api/v4/internal/allowed
uri
:
http://localhost:3000/api/v4/internal/allowed
/secure
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 @
1ba172d4
...
...
@@ -2,7 +2,7 @@
http_interactions
:
-
request
:
method
:
post
uri
:
http://localhost:3000/api/v4/internal/allowed
uri
:
http://localhost:3000/api/v4/internal/allowed
/secure
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
...
...
@@ -41,6 +41,6 @@ http_interactions:
body
:
encoding
:
UTF-8
string
:
'
{"status":true,"gl_repository":"project-3","gl_project_path":"gitlab-org/gitlab.test","repository_path":"/Users/dzaporozhets/Projects/gitlab-development-kit/repositories/gitlab-org/gitlab-test.git"}'
http_version
:
http_version
:
recorded_at
:
Wed, 21 Jun 2017 10:44:52 GMT
recorded_with
:
VCR 2.4.0
spec/vcr_cassettes/http-pull-disabled.yml
View file @
1ba172d4
...
...
@@ -2,7 +2,7 @@
http_interactions
:
-
request
:
method
:
post
uri
:
http://localhost:3000/api/v4/internal/allowed
uri
:
http://localhost:3000/api/v4/internal/allowed
/secure
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
...
...
@@ -41,6 +41,6 @@ http_interactions:
body
:
encoding
:
UTF-8
string
:
'
{"status":false,"message":"Pulling
over
HTTP
is
not
allowed."}'
http_version
:
http_version
:
recorded_at
:
Wed, 21 Jun 2017 10:32:01 GMT
recorded_with
:
VCR 2.4.0
spec/vcr_cassettes/http-push-disabled.yml
View file @
1ba172d4
...
...
@@ -2,7 +2,7 @@
http_interactions
:
-
request
:
method
:
post
uri
:
http://localhost:3000/api/v4/internal/allowed
uri
:
http://localhost:3000/api/v4/internal/allowed
/secure
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
...
...
@@ -41,6 +41,6 @@ http_interactions:
body
:
encoding
:
UTF-8
string
:
'
{"status":false,"message":"Pushing
over
HTTP
is
not
allowed."}'
http_version
:
http_version
:
recorded_at
:
Wed, 21 Jun 2017 10:32:01 GMT
recorded_with
:
VCR 2.4.0
spec/vcr_cassettes/ssh-pull-disabled.yml
View file @
1ba172d4
...
...
@@ -2,7 +2,7 @@
http_interactions
:
-
request
:
method
:
post
uri
:
http://localhost:3000/api/v4/internal/allowed
uri
:
http://localhost:3000/api/v4/internal/allowed
/secure
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
...
...
@@ -41,6 +41,6 @@ http_interactions:
body
:
encoding
:
UTF-8
string
:
'
{"status":false,"message":"Git
access
over
SSH
is
not
allowed"}'
http_version
:
http_version
:
recorded_at
:
Wed, 21 Jun 2017 12:23:57 GMT
recorded_with
:
VCR 2.4.0
spec/vcr_cassettes/ssh-pull-project-denied-401-text-html.yml
View file @
1ba172d4
...
...
@@ -2,7 +2,7 @@
http_interactions
:
-
request
:
method
:
post
uri
:
http://localhost:3000/api/v4/internal/allowed
uri
:
http://localhost:3000/api/v4/internal/allowed
/secure
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 @
1ba172d4
...
...
@@ -2,7 +2,7 @@
http_interactions
:
-
request
:
method
:
post
uri
:
http://localhost:3000/api/v4/internal/allowed
uri
:
http://localhost:3000/api/v4/internal/allowed
/secure
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 @
1ba172d4
...
...
@@ -2,7 +2,7 @@
http_interactions
:
-
request
:
method
:
post
uri
:
http://localhost:3000/api/v4/internal/allowed
uri
:
http://localhost:3000/api/v4/internal/allowed
/secure
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 @
1ba172d4
...
...
@@ -2,7 +2,7 @@
http_interactions
:
-
request
:
method
:
post
uri
:
http://localhost:3000/api/v4/internal/allowed
uri
:
http://localhost:3000/api/v4/internal/allowed
/secure
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
...
...
@@ -41,6 +41,6 @@ http_interactions:
body
:
encoding
:
UTF-8
string
:
'
{"status":false,"message":"Git
access
over
SSH
is
not
allowed"}'
http_version
:
http_version
:
recorded_at
:
Wed, 21 Jun 2017 12:24:05 GMT
recorded_with
:
VCR 2.4.0
spec/vcr_cassettes/ssh-pull-project-denied.yml
View file @
1ba172d4
...
...
@@ -2,7 +2,7 @@
http_interactions
:
-
request
:
method
:
post
uri
:
http://localhost:3000/api/v4/internal/allowed
uri
:
http://localhost:3000/api/v4/internal/allowed
/secure
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
...
...
@@ -41,6 +41,6 @@ http_interactions:
body
:
encoding
:
UTF-8
string
:
'
{"status":false,"message":"Git
access
over
SSH
is
not
allowed"}'
http_version
:
http_version
:
recorded_at
:
Wed, 21 Jun 2017 12:24:04 GMT
recorded_with
:
VCR 2.4.0
spec/vcr_cassettes/ssh-push-disabled.yml
View file @
1ba172d4
...
...
@@ -2,7 +2,7 @@
http_interactions
:
-
request
:
method
:
post
uri
:
http://localhost:3000/api/v4/internal/allowed
uri
:
http://localhost:3000/api/v4/internal/allowed
/secure
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
...
...
@@ -41,6 +41,6 @@ http_interactions:
body
:
encoding
:
UTF-8
string
:
'
{"status":false,"message":"Git
access
over
SSH
is
not
allowed"}'
http_version
:
http_version
:
recorded_at
:
Wed, 21 Jun 2017 12:23:57 GMT
recorded_with
:
VCR 2.4.0
spec/vcr_cassettes/ssh-push-project-denied-401-text-html.yml
View file @
1ba172d4
...
...
@@ -2,7 +2,7 @@
http_interactions
:
-
request
:
method
:
post
uri
:
http://localhost:3000/api/v4/internal/allowed
uri
:
http://localhost:3000/api/v4/internal/allowed
/secure
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 @
1ba172d4
...
...
@@ -2,7 +2,7 @@
http_interactions
:
-
request
:
method
:
post
uri
:
http://localhost:3000/api/v4/internal/allowed
uri
:
http://localhost:3000/api/v4/internal/allowed
/secure
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 @
1ba172d4
...
...
@@ -2,7 +2,7 @@
http_interactions
:
-
request
:
method
:
post
uri
:
http://localhost:3000/api/v4/internal/allowed
uri
:
http://localhost:3000/api/v4/internal/allowed
/secure
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 @
1ba172d4
...
...
@@ -2,7 +2,7 @@
http_interactions
:
-
request
:
method
:
post
uri
:
http://localhost:3000/api/v4/internal/allowed
uri
:
http://localhost:3000/api/v4/internal/allowed
/secure
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
...
...
@@ -41,6 +41,6 @@ http_interactions:
body
:
encoding
:
UTF-8
string
:
'
{"status":false,"message":"Git
access
over
SSH
is
not
allowed"}'
http_version
:
http_version
:
recorded_at
:
Wed, 21 Jun 2017 12:24:04 GMT
recorded_with
:
VCR 2.4.0
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