title: Spring Cloud Gateway - Per-route security configuration. Dynamic reload on client registration
body: <p>I'm using SCG with Eureka, with discovery client based routes. Some clients have different security requirements (some unauthenticated, some with certain roles). I can set a path matcher on the <code>ServerHttpSecurity</code> object that builds the <code>SecurityWebFilterChain</code>, but I don't know in advance if any of the discovered services will be one of those that requires a different configuration from the default. I'm considering using metadata from the discovery client to configure this.</p>
  
  <p>Is there something in Spring Security to refresh the <code>ServerHttpSecurity</code> config based on some application event or something like that? Or is there something SCG that controls this? Or am I overthinking this and it just happens at some point?</p>