Apsara Devops Code Management (Codeup) offers multiple secure and efficient authentication methods, such as SSH keys, HTTPS clone account passwords, and personal access tokens. This topic introduces the configuration of these authentication mechanisms and provides links for detailed procedures.
Configure SSH Keys
The SSH protocol enables secure code push and pull operations without password entry, outperforming the HTTP(S) protocol in both performance and security. Here's how to configure SSH keys:
Prerequisites: Ensure Git (version > 1.9) and OpenSSH client are installed on your local machine. Windows users should consider using WSL or Git Bash.
Supported Encryption Algorithm Types:
ED25519 (recommended).
RSA (not recommended).
Procedure
Check Existing SSH Keys
First, verify if there is an active SSH key pair on your local machine. If one exists, you can bypass generating a new key.
# For ED25519 algorithm
cat ~/.ssh/id_ed25519.pub
# For RSA algorithm
cat ~/.ssh/id_rsa.pubGenerate New SSH Key
If no key is found, generate a new SSH key pair with the following command, using ED25519 as an example:
ssh-keygen -t ed25519 -C "your_email@example.com"Follow the prompts to select a save path and set a passphrase (which can be empty). Keep the private key file secure and do not share it.
Add Public Key to Codeup
The last step is to add the generated public key to your Codeup account.
For more information, see configure SSH keys.
Configure HTTPS Clone Account Password
To clone a repository using HTTPS, an account password is required for authentication. You can set up the HTTPS clone account password for easier management and use.
View Clone Account: Log on to Codeup, click your profile picture in the upper right corner, navigate to "Personal Settings," and select "HTTPS Password" to view the details.
Change Clone Password: If you forget the password or are setting it up for the first time, reset it through the linked mailbox.
For specific procedures, see configure HTTPS clone account password.
Create and Manage Personal Access Tokens
Personal access tokens are a flexible and secure alternative to traditional username and password combinations for calling OpenAPI interfaces provided by Codeup. Here's how to create and manage your tokens:
Create Token: Navigate to the Codeup console home page, click your profile picture menu in the upper right corner, select "Personal Access Tokens" from the left menu, fill in the required information, click "Create Token," and save the token value.
Edit/Delete Token: You can edit or delete tokens that are no longer needed at any time.
For token permission scopes and specific scenarios, see personal access tokens.
By configuring these three authentication methods properly, you can streamline the authentication process in your daily development workflow and significantly enhance the security of data transmission. The information provided here is designed to help you better leverage the features of Apsara Devops Codeup.