Skip to content

Commit

Permalink
feat: add RoleSeparationEnabled property
Browse files Browse the repository at this point in the history
  • Loading branch information
JonasBK committed Apr 26, 2024
1 parent 4227b09 commit 7e21fd0
Show file tree
Hide file tree
Showing 6 changed files with 50 additions and 1 deletion.
2 changes: 2 additions & 0 deletions cmd/ui/src/ducks/entityinfo/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -138,6 +138,8 @@ export interface EnterpriseCAInfo extends EntityInfo {
hasenrollmentagentrestrictions?: boolean;
isuserspecifiessanenabled?: boolean;
isuserspecifiessanenabledcollected: boolean;
roleseparationenabled?: boolean;
roleseparationenabledcollected: boolean;
description?: string;
};
controllables: number;
Expand Down
16 changes: 16 additions & 0 deletions packages/cue/bh/ad/ad.cue
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,20 @@ IsUserSpecifiesSanEnabledCollected: types.#StringEnum & {
representation: "isuserspecifiessanenabledcollected"
}

RoleSeparationEnabled: types.#StringEnum & {
symbol: "RoleSeparationEnabled"
schema: "ad"
name: "Role Separation Enabled"
representation: "roleseparationenabled"
}

RoleSeparationEnabledCollected: types.#StringEnum & {
symbol: "RoleSeparationEnabledCollected"
schema: "ad"
name: "Role Separation Enabled Collected"
representation: "roleseparationenabledcollected"
}

HasBasicConstraints: types.#StringEnum & {
symbol: "HasBasicConstraints"
schema: "ad"
Expand Down Expand Up @@ -565,6 +579,8 @@ Properties: [
EnrollmentAgentRestrictionsCollected,
IsUserSpecifiesSanEnabled,
IsUserSpecifiesSanEnabledCollected,
RoleSeparationEnabled,
RoleSeparationEnabledCollected,
HasBasicConstraints,
BasicConstraintPathLength,
DNSHostname,
Expand Down
5 changes: 5 additions & 0 deletions packages/go/ein/ad.go
Original file line number Diff line number Diff line change
Expand Up @@ -441,6 +441,11 @@ func ParseCARegistryProperties(enterpriseCA EnterpriseCA) IngestibleNode {
propMap[ad.IsUserSpecifiesSanEnabled.String()] = enterpriseCA.CARegistryData.IsUserSpecifiesSanEnabled.Value
}

// RoleSeparationEnabled
if enterpriseCA.CARegistryData.RoleSeparationEnabled.Collected {
propMap[ad.RoleSeparationEnabled.String()] = enterpriseCA.CARegistryData.RoleSeparationEnabled.Value
}

return IngestibleNode{
ObjectID: enterpriseCA.ObjectIdentifier,
PropertyMap: propMap,
Expand Down
6 changes: 6 additions & 0 deletions packages/go/ein/incoming_models.go
Original file line number Diff line number Diff line change
Expand Up @@ -120,10 +120,16 @@ type IsUserSpecifiesSanEnabled struct {
Value bool
}

type RoleSeparationEnabled struct {
APIResult
Value bool
}

type CARegistryData struct {
CASecurity CASecurity
EnrollmentAgentRestrictions EnrollmentAgentRestrictions
IsUserSpecifiesSanEnabled IsUserSpecifiesSanEnabled
RoleSeparationEnabled RoleSeparationEnabled
}

type DCRegistryData struct {
Expand Down
16 changes: 15 additions & 1 deletion packages/go/graphschema/ad/ad.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions packages/javascript/bh-shared-ui/src/graphSchema.ts
Original file line number Diff line number Diff line change
Expand Up @@ -311,6 +311,8 @@ export enum ActiveDirectoryKindProperties {
EnrollmentAgentRestrictionsCollected = 'enrollmentagentrestrictionscollected',
IsUserSpecifiesSanEnabled = 'isuserspecifiessanenabled',
IsUserSpecifiesSanEnabledCollected = 'isuserspecifiessanenabledcollected',
RoleSeparationEnabled = 'roleseparationenabled',
RoleSeparationEnabledCollected = 'roleseparationenabledcollected',
HasBasicConstraints = 'hasbasicconstraints',
BasicConstraintPathLength = 'basicconstraintpathlength',
DNSHostname = 'dnshostname',
Expand Down Expand Up @@ -400,6 +402,10 @@ export function ActiveDirectoryKindPropertiesToDisplay(value: ActiveDirectoryKin
return 'Is User Specifies San Enabled';
case ActiveDirectoryKindProperties.IsUserSpecifiesSanEnabledCollected:
return 'Is User Specifies San Enabled Collected';
case ActiveDirectoryKindProperties.RoleSeparationEnabled:
return 'Role Separation Enabled';
case ActiveDirectoryKindProperties.RoleSeparationEnabledCollected:
return 'Role Separation Enabled Collected';
case ActiveDirectoryKindProperties.HasBasicConstraints:
return 'Has Basic Constraints';
case ActiveDirectoryKindProperties.BasicConstraintPathLength:
Expand Down

0 comments on commit 7e21fd0

Please sign in to comment.