You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pulsar.apache.org by GitBox <gi...@apache.org> on 2018/06/13 09:13:34 UTC
[GitHub] massakam opened a new pull request #1959: Fixed authorization for
REST API provided by WebSocket proxy
massakam opened a new pull request #1959: Fixed authorization for REST API provided by WebSocket proxy
URL: https://github.com/apache/incubator-pulsar/pull/1959
### Motivation
Currently, anyone can access the entry point `/admin/v2/proxy-stats/{domain}/{tenant}/{namespace}/{topic}/stats` provided by WebSocket proxy, because authorization does not work correctly.
### Modifications
Fixed `WebSocketWebResource#validateUserAccess()` to throw RestException if receiving invalid auth token.
### Result
WebSocket proxy will return 401 error for requests without valid auth tokens.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
With regards,
Apache Git Services