-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[ADDED] option to keep or remove js headers #5409
base: main
Are you sure you want to change the base?
Conversation
Hi @ramonberrutti. What concrete use case drove this proposal? You note sourcing. There are messages being sourced that you either want to add or remove headers? My concern is that this is technically user-defined processing of the message while being replicated. There is still some scoping and designing to do, but there is a plan to introduce a "message callout" which would enable a generic means for single message transforms. In conversations, the current scope had not considered sourcing/mirroring, but this will be something worth considering. My concern is that this could be a slippery slope of adding message processing behavior as part of stream configuration. |
Hi @bruth I would love "message callout", but that would be impossible in a high-throughput environment. There are two big cases that I want to solve right now:
I agree that this will contain stream logic for message processing. I'm also updating the PR to support update changes. |
I have connected users over ws too, What exact issue can come if a bad client publishes NATS msg-headers? Should this not be implemented over a permission-map then over a stream properties? example:
this would make more sense to let the server filter headers on the client permission for publish and subscribe. |
I think that I found my aware already. The header Of course the stream need to be purgeable too. |
Add an option to keep or remove headers from a stream.
This is very useful for source streams where sometimes you don't want to store extra headers or have clients you can't control publishing to your streams.
Signed-off-by: Ramon Berrutti [email protected]