Create a secret key in AI Gateway to securely store and manage your credentials. All keys are hosted in Key Management Service (KMS).
Prerequisites
-
A KMS instance is created. Purchase and enable a KMS instance.
-
A KMS encryption master key is configured. Manage keys.
Create a key
-
Go to the AI Gateway console.
-
In the left navigation pane, select Key.
-
In the upper-left corner of the page, click Create key. On the Create key page, configure the following parameters.
NoteIf the service-linked role is not authorized, click Authorization to grant AI Gateway the
AliyunServiceRoleForNativeApiGwInvokeKmsservice-linked role. Service-linked Role.Parameter
Description
key name
Name of the key.
NoteMust be unique. Supports letters, digits, and underscores (_). Maximum 64 characters.
credential source
Storage location of the key. Defaults to KMS.
select instance
KMS instance that stores the key.
master key
KMS master key used for encryption.
key content
Credentials to encrypt and store. Synced to KMS as a credential resource.
-
Click OK to create the key.