Hello, group -
I'm considering using an Any field in a service-to-service request object. This would allow clients to send arbitrary data to the server, which would dispatch requests to the appropriate event handler based on the Any's type information (achieving a kind of polymorphic dispatch). The server would log a warning and drop requests with unrecognized types. This approach would loosen coupling between system components, reduce the number of cross-component dependencies, and streamline the process adding/removing new handlers.
My central question is: Are there security risks (or other significant) problems with this approach?
Thanks in advance!
Peter