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
997ee353
Commit
997ee353
authored
May 04, 2020
by
Will Chandler
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Split up shell and gitaly auth
parent
1bee9389
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
20 additions
and
4 deletions
+20
-4
doc/administration/gitaly/index.md
doc/administration/gitaly/index.md
+20
-4
No files found.
doc/administration/gitaly/index.md
View file @
997ee353
...
...
@@ -104,11 +104,29 @@ Omnibus GitLab or install it from source:
### 2. Authentication
Gitaly and GitLab use two shared secrets for authentication, one to authenticate gRPC requests
to Gitaly, and a second for authentication callbacks from Git
aly
to the GitLab internal API.
to Gitaly, and a second for authentication callbacks from Git
Lab-Shell
to the GitLab internal API.
**For Omnibus GitLab**
There are two ways to configure the required tokens:
To configure the Gitaly token:
1.
On the client server, edit
`/etc/gitlab/gitlab.rb`
:
```
ruby
gitlab_rails
[
'gitaly_token'
]
=
'abc123secret'
```
1.
Save the file and
[
reconfigure GitLab
](
../restart_gitlab.md#omnibus-gitlab-reconfigure
)
.
1.
On the Gitaly server, edit
`/etc/gitlab/gitlab.rb`
:
```
ruby
gitaly
[
'auth_token'
]
=
'abc123secret'
```
1.
[
Reconfigure GitLab
](
../restart_gitlab.md#omnibus-gitlab-reconfigure
)
.
There are two ways to configure the GitLab-Shell token:
1.
Copy
`/etc/gitlab/gitlab-secrets.json`
from the client server to same path on the Gitaly server.
1.
[
Reconfigure GitLab
](
../restart_gitlab.md#omnibus-gitlab-reconfigure
)
.
...
...
@@ -118,7 +136,6 @@ There are two ways to configure the required tokens:
1.
On the client server, edit
`/etc/gitlab/gitlab.rb`
:
```
ruby
gitlab_rails
[
'gitaly_token'
]
=
'abc123secret'
gitlab_shell
[
'secret_token'
]
=
'shellsecret'
```
...
...
@@ -127,7 +144,6 @@ There are two ways to configure the required tokens:
1.
On the Gitaly server, edit
`/etc/gitlab/gitlab.rb`
:
```
ruby
gitaly
[
'auth_token'
]
=
'abc123secret'
gitlab_shell
[
'secret_token'
]
=
'shellsecret'
```
...
...
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