Large ipwhitelist with dynamic configuration


I decided to use dynamic configurations with labels, but now I'm struggling with the ipwhitelist middleware. I have to handle a large amount (about 20-30) different IPs.

Any best practise on how to handle that with dynamic configuration labels?


PS: Same question with multiple basicauth users.

Any ideas here? Sorry for pushing.


ipwhitelist middleware support CIDR, maybe you can reduce the number of IP by using it.

for basicauth you can use file:

Thanks, usersfile will help. Totally missed that in the docs. CIDR won't help, because the IPs are totally random and not groupabe by ranges.