From 45a90e93aecab47852da53f68fb7d0236786c9f4 Mon Sep 17 00:00:00 2001 From: Matteo Ferrando Date: Fri, 27 Feb 2026 00:50:53 -0400 Subject: [PATCH] chore: backwards compatible env var for auth --- src/isolate/server/server.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/isolate/server/server.py b/src/isolate/server/server.py index ddc85b7..b462855 100644 --- a/src/isolate/server/server.py +++ b/src/isolate/server/server.py @@ -728,7 +728,12 @@ def main(argv: list[str] | None = None) -> None: if options.single_use: interceptors.append(SingleTaskInterceptor()) - if controller_auth_key := os.getenv("ISOLATE_CONTROLLER_AUTH_KEY"): + controller_auth_key = os.getenv("ISOLATE_CONTROLLER_AUTH_KEY") + if not controller_auth_key: + # DEPRECATED: remove this after rolling new version of controller + controller_auth_key = os.getenv("CONTROLLER_KEY") + + if controller_auth_key: # Set an interceptor to only accept requests with the correct auth key interceptors.append(ControllerAuthInterceptor(controller_auth_key)) else: