<#982 Add auth endpoint to create_session_config> ...
# flyte-github
a
#982 Add auth endpoint to create_session_config Pull request opened by katrogan Follow-up to #959 When we use the ClusterAwareDataProxy, we still need to pass the control plane endpoint to auth middleware because auth still needs to happen against the control plane even if the request is ultimately served by a separate dataplane. Tested in a deployment where SelectCluster returned a direct dataplane URL and verified I could launch executions Before
Copy code
╭─────────────────────────────────────────────────────────────────────────────── Exception ───────────────────────────────────────────────────────────────────────────────╮
│ ✕ Execution failed: Failed to get signed url for /var/folders/1h/dgljffnn1q1clj5qb12ypw0c0000gn/T/tmpnk1yd25_/fastf3fae0b4949b45165d6191395c1f76c8.tar.gz: Unauthorized │
╰─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯
After
Copy code
18:21:22.475607 DEBUG    controlplane.py:312 -  Created DataProxy client for cluster endpoint: <https://foo>...                                                                                                                                   
╭────────────────────────────────────────────────── Remote Run ───────────────────────────────────────────────────╮
│ Created Run: rf2xrlq5sbssl7zpvpdz                                                                               │
│ URL: <https://foo/v2/domain/development/project/flytesnacks/runs/rf2xrlq5sbssl7zpvpdz> │
╰─────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯
flyteorg/flyte-sdk