Skip to main content

signing_keys

Creates, updates, deletes, gets or lists a signing_keys resource.

Overview

Namesigning_keys
TypeResource
Idvercel.kms.signing_keys

Fields

The following fields are returned by SELECT queries:

SELECT not supported for this resource, use SHOW METHODS to view available operations for the resource.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
createinsertissuer_idteam_id, slugCreate a new signing key for a KMS issuer. Depending on the activation mode, the key is activated automatically once its public key has propagated, or manually via the activate endpoint.
activateexecissuer_id, key_idteamId, slugActivate a pending signing key so the issuer starts signing with it.
revokeexecissuer_id, key_idteamId, slugImmediately revoke a signing key that is already scheduled for revocation.

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
issuer_idstringThe ID of the issuer.
key_idstringThe ID of the signing key to revoke immediately. The key must already be scheduled for revocation.
slugstringThe Team slug to perform the request on behalf of.
teamIdstringThe Team identifier to perform the request on behalf of.
team_idstringThe Team identifier to perform the request on behalf of. (wire: teamId)

INSERT examples

Create a new signing key for a KMS issuer. Depending on the activation mode, the key is activated automatically once its public key has propagated, or manually via the activate endpoint.

INSERT INTO vercel.kms.signing_keys (
activation,
revoke_previous_after_hours,
revoke_previous_at,
import_key,
import_key_id,
issuer_id,
team_id,
slug
)
SELECT
'{{ activation }}',
{{ revoke_previous_after_hours }},
'{{ revoke_previous_at }}',
'{{ import_key }}',
'{{ import_key_id }}',
'{{ issuer_id }}',
'{{ team_id }}',
'{{ slug }}'
RETURNING
import_key_id,
issuer_id,
key_id,
activate_at,
activated_at,
algorithm,
certificate_pem,
created_at,
public_key,
public_key_fingerprint,
public_key_pem,
revoke_at,
status,
updated_at
;

Lifecycle Methods

EXEC variables use wire (API) names.

Activate a pending signing key so the issuer starts signing with it.

EXEC vercel.kms.signing_keys.activate
@issuer_id='{{ issuer_id }}' --required,
@key_id='{{ key_id }}' --required,
@teamId='{{ teamId }}',
@slug='{{ slug }}'
@@json=
'{
"revokePreviousAfterHours": {{ revokePreviousAfterHours }}
}'
;