Repository navigation
fix: handler auth - #77
Conversation
Soap2G
left a comment
There was a problem hiding this comment.
Hi @btwshivam
Thank you for these changes.
One quick comment, for the record: is_allowed_reana_server() does not resolve hostnames (resolving them here to check, then reconnecting, opens a DNS-rebinding TOCTOU).
This means a caller-supplied hostname that resolves to an internal address is not blocked unless REANA_ALLOWED_SERVER_HOSTS is set to an explicit allowlist.
Please have a look to the pipeline failing, and we can probably merge.
you're right, and it's deliberate. Resolving to check and then letting requests reconnect just re-resolves at connect time soo it doesn't actually help. allowlist |
|
have fixed the ci also |
Codecov Report✅ All modified and coverable lines are covered by tests.
🚀 New features to boost your workflow:
|
|
@btwshivam Let's have a look also at the code coverage :) |
Thanks done ! |
None of the extension's 10 server handlers required authentication; tornado.web.authenticated was never imported or applied, so every endpoint was reachable by any caller who could reach the singleuser pod.