Skip to content

Managing Secrets

The following commands require an active KSDK session

For KSDK login instructions see the Authentication page.

Secrets are of paramount importance when dealing with sensitive data, such as credentials, in applications running on the Kelvin Platform. KSDK provides a simple interface to manage secrets.

Managing secrets

Listing secrets

All the secrets available on the currently logged platform can be consulted with the kelvin secrets command:

kelvin secrets list

Success

[kelvin.sdk][2021-01-14 16:26:34][I] Retrieving platform secrets..
[kelvin.sdk][2021-01-14 16:26:35][I]
*************************** Secrets ***************************
+-----------------+
| Secret name     |
|-----------------|
| cert-secret     |
| secret-password |
+-----------------+

Creating a secret

You can create your very own platform secrets with the kelvin secrets create command:

# kelvin secrets create <secret_name> --value=<secret_value>
kelvin secrets create mysecret --value="this is my specific secret"

Success

[kelvin.sdk][2021-01-14 16:29:48][I] Creating secret "mysecret" on the platform
[kelvin.sdk][2021-01-14 16:29:50][R] Secret "mysecret" successfully created on the platform

Deleting a secret

Similar to the secret creation process, a secret can also be delete from the platform using the kelvin secrets delete command.

# kelvin secrets delete <secret_name>
kelvin secrets delete mysecret

Success

[kelvin.sdk][2021-01-14 16:30:40][I] Deleting secret "mysecret" from the platform                                                                                                                                                                         
[kelvin.sdk][2021-01-14 16:30:41][W]                                                                                                                                                                                                                      
This operation will delete the secret "mysecret" from the platform.                                                                                                                                                                                       
            Are you sure?  [y/N] y                                                                                                                                                                                                                        

[kelvin.sdk][2021-01-14 16:30:43][R] Secret "mysecret" successfully deleted from the platform      

Check the examples on how to integrate secrets in your application

Secrets in Kelvin Applications page.
Secrets in Generic Applications page.