Help Center/ CodeArts Repo/ User Guide/ Security Management/ Configuring a Deploy Key for a Repository
Updated on 2025-04-03 GMT+08:00

Configuring a Deploy Key for a Repository

Constraints

  • Multiple repositories can use the same deploy key, and a maximum of 10 deploy keys can be added to a repository.
  • The difference between an SSH key and repository deploy key is that the former is associated with a user and PC and the latter is associated with a code repository. The SSH key has the read and write permissions on the repository, and the deploy key has the read-only permission on the repository.
  • The settings take effect only for the repository configured.

Configure a Deploy Key

For security purposes, some repositories can only be cloned and downloaded and do not support other change operations such as merge code. You can configure a deploy key for a read-only repository.

To generate a deploy key locally, choose Settings > Security Management > Deploy Key on the repository details page. On the Deploy Key page, click Add Deploy Key. For details about how to generate an SSH key locally, see step 1 to step 3 in Configuring an SSH Key.