This article explains what External Credentials are and how to add them to your Peak organization.
Contents
What are External Credentials?
External Credentials enable the Peak platform to connect with external systems such as code repositories. These credentials are often required within Workflow input parameters and image build arguments.
Storing External Credentials as plain text in your repo or even within input parameters can be dangerous as they can easily be identified and copied by other users. Using the External Credentials tool will prevent this from happening. It will also help when you need to refresh your keys as you will only need to do it in one place!
Supported repositories
Peak supports External Credentials for the following repositories:
Custom
Bitbucket
GitHub
GitLab
How to add External Credentials to Peak
Go to Console > Access Tokens.
Scroll down to the External Credentials area.
Click ADD.
The Create External Credential input box appears.Give the credential a suitable name.
Select the required type, for example GitHub.
Enter the required credentials for your chosen type.
The credentials that are required will vary according to the repository you are accessing.Click SUBMIT.
The new credential is added to the External Credentials list.
Editing and deleting credentials
To edit a credential:
Hover your cursor over the row with the credential details you want to edit.
Click on the pencil icon that appears.
Make any required changes and click SUBMIT.
If you no longer need the external credential, you can delete it:
Hover your cursor over the row with the credential details you want to delete.
Click on the trash icon that appears.
Using External Credentials
Once your External Credentials have been added, they can be used for:
Docker files
Scripts
Build arguments when building Workspaces, Workflows and Web Apps.
For more information, see How to use External Credentials.