Authorising atlas Function with request from CIDR IP

Hello,
I have a atlas function which I want to execute only when the request comes from specific IP. I am using can evaluate under authorisation to do this using:

{
  "%%request.remoteIPAddress": {
    "$in": "%%values.WhitelistedIPAddresses"
  }
}

It work when I provide IP addresses as a list but I want to provide IP address in CIDR format. Can someone help me on how to do that?

Many Thanks

Hi Utkarsh,

I do not believe we support CIDR notation for IP addresses in the context.request interface, so you would have to list them all. Have you tried doing a partial matching? So instead of 192.168.0.0/24, you would match on 192.168.0.*

Thanks for clarifying Kaylee. I would prefer the list instead of partial matching