Credentials¶
Credentials are used to unlock protected resources such as applications, containers, and other assets.
Types of credentials¶
The Credential manager in the Run:ai environment supports 4 types of credentials:
- Docker registry.
- Access key.
- User name and password.
- Kubernetes Secrets.
Configuring Credentials¶
Prerequisites
Workspaces
are enabled.- Target resource user-id and password for creating a secret in the UI.
- Configured pre-existing secrets with the applicable
label
.
Docker registry¶
- Go to
Settings | Credentials
. - Press
New Credentials
. - Select
Docker registry
. -
In the
Project
field, select a project from the drop down.- Choose
All
to add the credential to all current and future projects.
- Choose
-
In the
Credential name
field, enter a name for the credential. -
In the
Secret
field, choose fromExisting secret
orNew secret
.-
If you select
Existing secret
, select an unused secret from the drop down.Note
Existing secrets can't be used more than once.
-
If you choose
New secret
, enter a username and password.
-
-
Enter a URL for the docker registry, then press
Create credential
to create the credential.
Access key¶
- Go to
Settings | Credentials
. - Press
New Credentials
. - Select
Access key
. -
In the
Project
field, select a project from the drop down.- Choose
All
to add the credential to all current and future projects.
- Choose
-
In the
Credential name
field, enter a name for the credential. -
In the
Secret
field, choose fromExisting secret
orNew secret
.-
If you select
Existing secret
, select an unused secret from the drop down.Note
Existing secrets can't be used more than once.
-
If you choose
New secret
, enter an access key and access secret.
-
-
Press
Create credential
to create the credential.
Username and password¶
- Go to
Settings | Credentials
. - Press
New Credentials
. - Select
Username & password
. -
In the
Project
field, select a project from the drop down.- Choose
All
to add the credential to all current and future projects.
- Choose
-
In the
Credential name
field, enter a name for the credential. -
In the
Secret
field, choose fromExisting secret
orNew secret
.-
If you select
Existing secret
, select an unused secret from the drop down.Note
Existing secrets can't be used more than once.
-
If you choose
New secret
, enter a username and password.
-
-
Press
Create credential
to create the credential.
Kubernetes created secret¶
You can use the Kubernetes Secrets creation tool to create a pre-existing secret that can be used when creating the credential. You must label
these secrets so that they are registered in the Run:ai environment.
The following command makes the secret available to all projects in the cluster.
The following command makes the secret available to a specific project in the cluster.
User-id and password¶
You can create a credential using a user-id and password. Use the user-id and password of the target resource.