freezing-smartphone-61042
03/19/2024, 8:56 PMauthenticationInfo when attempting to register from the container. Contrastingly, successful registration attempts from outside of the container show principalEmail with my email under authenticationInfo.
We're also unable to run the script from step 8 of the configuring IAP instructions inside the container — this hangs indefinitely as well. Does anyone have suggestions to get this working?cool-lifeguard-49380
03/20/2024, 7:18 AMGCPIdentityAwareProxyAuthenticator from the iap plugin will be invoked in the subprocess. It uses the AuthorizationClient from flytekit here which will open the webbrowser during the auth flow here.
• Now comes the part that causes the hanging I think:
◦ Outside of the docker container webbrowser.open_new_tab( should just open the browser automatically.
◦ I think inside the docker container, this likely fails (unless it is e.g. a VSCode devcontainer where I know this still works) and prompts the user to click on the authorization link manually.
◦ Since this is run in a sub process by the CommandAuthenticator though, the user never sees this prompt, causing the hanging you see.
To confirm my suspicion is correct, could you please run the flyte-iap command directly in the docker container? I guess it will ask you to click on the browser window manually.cool-lifeguard-49380
03/20/2024, 7:24 AM["echo", "$FLYTE_PROXY_AUTH"] as proxy command
• Run FLYTE_PROXY_AUTH=$(flyte-iap ...) pyflyte run ...
• This takes the “opening of the webbrowser” out of the subprocess so that the user sees the link.
We then should discuss whether there is a way to enhance CommandAuthenticator to forward e.g. stderr to the user (for e.g. the log link or other error information) until a token is logged to stdout. Or parse all log lines of stdout and forward to the user if they are not a token …
This way, the user would also know what is happening in the subprocess.cool-lifeguard-49380
03/20/2024, 7:24 AMhallowed-camera-82098
03/20/2024, 4:07 PM