Skip to content

Commit

Permalink
add open api params
Browse files Browse the repository at this point in the history
  • Loading branch information
hellobontempo committed Dec 23, 2024
1 parent f7ab5ca commit d0994a8
Show file tree
Hide file tree
Showing 2 changed files with 50 additions and 1 deletion.
2 changes: 1 addition & 1 deletion ui/tests/acceptance/open-api-path-help-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ function secretEngineHelper(test, secretEngine) {
assert.deepEqual(
Object.keys(result).sort(),
Object.keys(expected).sort(),
`getProps returns expected attributes for ${modelName}`
`getProps returns expected attributes for ${modelName} (help url: "${helpUrl}")`
);
Object.keys(expected).forEach((attrName) => {
assert.deepEqual(result[attrName], expected[attrName], `${attrName} attribute details match`);
Expand Down
49 changes: 49 additions & 0 deletions ui/tests/helpers/openapi/expected-secret-attrs.js
Original file line number Diff line number Diff line change
Expand Up @@ -1234,6 +1234,34 @@ const pki = {
label: 'Exclude Common Name from Subject Alternative Names (SANs)',
type: 'boolean',
},
excludedDnsDomains: {
editType: 'stringArray',
fieldGroup: 'default',
helpText:
'Domains for which this certificate is not allowed to sign or issue child certificates (see https://tools.ietf.org/html/rfc5280#section-4.2.1.10).',
label: 'Excluded DNS Domains',
},
excludedEmailAddresses: {
editType: 'stringArray',
fieldGroup: 'default',
helpText:
'Email addresses for which this certificate is not allowed to sign or issue child certificates (see https://tools.ietf.org/html/rfc5280#section-4.2.1.10).',
label: 'Excluded email addresses',
},
excludedIpRanges: {
editType: 'stringArray',
fieldGroup: 'default',
helpText:
'IP ranges for which this certificate is not allowed to sign or issue child certificates (see https://tools.ietf.org/html/rfc5280#section-4.2.1.10). Ranges must be specified in the notation of IP address and prefix length, like "192.0.2.0/24" or "2001:db8::/32", as defined in RFC 4632 and RFC 4291.',
label: 'Excluded IP ranges',
},
excludedUriDomains: {
editType: 'stringArray',
fieldGroup: 'default',
helpText:
'URI domains for which this certificate is not allowed to sign or issue child certificates (see https://tools.ietf.org/html/rfc5280#section-4.2.1.10).',
label: 'Excluded URI domains',
},
format: {
editType: 'string',
helpText:
Expand Down Expand Up @@ -1312,6 +1340,27 @@ const pki = {
fieldGroup: 'default',
label: 'Permitted DNS Domains',
},
permittedEmailAddresses: {
editType: 'stringArray',
fieldGroup: 'default',
helpText:
'Email addresses for which this certificate is allowed to sign or issue child certificates (see https://tools.ietf.org/html/rfc5280#section-4.2.1.10).',
label: 'Permitted email adresses',
},
permittedIpRanges: {
editType: 'stringArray',
fieldGroup: 'default',
helpText:
'IP ranges for which this certificate is allowed to sign or issue child certificates (see https://tools.ietf.org/html/rfc5280#section-4.2.1.10). Ranges must be specified in the notation of IP address and prefix length, like "192.0.2.0/24" or "2001:db8::/32", as defined in RFC 4632 and RFC 4291.',
label: 'Permitted IP ranges',
},
permittedUriDomains: {
editType: 'stringArray',
fieldGroup: 'default',
helpText:
'URI domains for which this certificate is allowed to sign or issue child certificates (see https://tools.ietf.org/html/rfc5280#section-4.2.1.10).',
label: 'Permitted URI domains',
},
postalCode: {
editType: 'stringArray',
helpText: 'If set, Postal Code will be set to this value.',
Expand Down

0 comments on commit d0994a8

Please sign in to comment.