Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion src/isolate/server/server.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down