Skip to content
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

feat: add hashHeadersWhitelist configuration for selective header hashing #803

Closed
wants to merge 1 commit into from

Conversation

glower
Copy link

@glower glower commented May 18, 2024

Added support for a new configuration option hashHeadersWhitelist in the WebSocket configuration. This allows specifying a whitelist of headers that should be hashed and forwarded during WebSocket connections.

The implementation includes updates to the schema and handling of the new configuration option in the WebSocketConnectionHandler

Motivation and Context

Implement an allow-list to have fine-grained control over which headers are hashed in the initial subscription upgrade request.

TODO

… header hashing

Added support for a new configuration option `hashHeadersWhitelist` in the WebSocket configuration. This allows specifying a whitelist of headers that should be hashed and forwarded during WebSocket connections. The implementation includes updates to the schema and handling of the new configuration option in the `WebSocketConnectionHandler`.\n\nEnsured that the existing `ignoreHeader` method remains intact for backward compatibility. Users can use `hashHeadersWhitelist` to specify headers to be hashed in addition to those already managed by `ignoreHeader`.
@StarpTech StarpTech closed this May 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants