From f99dd18f8ad5459b9c9b3ed8e6b5537c4fd3dddf Mon Sep 17 00:00:00 2001 From: Michael Chin Date: Wed, 25 Jan 2023 17:20:18 -0800 Subject: [PATCH] Do not sign non-IAM Bolt requests Per: https://docs.aws.amazon.com/neptune/latest/userguide/access-graph-opencypher-bolt.html#access-graph-opencypher-bolt-python --- src/graph_notebook/neptune/client.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/graph_notebook/neptune/client.py b/src/graph_notebook/neptune/client.py index 03966791..41f3b202 100644 --- a/src/graph_notebook/neptune/client.py +++ b/src/graph_notebook/neptune/client.py @@ -393,7 +393,7 @@ def get_opencypher_driver(self): url = f'bolt://{self.host}:{self.port}' if self.is_neptune_domain(): - if self._session: + if self._session and self.iam_enabled: # check engine version via status API to determine if we need the OC endpoint path status_res = self.status() status_res.raise_for_status()