Create and modify credentials of type password, key, and keyring.
-
You've created a service instance for SAP Credential Store.
-
You've created at least one namespace. See: Create a Namespace
Follow the steps below to create one or multiple credentials for a particular namespace.
-
In the SAP BTP cockpit, navigate to your subaccount and space.
-
From the left-side navigation menu, choose Services > Instances.
-
Select a Credential Store instance.
-
From the left-side navigation menu, choose (Credential Store).
-
Choose a namespace. The currently available credentials are listed in a table.
-
To create a new credential for this namespace (different from the initial one), from Create Credential choose Password, Key, or Keyring.
-
Enter a credential name.
-
You can manually enter a credential value or let the wizard generate one for you.
If you choose to generate, proceed as follows, depending on the credential type:
- Password – to generate a password, you need to set its length, which must be at least 8 and no longer than 4096 symbols. Also, when the creation is done, the generated password hash (not its real value) will be displayed for you. Copy the provided string and keep it at a safe place so you can use it later. The hash string is always 60 symbols, regardless of the actual length of your generated password.
- Key – to generate a key, you need to set its size, which must be at least 16 and no more than 128 bytes.
- Keyring – to generate a keyring, you need to set its size, which must be at least 16 and no more than 64 bytes. You also have to enter a rotation period, which must be at least 30 and no more than 365 days.
-
You can manually enter a credential value or let the wizard generate one for you.
If you choose to generate, proceed as follows, depending on the credential type:
Credential
Actions
Additional Info
Password
Set the password length, which must be at least 8 and no longer than 4096 symbols.
When the creation is done, the generated password hash will be displayed for you, not its real value. Copy the hash string and keep it at a safe place so you can use it later.
The hash string is always 60 symbols, regardless of the actual length of your generated password.
Key
Set the key size, which must be at least 16 and no more than 128 bytes.
Keyring
- Set the keyring size, which must be at least 16 and no more than 64 bytes.
- Enter a rotation period, which must be at least 30 and no more than 365 days. Default period is 180 days.
- Choose whether your keyring to be exportable or not.
- Choose whether your keyring to be enclosed or not. If you set Enclosed to ON, then you can either leave Crypto Period (days) empty, or enter a number between 366 (1 year) and 1461 (4 years).
You can use enclosed keyrings to comply with even stricter security requirements. Compared to the regular ones, the enclosed keyrings have the following specifics:
-
They are generated (cannot be imported).
-
They are non-exportable (cannot be changed).
-
They have an optional crypto period.
-
They cannot be renamed.
The crypto period defines for how long a keyring version can be used for any crypto operation including decryption. If a crypto period is configured, it can only be updated but cannot be unset. If you don't define a period, the current keyring version will stay enclosed forever.
-
Select the initial status of your credential (Enabled, Read-only, or Disabled). You can change this setting later.
-
Choose whether your credential to be modifiable or not.
Once a credential is set to Unmodifiable, its properties cannot be further changed – except for the Status attribute.
Also, unmodifiable credentials can be deleted only after being disabled for at least 7 days.
-
(Optional) Enter your username so other subaccount administrators would know that this namespace and credential were created by you.
-
(Optional) Enter some metadata that can be associated with your credential.
-
Choose Create.
The new credential appears in the table below, under the relevant tab – Passwords (n), Keys (n), or Keyrings(n).
-
If you only want to change the status of a credential, choose (Change Status).
-
If you want to edit more parameters of a credential, choose (Edit).
-
If you want to delete a credential, choose (Delete).
If you want to delete a keyring, you can do this only if it's in a Disabled status and has stayed disabled for at least 7 days. This is a security precaution that protects your keyrings from unintentional deletion.
Related Information