Checklist
Description
When deploying a client with private_key_jwt authentication via the Auth0 Deploy CLI using a tenant YAML file, the kid field specified in the credentials block is ignored and a random kid is auto-generated instead.
auth0-deploy-cli: 8.42.0
node: 20.19.0
References:
Management API docs note: "If not specified, a kid value will be auto-generated." — confirming kid is a supported API field."auth0-deploy-cli": "8.42.0"
Expectation
Expected Behavior:
The kid value specified in the YAML should be used when creating the credential.
Actual Behavior:
A random kid is assigned to the credential on the tenant, ignoring the value provided in the YAML.
Reproduction
Steps to Reproduce:
Configure a client in tenant YAML with the following block:
client_authentication_methods:
private_key_jwt:
credentials:
- name: "My Public Key"
credential_type: "public_key"
kid: "MY_CUSTOM_KID_VALUE"
pem: "MY_PEM_CONTENT"
alg: "RS256"
Deploy using auth0 deploy via the Auth0 Deploy CLI.
Check the resulting credential on the tenant — the kid is auto-generated, not the specified value.
Workaround:
Using the Management API POST /clients/{client_id}/credentials directly correctly sets the kid as specified.
Deploy CLI version
8.42.0
Node version
20.19.0
Checklist
Description
When deploying a client with private_key_jwt authentication via the Auth0 Deploy CLI using a tenant YAML file, the kid field specified in the credentials block is ignored and a random kid is auto-generated instead.
auth0-deploy-cli: 8.42.0
node: 20.19.0
References:
Management API docs note: "If not specified, a kid value will be auto-generated." — confirming kid is a supported API field."auth0-deploy-cli": "8.42.0"
Expectation
Expected Behavior:
The kid value specified in the YAML should be used when creating the credential.
Actual Behavior:
A random kid is assigned to the credential on the tenant, ignoring the value provided in the YAML.
Reproduction
Steps to Reproduce:
Configure a client in tenant YAML with the following block:
client_authentication_methods:
private_key_jwt:
credentials:
- name: "My Public Key"
credential_type: "public_key"
kid: "MY_CUSTOM_KID_VALUE"
pem: "MY_PEM_CONTENT"
alg: "RS256"
Deploy using auth0 deploy via the Auth0 Deploy CLI.
Check the resulting credential on the tenant — the kid is auto-generated, not the specified value.
Workaround:
Using the Management API POST /clients/{client_id}/credentials directly correctly sets the kid as specified.
Deploy CLI version
8.42.0
Node version
20.19.0