Commit 19b7883d authored by Evan Read's avatar Evan Read

Merge branch 'selhorn-linkingdeploy' into 'master'

Linking between Deploy keys/Deploy tokens topics

Closes #209692

See merge request gitlab-org/gitlab!26809
parents 415e0840 2b90f926
...@@ -334,20 +334,23 @@ git remote set-url origin git@<user_1.gitlab.com>:gitlab-org/gitlab.git ...@@ -334,20 +334,23 @@ git remote set-url origin git@<user_1.gitlab.com>:gitlab-org/gitlab.git
## Deploy keys ## Deploy keys
### Per-repository deploy keys
Deploy keys allow read-only or read-write (if enabled) access to one or Deploy keys allow read-only or read-write (if enabled) access to one or
multiple projects with a single SSH key pair. multiple repositories with a single SSH key pair.
This is really useful for cloning repositories to your Continuous This is useful for cloning repositories to your Continuous
Integration (CI) server. By using deploy keys, you don't have to set up a Integration (CI) server. By using deploy keys, you don't have to set up a
dummy user account. dummy user account.
Project maintainers and owners can add a deploy key. To add one: If you don't have a key pair, you might want to use a
[deploy token](../user/project/deploy_tokens/index.md#deploy-tokens) instead.
### Per-repository deploy keys
Project maintainers and owners can add a deploy key for a repository.
1. Go to the settings page: 1. Navigate to the project's **Settings** page, then:
- On GitLab 12.8 and earlier, navigate to the project's **Settings > Repository**. - On GitLab 12.8 and earlier, click **Repository**.
- On GitLab 12.9 and later, navigate to the project's **Settings > CI / CD**. - On GitLab 12.9 and later, click **CI / CD**.
1. Expand the **Deploy Keys** section. 1. Expand the **Deploy Keys** section.
1. Specify a title for the new deploy key and paste a public SSH key. 1. Specify a title for the new deploy key and paste a public SSH key.
...@@ -356,7 +359,7 @@ read-write (if enabled) access to the project. ...@@ -356,7 +359,7 @@ read-write (if enabled) access to the project.
You can't add the same deploy key twice using the form. You can't add the same deploy key twice using the form.
If you want to add the same key to another project, please enable it in the If you want to add the same key to another project, please enable it in the
list that says 'Deploy keys from projects available to you'. All the deploy list that says **Deploy keys from projects available to you**. All the deploy
keys of all the projects you have access to are available. This project keys of all the projects you have access to are available. This project
access can happen through being a direct member of the project, or through access can happen through being a direct member of the project, or through
a group. a group.
...@@ -366,10 +369,10 @@ project. ...@@ -366,10 +369,10 @@ project.
### Global shared deploy keys ### Global shared deploy keys
Global Shared Deploy keys allow read-only or read-write (if enabled) access to Global Shared Deploy keys allow read-only or read-write access to
be configured on any repository in the entire GitLab installation. any repository in the entire GitLab installation.
This is really useful for integrating repositories to secured, shared Continuous This is useful for integrating repositories to secured, shared Continuous
Integration (CI) services or other shared services. Integration (CI) services or other shared services.
GitLab administrators can set up the Global Shared Deploy key in GitLab and GitLab administrators can set up the Global Shared Deploy key in GitLab and
add the private key to any shared systems. Individual repositories opt into add the private key to any shared systems. Individual repositories opt into
......
...@@ -3,10 +3,11 @@ ...@@ -3,10 +3,11 @@
> - [Introduced][ce-17894] in GitLab 10.7. > - [Introduced][ce-17894] in GitLab 10.7.
> - [Moved](https://gitlab.com/gitlab-org/gitlab/issues/199370) from **Settings > Repository** in GitLab 12.9. > - [Moved](https://gitlab.com/gitlab-org/gitlab/issues/199370) from **Settings > Repository** in GitLab 12.9.
Deploy tokens allow you to download (through `git clone`) or read the container registry images of a project without having a user and a password. Deploy tokens allow you to download (`git clone`) or read the container registry images of a project without having a user and a password.
Please note that deploy tokens expire on the date you define, Deploy tokens can be managed by [maintainers only](../../permissions.md).
at midnight UTC, and that they can be only managed by [maintainers](../../permissions.md).
If you have a key pair, you might want to use [deploy keys](../../../ssh/README.md#deploy-keys) instead.
## Creating a Deploy Token ## Creating a Deploy Token
...@@ -24,6 +25,10 @@ You can create as many deploy tokens as you like from the settings of your proje ...@@ -24,6 +25,10 @@ You can create as many deploy tokens as you like from the settings of your proje
![Personal access tokens page](img/deploy_tokens.png) ![Personal access tokens page](img/deploy_tokens.png)
## Deploy token expiration
Deploy tokens expire on the date you define, at midnight UTC.
## Revoking a deploy token ## Revoking a deploy token
At any time, you can revoke any deploy token by just clicking the At any time, you can revoke any deploy token by just clicking the
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment