Hello! does anybody knows how to restrict access to wiremock recorder by ip using wiremock docker?
r
Rob Elliot
03/23/2023, 11:25 AM
Could you elaborate a bit on what the problem is you are trying to solve?
m
Marino Wijay
03/27/2023, 12:49 PM
An approach you could take, you could use IPtables to limit interactions/connections to your WireMock recorder.
https://docs.docker.com/network/iptables/
Docker Docs has some examples you can use.
Or, if you want to be fancy, deploy this to Kubernetes, use a CNI like Cilium and use NetworkPolicy with a label-selector in case your WireMock pod gets re-deployed with a new IP.