Skip to content

Commit 0c371e4

Browse files
authored
Merge pull request #38 from KelvinTegelaar/dev
[pull] dev from KelvinTegelaar:dev
2 parents f0e0bfe + 1fa566f commit 0c371e4

File tree

18 files changed

+592
-197
lines changed

18 files changed

+592
-197
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "cipp",
3-
"version": "5.6.2",
3+
"version": "5.7.0",
44
"description": "The CyberDrain Improved Partner Portal is a portal to help manage administration for Microsoft Partners.",
55
"homepage": "https://cipp.app/",
66
"bugs": {

public/version_latest.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
5.6.2
1+
5.7.0

src/_nav.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,7 @@ const _nav = [
150150
{
151151
component: CNavItem,
152152
name: 'Tenant Onboarding',
153-
to: '/tenant/administration/tenant-onboarding-wizard',
153+
to: '/tenant/administration/tenant-onboarding',
154154
},
155155
{
156156
component: CNavItem,

src/components/tables/CippTable.jsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,6 +125,7 @@ export default function CippTable({
125125
filterlist,
126126
showFilter = true,
127127
endpointName,
128+
defaultSortAsc = true,
128129
tableProps: {
129130
keyField = 'id',
130131
theme = 'cyberdrain',
@@ -989,7 +990,7 @@ export default function CippTable({
989990
expandableRowsComponent={expandableRowsComponent}
990991
highlightOnHover={highlightOnHover}
991992
expandOnRowClicked={expandOnRowClicked}
992-
defaultSortAsc
993+
defaultSortAsc={defaultSortAsc}
993994
defaultSortFieldId={1}
994995
sortFunction={customSort}
995996
paginationPerPage={tablePageSize}
@@ -1050,6 +1051,7 @@ export const CippTablePropTypes = {
10501051
disableCSVExport: PropTypes.bool,
10511052
error: PropTypes.object,
10521053
filterlist: PropTypes.arrayOf(PropTypes.object),
1054+
defaultSortAsc: PropTypes.bool,
10531055
}
10541056

10551057
CippTable.propTypes = CippTablePropTypes

src/components/utilities/CippTableOffcanvas.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ function CippTableOffcanvas({
1414
tableProps,
1515
data = null,
1616
}) {
17-
if (Array.isArray(data) && data !== null && data !== undefined) {
17+
if (Array.isArray(data) && data !== null && data !== undefined && data?.length > 0) {
1818
if (!Array.isArray(data) && typeof data === 'object') {
1919
data = Object.keys(data).map((key) => {
2020
return {

src/data/AuditLogSchema.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,9 @@
100100
{ "value": "remove delegation entry.", "name": "removed delegation entry" },
101101
{ "value": "remove domain from company.", "name": "removed domain from company" },
102102
{ "value": "remove member from group.", "name": "removed member from group" },
103+
{ "value": "remove member from a role.", "name": "remove member from a role" },
104+
{ "value": "Disable Strong Authentication.", "name": "Disable Strong Authentication." },
105+
103106
{
104107
"value": "remove service principal.",
105108
"name": "removed a service principal from the directory"

src/data/AuditLogTemplates.json

Lines changed: 85 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,23 @@
8787
{
8888
"value": "Add member to role.",
8989
"name": "A user has been added to an admin role",
90-
"template": []
90+
"template": {
91+
"preset": {
92+
"value": "Add member to role.",
93+
"label": "A user has been added to an admin role"
94+
},
95+
"logbook": { "value": "Audit.AzureActiveDirectory", "label": "Azure AD" },
96+
"conditions": [
97+
{
98+
"Property": { "value": "List:Operation", "label": "Operation" },
99+
"Operator": { "value": "EQ", "label": "Equals to" },
100+
"Input": {
101+
"value": "Add member to role.",
102+
"label": "Add member to role."
103+
}
104+
}
105+
]
106+
}
91107
},
92108
{
93109
"value": "Update StsRefreshTokenValidFrom Timestamp.",
@@ -113,12 +129,44 @@
113129
{
114130
"value": "Disable Strong Authentication.",
115131
"name": "A users MFA has been disabled",
116-
"template": []
132+
"template": {
133+
"preset": {
134+
"value": "Disable Strong Authentication.",
135+
"label": "A users MFA has been disabled"
136+
},
137+
"logbook": { "value": "Audit.AzureActiveDirectory", "label": "Azure AD" },
138+
"conditions": [
139+
{
140+
"Property": { "value": "List:Operation", "label": "Operation" },
141+
"Operator": { "value": "EQ", "label": "Equals to" },
142+
"Input": {
143+
"value": "Disable Strong Authentication.",
144+
"label": "Disable Strong Authentication."
145+
}
146+
}
147+
]
148+
}
117149
},
118150
{
119151
"value": "Remove Member from a role.",
120152
"name": "A user has been removed from a role",
121-
"template": []
153+
"template": {
154+
"preset": {
155+
"value": "Remove Member from a role.",
156+
"label": "A user has been removed from a role"
157+
},
158+
"logbook": { "value": "Audit.AzureActiveDirectory", "label": "Azure AD" },
159+
"conditions": [
160+
{
161+
"Property": { "value": "List:Operation", "label": "Operation" },
162+
"Operator": { "value": "EQ", "label": "Equals to" },
163+
"Input": {
164+
"value": "Remove Member from a role.",
165+
"label": "Remove Member from a role."
166+
}
167+
}
168+
]
169+
}
122170
},
123171
{
124172
"value": "Reset user password.",
@@ -169,12 +217,44 @@
169217
{
170218
"value": "Add service principal.",
171219
"name": "A service principal has been created",
172-
"template": []
220+
"template": {
221+
"preset": {
222+
"value": "Add service principal.",
223+
"label": "A service principal has been created"
224+
},
225+
"logbook": { "value": "Audit.AzureActiveDirectory", "label": "Azure AD" },
226+
"conditions": [
227+
{
228+
"Property": { "value": "List:Operation", "label": "Operation" },
229+
"Operator": { "value": "EQ", "label": "Equals to" },
230+
"Input": {
231+
"value": "Add service principal.",
232+
"label": "Add service principal."
233+
}
234+
}
235+
]
236+
}
173237
},
174238
{
175239
"value": "Remove service principal.",
176240
"name": "A service principal has been removed",
177-
"template": []
241+
"template": {
242+
"preset": {
243+
"value": "Remove service principal.",
244+
"label": "A service principal has been removed"
245+
},
246+
"logbook": { "value": "Audit.AzureActiveDirectory", "label": "Azure AD" },
247+
"conditions": [
248+
{
249+
"Property": { "value": "List:Operation", "label": "Operation" },
250+
"Operator": { "value": "EQ", "label": "Equals to" },
251+
"Input": {
252+
"value": "Remove service principal.",
253+
"label": "Remove service principal."
254+
}
255+
}
256+
]
257+
}
178258
},
179259
{
180260
"value": "badRepIP",

src/importsMap.jsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -140,6 +140,7 @@ import React from 'react'
140140
"/tenant/administration/gdap-status": React.lazy(() => import('./views/tenant/administration/ListGDAPQueue')),
141141
"/tenant/standards/list-standards": React.lazy(() => import('./views/tenant/standards/ListStandards')),
142142
"/tenant/administration/tenant-offboarding-wizard": React.lazy(() => import('./views/tenant/administration/TenantOffboardingWizard')),
143+
"/tenant/administration/tenant-onboarding": React.lazy(() => import('./views/tenant/administration/TenantOnboarding')),
143144
"/tenant/administration/tenant-onboarding-wizard": React.lazy(() => import('./views/tenant/administration/TenantOnboardingWizard')),
144145
}
145146
export default importsMap

src/routes.json

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -954,6 +954,12 @@
954954
"component": "views/tenant/administration/TenantOffboardingWizard",
955955
"allowedRoles": ["admin"]
956956
},
957+
{
958+
"path": "/tenant/administration/tenant-onboarding",
959+
"name": "Tenant Onboarding",
960+
"component": "views/tenant/administration/TenantOnboarding",
961+
"allowedRoles": ["admin"]
962+
},
957963
{
958964
"path": "/tenant/administration/tenant-onboarding-wizard",
959965
"name": "Tenant Onboarding",

src/views/cipp/app-settings/SettingsPartner.jsx

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ import {
1919
CSpinner,
2020
} from '@coreui/react'
2121
import { Form } from 'react-final-form'
22-
import { RFFSelectSearch } from 'src/components/forms/index.js'
22+
import { RFFCFormSwitch, RFFSelectSearch } from 'src/components/forms/index.js'
2323
import React, { useEffect } from 'react'
2424
import { CippCallout } from 'src/components/layout/index.js'
2525
import { CippCodeBlock } from 'src/components/utilities'
@@ -45,6 +45,7 @@ export function SettingsPartner() {
4545
const onSubmit = (values) => {
4646
const shippedValues = {
4747
EventType: values?.EventType?.map((event) => event.value),
48+
standardsExcludeAllTenants: values?.standardsExcludeAllTenants,
4849
}
4950
submitWebhook({
5051
path: '/api/ExecPartnerWebhook?Action=CreateSubscription',
@@ -141,6 +142,8 @@ export function SettingsPartner() {
141142
label: event,
142143
value: event,
143144
})),
145+
standardsExcludeAllTenants:
146+
webhookConfig?.data?.Results?.standardsExcludeAllTenants,
144147
}}
145148
render={({ handleSubmit }) => (
146149
<>
@@ -156,6 +159,14 @@ export function SettingsPartner() {
156159
refreshFunction={() => webhookEvents.refetch()}
157160
helpText="Select the events you want to receive notifications for."
158161
/>
162+
<RFFCFormSwitch
163+
name="standardsExcludeAllTenants"
164+
helpText='Enabling this feature excludes tenants from any top-level
165+
"All Tenants" standard. This means that only the standards you
166+
explicitly set for this tenant will be applied.'
167+
label="Exclude onboarded tenants from top-level standards"
168+
className="mt-3"
169+
/>
159170
<CButton
160171
type="submit"
161172
color="primary"

0 commit comments

Comments
 (0)