Enable Auth Metadata Local Caching in Flyte-SDK#1105
Open
edwardsun-union wants to merge 25 commits into
Open
Conversation
c3c10eb to
c9956d8
Compare
60821f4 to
8b34025
Compare
6db5b0a to
3f7dd12
Compare
a15bcde to
f0cae30
Compare
| "mcp>=1.26.0", | ||
| "starlette", | ||
| "uvicorn", | ||
| "debugpy>=1.8.20", |
Author
There was a problem hiding this comment.
this is for enabling breakpoint to help debugging, added as dev dependency only, should be no harm
Signed-off-by: Edward Sun <edward.sun@union.ai>
Signed-off-by: Edward Sun <edward.sun@union.ai>
Signed-off-by: Edward Sun <edward.sun@union.ai>
Signed-off-by: Edward Sun <edward.sun@union.ai>
Signed-off-by: Edward Sun <edward.sun@union.ai>
Signed-off-by: Edward Sun <edward.sun@union.ai>
Signed-off-by: Edward Sun <edward.sun@union.ai>
Signed-off-by: Edward Sun <edward.sun@union.ai>
Signed-off-by: Edward Sun <edward.sun@union.ai>
Signed-off-by: Edward Sun <edward.sun@union.ai>
Signed-off-by: Edward Sun <edward.sun@union.ai>
Signed-off-by: Edward Sun <edward.sun@union.ai>
Signed-off-by: Edward Sun <edward.sun@union.ai>
Signed-off-by: Edward Sun <edward.sun@union.ai>
Signed-off-by: Edward Sun <edward.sun@union.ai>
Signed-off-by: Edward Sun <edward.sun@union.ai>
35a977d to
d8a556c
Compare
Signed-off-by: Edward Sun <edward.sun@union.ai>
edwardsun-union
commented
Jun 8, 2026
| authorizationHeader=public_client_config.authorization_metadata_key, | ||
| redirectUri=public_client_config.redirect_uri, | ||
| scopes=list(public_client_config.scopes), | ||
| audience=public_client_config.audience, |
Author
There was a problem hiding this comment.
@pmahindrakar-oss the audience is already refreshed from PublicClientConfig Call here
Signed-off-by: Edward Sun <edward.sun@union.ai>
Signed-off-by: Edward Sun <edward.sun@union.ai>
This reverts commit 2353d31.
Signed-off-by: Edward Sun <edward.sun@union.ai>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
- Description
Based on the decision make in eng slack channel. We have decided to enable auth metadata local cache capability in order to reduce the unnecessary
GetPublicClientConfigAPI calls currently existing when executing common tasks such asflyte runworkflow. As part of the decision, the cache will be stored within the hidden.flytedirectory under home based on the OS.- Testing
before change:
flyte create config --endpoint dns:///dogfood.cloud-staging.union.ai --project edward-test --domain staging --image-builder remoteflyte -vvv -c ./.flyte/config.yaml run ./basics/types/int_collection.py main --numbers '[1,2,3,4,5,10,20,30]'For client configuration refer to dogfood staging config v2
GetPublicClientConfigcall occurs for every task runafter change:
connectrpc/0.10.1)