Not really an issue but looking for suggestions on the best way to deal with the below use case.
I am trying to implement an IP whitelist allowing users to restrict access to, say a corporate network. Working on this got me thinking about the best way of implementing something like this for a large list of IP's. I know Appwrite DB (MariaDB) has full text search so
-
I can create a single document that as part of a String field maintains a delimited IP address list and a cloud function that would validate and allow or reject requests
-
Have a collection with each IP as a document in an indexed field.
-
Save a CSV in storage and have function pull the file, read and validate IP against it.
Not sure what would be the right way, if there is one best way, of implementing something like this. Open to other ideas.