mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-21 03:42:16 +00:00
feat(Venafi TLS Protect Cloud Node): make issuing template depend on application (#4476)
* ⚡ Make issuing template depending on application * ⚡ Make validity period type string * ⚡ Reorder certificateRequest:create fields semantically
This commit is contained in:
@@ -64,6 +64,9 @@ export const certificateRequestFields: INodeProperties[] = [
|
||||
'Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/code-examples/expressions/">expression</a>',
|
||||
typeOptions: {
|
||||
loadOptionsMethod: 'getCertificateIssuingTemplates',
|
||||
loadOptionsDependsOn: [
|
||||
'applicationId',
|
||||
],
|
||||
},
|
||||
displayOptions: {
|
||||
show: {
|
||||
@@ -134,13 +137,25 @@ export const certificateRequestFields: INodeProperties[] = [
|
||||
},
|
||||
options: [
|
||||
{
|
||||
displayName: 'Country',
|
||||
name: 'country',
|
||||
type: 'string',
|
||||
default: '',
|
||||
description: 'A 2 letter country code',
|
||||
displayName: 'Key Type',
|
||||
name: 'keyType',
|
||||
type: 'options',
|
||||
options: [
|
||||
{
|
||||
name: 'EC',
|
||||
value: 'EC',
|
||||
description: 'Elliptic Curve (EC)',
|
||||
},
|
||||
{
|
||||
name: 'RSA',
|
||||
value: 'RSA',
|
||||
description: 'Rivest, Shamir, Adleman key (RSA)',
|
||||
},
|
||||
],
|
||||
default: 'RSA',
|
||||
description: 'The encryption algorithm for the public key',
|
||||
},
|
||||
{
|
||||
{
|
||||
displayName: 'Key Curve',
|
||||
name: 'keyCurve',
|
||||
type: 'options',
|
||||
@@ -180,40 +195,14 @@ export const certificateRequestFields: INodeProperties[] = [
|
||||
description: 'The number of bits to allow for key generation',
|
||||
},
|
||||
{
|
||||
displayName: 'Key Type',
|
||||
name: 'keyType',
|
||||
type: 'options',
|
||||
options: [
|
||||
{
|
||||
name: 'EC',
|
||||
value: 'EC',
|
||||
description: 'Elliptic Curve (EC)',
|
||||
},
|
||||
{
|
||||
name: 'RSA',
|
||||
value: 'RSA',
|
||||
description: 'Rivest, Shamir, Adleman key (RSA)',
|
||||
},
|
||||
],
|
||||
default: 'RSA',
|
||||
description: 'The encryption algorithm for the public key',
|
||||
},
|
||||
{
|
||||
displayName: 'Locality',
|
||||
name: 'locality',
|
||||
type: 'string',
|
||||
default: '',
|
||||
description: 'The name of a city or town',
|
||||
},
|
||||
{
|
||||
displayName: 'Organization',
|
||||
displayName: '(O) Organization',
|
||||
name: 'organization',
|
||||
type: 'string',
|
||||
default: '',
|
||||
description: 'The name of a company or organization',
|
||||
},
|
||||
{
|
||||
displayName: 'Organizational Units',
|
||||
displayName: '(OU) Organizational Unit(s)',
|
||||
name: 'organizationalUnits',
|
||||
type: 'string',
|
||||
typeOptions: {
|
||||
@@ -223,12 +212,27 @@ export const certificateRequestFields: INodeProperties[] = [
|
||||
description: 'The name of a department or section',
|
||||
},
|
||||
{
|
||||
displayName: 'State',
|
||||
displayName: '(L) City/Locality',
|
||||
name: 'locality',
|
||||
type: 'string',
|
||||
default: '',
|
||||
description: 'The name of a city or town',
|
||||
},
|
||||
|
||||
{
|
||||
displayName: '(ST) State',
|
||||
name: 'state',
|
||||
type: 'string',
|
||||
default: '',
|
||||
description: 'The name of a state or province',
|
||||
},
|
||||
{
|
||||
displayName: '(C) Country',
|
||||
name: 'country',
|
||||
type: 'string',
|
||||
default: '',
|
||||
description: 'A 2 letter country code',
|
||||
},
|
||||
{
|
||||
displayName: 'Subject Alt Names',
|
||||
name: 'SubjectAltNamesUi',
|
||||
@@ -316,22 +320,11 @@ export const certificateRequestFields: INodeProperties[] = [
|
||||
{
|
||||
displayName: 'Validity Period',
|
||||
name: 'validityPeriod',
|
||||
type: 'options',
|
||||
options: [
|
||||
{
|
||||
name: '1 Year',
|
||||
value: 'P1Y',
|
||||
},
|
||||
{
|
||||
name: '10 Days',
|
||||
value: 'P10D',
|
||||
},
|
||||
{
|
||||
name: '12 Hours',
|
||||
value: 'PT12H',
|
||||
},
|
||||
],
|
||||
type: 'string',
|
||||
placeholder: 'P1Y',
|
||||
default: 'P1Y',
|
||||
description: 'Specify how long the issued certificate should be valid for. Use ISO8601 format.',
|
||||
hint: 'e.g. 1 year -> P1Y',
|
||||
},
|
||||
],
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user