Skip to content

Commit

Permalink
UI: Add missing allowed_user_ids to role form in PKI (#22191)
Browse files Browse the repository at this point in the history
  • Loading branch information
kiannaquach authored and hellobontempo committed Aug 18, 2023
1 parent 637ff0a commit d5880a9
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 1 deletion.
3 changes: 3 additions & 0 deletions changelog/22191.txt
Original file line number Diff line number Diff line change
@@ -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
```
2 changes: 1 addition & 1 deletion ui/app/models/pki/certificate/generate.js
Original file line number Diff line number Diff line change
Expand Up @@ -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': [
Expand Down
2 changes: 2 additions & 0 deletions ui/app/models/pki/role.js
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@ const fieldGroups = [
},
{
'Additional subject fields': [
'allowedUserIds',
'allowedSerialNumbers',
'requireCn',
'useCsrCommonName',
Expand Down Expand Up @@ -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;
Expand Down

0 comments on commit d5880a9

Please sign in to comment.