File tree Expand file tree Collapse file tree 1 file changed +6
-1
lines changed
Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -91,6 +91,7 @@ export const InfraConfigSchema = z.object({
9191 ipWhitelisting : z
9292 . object ( {
9393 extraWhitelistedIngress : z . array ( z . string ( ) ) . default ( [ ] ) ,
94+ excludedIps : z . array ( z . string ( ) ) . default ( [ ] ) ,
9495 } )
9596 . optional ( ) ,
9697 enableGCReaperJob : z . boolean ( ) . default ( false ) ,
@@ -163,8 +164,12 @@ export function loadIPRanges(svsOnly: boolean = false): pulumi.Output<string[]>
163164 } ) ;
164165
165166 const configWhitelistedIps = infraConfig . ipWhitelisting ?. extraWhitelistedIngress || [ ] ;
167+ const excludedIps = infraConfig . ipWhitelisting ?. excludedIps || [ ] ;
166168
167169 return internalWhitelistedIps . apply ( whitelists =>
168- whitelists . concat ( externalIpRanges ) . concat ( configWhitelistedIps )
170+ whitelists
171+ . concat ( externalIpRanges )
172+ . concat ( configWhitelistedIps )
173+ . filter ( ip => excludedIps . indexOf ( ip ) < 0 )
169174 ) ;
170175}
You can’t perform that action at this time.
0 commit comments