Skip to content

Commit f188492

Browse files
authored
feature/ms365: Extend microsoft.security with exchange.antispam.HostedConnectionFilterPolicy (#5735)
* feat: Add MS365 HostedConnectionFilterPolicy resource - Extend microsoft.security with exchange.antispam.HostedConnectionFilterPolicy - Add new resource hierarchy: microsoft.security.exchange.antispam.hostedConnectionFilterPolicy - Implement PowerShell-based data fetching using Get-HostedConnectionFilterPolicy cmdlet - Include fields: identity, adminDisplayName, ipAllowList, ipBlockList, enableSafeList - Update resource definitions, generated Go code, and manifest files Resolves #5586 * fix: Use empty map instead of nil for container resource creation - Replace nil arguments with map[string]*llx.RawData{} in CreateResource calls - Fixes 'cannot convert primitive with NO type information' error - Follows established patterns from other MS365 container resources * Update check-spelling metadata * Fix `CreateResource` in `hostedConnectionFilterPolicy` * Add `convert` remove manual loops
1 parent b94f23c commit f188492

File tree

5 files changed

+518
-9
lines changed

5 files changed

+518
-9
lines changed

.github/actions/spelling/expect.txt

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
ACCOUNTADMIN
22
Adddays
3+
antispam
34
atlassian
45
auditlog
56
Auths
@@ -25,8 +26,10 @@ DATAUSER
2526
Ddos
2627
deliverychannel
2728
dfw
29+
dlp
2830
dlq
2931
dlv
32+
eas
3033
eip
3134
ekm
3235
elbv
@@ -42,7 +45,9 @@ headerorder
4245
hostkeys
4346
iana
4447
iap
48+
iccid
4549
ilb
50+
imei
4651
ingresstls
4752
iotedge
4853
ipsetforwardedipconfig
@@ -54,9 +59,11 @@ kqueue
5459
labelmatchstatement
5560
liveanalytics
5661
loggingservice
62+
manageddevice
5763
managedrulegroupstatement
5864
managedzone
5965
mcr
66+
meid
6067
messagestoragepolicy
6168
mfs
6269
mgroup
@@ -104,13 +111,15 @@ spo
104111
sqli
105112
sqlimatchstatement
106113
sqlserver
114+
Sspr
107115
tailscale
108116
targetgroup
109117
tde
110118
testutils
111119
timestream
112120
toplevel
113121
tpu
122+
udid
114123
usb
115124
vdcs
116125
virtualmachine
@@ -120,12 +129,3 @@ vulnmgmt
120129
wil
121130
xoxp
122131
xssmatchstatement
123-
eas
124-
iccid
125-
imei
126-
manageddevice
127-
meid
128-
udid
129-
Passwordless
130-
Sspr
131-
dlp

providers/ms365/resources/ms365.lr

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1042,6 +1042,8 @@ microsoft.security {
10421042
latestSecureScores() microsoft.security.securityscore
10431043
// List Microsoft Entra users who are at risk
10441044
riskyUsers() []microsoft.security.riskyUser
1045+
// Exchange security settings
1046+
exchange() microsoft.security.exchange
10451047
}
10461048

10471049
// Microsoft Secure Score
@@ -1090,6 +1092,32 @@ microsoft.security.riskyUser @defaults("principalName riskLevel riskState lastUp
10901092
lastUpdatedAt time
10911093
}
10921094

1095+
// Microsoft Security Exchange
1096+
microsoft.security.exchange {
1097+
// Exchange antispam settings
1098+
antispam() microsoft.security.exchange.antispam
1099+
}
1100+
1101+
// Microsoft Security Exchange Antispam
1102+
microsoft.security.exchange.antispam {
1103+
// Hosted connection filter policy
1104+
hostedConnectionFilterPolicy() microsoft.security.exchange.antispam.hostedConnectionFilterPolicy
1105+
}
1106+
1107+
// Microsoft Security Exchange Antispam Hosted Connection Filter Policy
1108+
microsoft.security.exchange.antispam.hostedConnectionFilterPolicy @defaults("identity enableSafeList") {
1109+
// Policy identity
1110+
identity string
1111+
// Admin display name for the policy
1112+
adminDisplayName string
1113+
// IP addresses that are always allowed
1114+
ipAllowList []string
1115+
// IP addresses that are always blocked
1116+
ipBlockList []string
1117+
// Whether to use the safe list
1118+
enableSafeList bool
1119+
}
1120+
10931121
// Microsoft policies
10941122
microsoft.policies {
10951123
// Authorization policy

0 commit comments

Comments
 (0)