Backport of UI: Add missing allowed_user_ids to role form in PKI into release/1.14.x (#22242)

Co-authored-by: Kianna <30884335+kiannaquach@users.noreply.github.com>
This commit is contained in:
hc-github-team-secure-vault-core 2023-08-08 16:15:11 -04:00 committed by GitHub
parent 15903e4b10
commit 1c89ff215b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 6 additions and 1 deletions

3
changelog/22191.txt Normal file
View File

@ -0,0 +1,3 @@
```release-note:improvement
ui: adds allowed_user_ids field to create role form and user_ids to generate certificates form in pki
```

View File

@ -9,7 +9,7 @@ import PkiCertificateBaseModel from './base';
const generateFromRole = [
{
default: ['commonName', 'customTtl', 'format', 'privateKeyFormat'],
default: ['commonName', 'userIds', 'customTtl', 'format', 'privateKeyFormat'],
},
{
'Subject Alternative Name (SAN) Options': [

View File

@ -55,6 +55,7 @@ const fieldGroups = [
},
{
'Additional subject fields': [
'allowedUserIds',
'allowedSerialNumbers',
'requireCn',
'useCsrCommonName',
@ -293,6 +294,7 @@ export default class PkiRoleModel extends Model {
})
extKeyUsageOids;
@attr({ editType: 'stringArray' }) allowedUserIds;
@attr({ editType: 'stringArray' }) organization;
@attr({ editType: 'stringArray' }) country;
@attr({ editType: 'stringArray' }) locality;