Generate Secrets
These actions provide ability to encrypt, decrypt and hash data, as well as validate and generate tokens and certificates.
Generate Secrets Actions
Parameter
Definition
Example
Default
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"properties": {
"eventMeta": {
"type": "object",
"properties": {
"parameters": {
"type": "object",
"properties": {
"key": {
"type": "string",
"description": "Constant key to use for operations",
"example": "1234567890ABC"
},
"keyPath": {
"type": "string",
"description": "Json path of key in event payload",
"example": "parameters.key"
},
"keyId": {
"type": ["string", "integer"],
"description": "ID of the key to use from key state",
"example": 123
},
"keyIdPath": {
"type": "string",
"description": "Json path of key id to use from key state",
"example": "parameters.id"
}
}
}
}
}
}
}Encrypt
Field
Definition
Example
Default
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"properties": {
"eventMeta": {
"type": "object",
"properties": {
"inputElement": {
"type": "string",
"description": "Json path for the input in request event payload",
"example": "data"
},
"outputElement": {
"type": "string",
"description": "Json path for the output in response event payload",
"example": "secret"
}
}
}
}
}Parameter
Definition
Example
Default
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"properties": {
"eventMeta": {
"type": "object",
"properties": {
"parameters": {
"type": "object",
"properties": {
"algorithm": {
"type": "string",
"description": "Custom cipher algorithm to use",
"default": "Handler default"
},
"keyAlgorithm": {
"type": "string",
"description": "Custom SecretKey algorithm to use",
"default": "Handler default"
},
"provider": {
"type": "string",
"description": "Custom security provider to use",
"default": "Handler default"
}
}
}
}
}
}
}Decrypt
Parameter
Definition
Example
Default
Hash
Field
Definition
Example
Default
Parameter
Definition
Example
Default
ValidateHash
Field
Definition
Example
Default
Parameter
Definition
Example
Default
GenerateToken
Field
Definition
Example
Default
Parameter
Definition
Example
Default
ValidateToken
Field
Definition
Example
Default
Parameter
Definition
Example
Default
DecodeToken
Field
Definition
Example
Default
Parameter
Definition
Example
Default
GenerateCertificate
Field
Definition
Example
Default
Parameter
Definition
Example
Default
Last updated
