Skip to content

jhub: restrict the REANA extension to the VRE's REANA server - #327

Merged
Soap2G merged 2 commits into
vre-hub:mainfrom
btwshivam:fix/reana-server-allowlist
Sep 2, 2026
Merged

Soap2G merged 2 commits into
vre-hub:mainfrom
btwshivam:fix/reana-server-allowlist

Conversation

@btwshivam

Copy link
Copy Markdown

reana-jupyterlab-extension guards POST /env with a host check (is_allowed_reana_server) so the singleuser pod can't be pointed at internal addresses. Without an allowlist, that check can't block a hostname that resolves to an internal IP: resolving to validate and then reconnecting is a DNS-rebinding TOCTOU, so it deliberately doesn't resolve.

This sets REANA_ALLOWED_SERVER_HOSTS to the VRE's REANA host, turning the check into an explicit allowlist. Only reana-vre.cern.ch is accepted; any other host is rejected without resolving. reana-vre.cern.ch is the only REANA host
referenced across vre/helm-charts/environments, so nothing else is affected.

Pairs with the extension-side host check in
vre-hub/reana-jupyterlab-extension#77

@Soap2G
Soap2G merged commit b291f96 into vre-hub:main Sep 2, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants