From c56d4070fc245d27dc4783b30c6a70cd98e5a711 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82=20Krassowski?= <5832902+krassowski@users.noreply.github.com> Date: Wed, 28 Aug 2024 11:02:39 +0100 Subject: [PATCH 1/3] Allow unauthenticated access to jupyter server --- nbdime/webapp/nbdimeserver.py | 1 + 1 file changed, 1 insertion(+) diff --git a/nbdime/webapp/nbdimeserver.py b/nbdime/webapp/nbdimeserver.py index e4d98b6f..4c35c7fe 100644 --- a/nbdime/webapp/nbdimeserver.py +++ b/nbdime/webapp/nbdimeserver.py @@ -388,6 +388,7 @@ def make_app(**params): 'jinja2_env': env, 'local_hostnames': ['localhost', '127.0.0.1'], 'cookie_secret': base64.encodebytes(os.urandom(32)), # Needed even for an unsecured server. + 'allow_unauthenticated_access': True, } try: From c48b071cd86782669ca642ea79c7b41619c45f8f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82=20Krassowski?= <5832902+krassowski@users.noreply.github.com> Date: Wed, 28 Aug 2024 11:09:11 +0100 Subject: [PATCH 2/3] Add a warning about using unsecured server --- docs/source/cli.rst | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/docs/source/cli.rst b/docs/source/cli.rst index e268f1ac..54652d3c 100644 --- a/docs/source/cli.rst +++ b/docs/source/cli.rst @@ -14,6 +14,11 @@ nbdime provides the following CLI commands:: Pass ``--help`` to each command to see help text for the command's usage. +.. warning:: + The `-web` variants will start up a local, unsecured server. + If the port used by this server is accessible to others users + (which is commonly the case in HPC setups) the content of the + diffed/merged notebook will be accessibly by other users. Additional commands are available for :ref:`git-integration`. From 9f56fc51daa9f9ae22b761f4f01a91f6886f7237 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82=20Krassowski?= <5832902+krassowski@users.noreply.github.com> Date: Wed, 28 Aug 2024 14:08:27 +0100 Subject: [PATCH 3/3] Grammar Co-authored-by: David Brochart --- docs/source/cli.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/source/cli.rst b/docs/source/cli.rst index 54652d3c..538fc42f 100644 --- a/docs/source/cli.rst +++ b/docs/source/cli.rst @@ -16,7 +16,7 @@ Pass ``--help`` to each command to see help text for the command's usage. .. warning:: The `-web` variants will start up a local, unsecured server. - If the port used by this server is accessible to others users + If the port used by this server is accessible to other users (which is commonly the case in HPC setups) the content of the diffed/merged notebook will be accessibly by other users.