Skip to content

Commit e9707c8

Browse files
committed
Fixed authentication enforcement
1 parent 2d268ba commit e9707c8

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

infra/k8s/memgraph.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,8 @@ spec:
5656
"--log-level=INFO",
5757
"--also-log-to-stderr",
5858
"--memory-limit=1024",
59-
"--query-execution-timeout-sec=60"
59+
"--query-execution-timeout-sec=60",
60+
"--bolt-server-auth-enabled=true"
6061
]
6162

6263
ports:

scripts/verify_memgraph_connection.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,10 @@
88
def verify_memgraph_connection(max_retries: int = 5, retry_delay: int = 5) -> Tuple[bool, Optional[str]]:
99
host = os.environ.get("MEMGRAPH_URI", "127.0.0.1")
1010
port = int(os.environ.get("MEMGRAPH_PORT", "7687"))
11-
username = "test" or os.environ.get("MEMGRAPH_USERNAME", "memgraph")
11+
username = os.environ.get("MEMGRAPH_USERNAME", "memgraph")
1212
password = os.environ.get("MEMGRAPH_PASSWORD", "memgraph")
1313

14-
print(f"Verifying connection to Memgraph at {host}:{port}")
14+
print(f"Verifying connection to Memgraph at {host}:{port} with username: {username}")
1515

1616
if host == "localhost":
1717
host = "127.0.0.1"

0 commit comments

Comments
 (0)