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
35d204d5
Commit
35d204d5
authored
Aug 01, 2018
by
Ash McKenzie
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed comments in bin/gitlab-shell-authorized*
parent
5709ea1a
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
4 deletions
+4
-4
bin/gitlab-shell-authorized-keys-check
bin/gitlab-shell-authorized-keys-check
+1
-1
bin/gitlab-shell-authorized-principals-check
bin/gitlab-shell-authorized-principals-check
+3
-3
No files found.
bin/gitlab-shell-authorized-keys-check
View file @
35d204d5
...
...
@@ -5,7 +5,7 @@
# command for a given ssh key fingerprint
#
# Ex.
# bin/gitlab-shell-authorized-keys-check <username> <public-key>
# bin/gitlab-shell-authorized-keys-check <
expected-username> <actual-
username> <public-key>
#
# Returns
# command="/bin/gitlab-shell key-#",no-port-forwarding,no-X11-forwarding,no-agent-forwarding,no-pty ssh-rsa AAAA...
...
...
bin/gitlab-shell-authorized-principals-check
View file @
35d204d5
...
...
@@ -6,7 +6,7 @@
# the right options.
#
# Ex.
# bin/gitlab-shell-authorized-
key
s-check <key-id> <principal1> [<principal2>...]
# bin/gitlab-shell-authorized-
principal
s-check <key-id> <principal1> [<principal2>...]
#
# Returns one line per principal passed in, e.g.:
# command="/bin/gitlab-shell username-{KEY_ID}",no-port-forwarding,no-X11-forwarding,no-agent-forwarding,no-pty {PRINCIPAL}
...
...
@@ -23,9 +23,9 @@ key_id = ARGV[0]
abort
'# No key_id provided'
if
key_id
.
nil?
||
key_id
==
''
principals
=
ARGV
[
1
..-
1
]
principals
.
each
{
|
principal
|
principals
.
each
do
|
principal
|
abort
'# An invalid principal was provided'
if
principal
.
nil?
||
principal
==
''
}
end
require_relative
'../lib/gitlab_init'
require_relative
'../lib/gitlab_net'
...
...
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