Prerequisites
- A KMS project where you have the Admin or Member role (to create a project, go to KMS in your organization and select New Project)
Create a key
- Infisical UI
- API
1
In your KMS project, go to Overview and select Add Key > Create Key.
2
Fill in the fields:
- Name: A name made of lowercase letters, numbers, and hyphens, up to 32 characters
- Key Usage: The operations the key supports (see Choosing an algorithm)
- Algorithm: The algorithm the key uses
- Description (optional): What the key is for
- Allow Export: Whether members with the export permission can export the key material (you can’t change this after you create the key)
- Delete Protection: Whether the key is protected from deletion
3
Select Add Key.
Choosing an algorithm
Each key usage supports the following algorithms:- ECC-NIST-P384 and ECC-NIST-P521 are available only through the API
- ML-DSA is a post-quantum signature algorithm, and is available under Infisical’s Enterprise plan
- HMAC-SHA-1 and HMAC-SHA-224 are marked Legacy in Infisical, so use them only if another system requires them
Who can use a key
A project’s roles decide what each member and machine identity can do with its keys:
Give an application’s machine identity the Cryptographic Operator role, so the application can use your keys but can’t change them. To set up your own permissions, create a custom role.
Edit a key
To change a key’s name, description, or Delete Protection setting, select the options menu on the key’s row, then select Edit Key. You can’t change a key’s usage, algorithm, or Allow Export setting.Disable a key
If you disable a key, Infisical rejects every operation with the key, and you can’t export the key until you enable it again. To disable a key, select the options menu on the key’s row, then select Disable Key. To enable the key again, select Enable Key.Delete a key
1
If the key has Delete Protection turned on, select the options menu on the key’s row, select Edit Key, turn off Delete Protection, and select Update Key.
2
Select the options menu on the key’s row, then select Delete Key.
3
Type
confirm, then select Delete.