Skip to content

feat: Add boto3 session based auth for dynamodb online store for cross account access - #4606

Merged
tokoko merged 6 commits into
feast-dev:masterfrom
asingh9530:feat-boto3-session-dynamodb
Oct 10, 2024
Merged

tokoko merged 6 commits into
feast-dev:masterfrom
asingh9530:feat-boto3-session-dynamodb

Conversation

@asingh9530

Copy link
Copy Markdown
Contributor

What this PR does / why we need it:

Hi Team,

This PR enables feast to create aws client from either current session or using default boto3.client. This will enable feast to use dynamodb in a cross account setup i.e if feast is running in account A and want to use dynamodb in account B, right now it dosen't offers that and creates a default client which is limits the usage of feast.

Which issue(s) this PR fixes:

#4605

Misc

ghost left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Some small nits but this lgtm!

@asingh9530

ghost commented Oct 5, 2024 •

Copy link
Copy Markdown
Contributor Author

Co-authored-by: Francisco Arceo farceo@redhat.com

I think DCO does not work on github commits, could you help. Thanks

asingh9530 and others added 4 commits October 5, 2024 19:12
Signed-off-by: asingh9530 <abhinav199530singh@gmail.com>
Signed-off-by: asingh9530 <abhinav199530singh@gmail.com>
Co-authored-by: Francisco Arceo <farceo@redhat.com>
Signed-off-by: asingh9530 <abhinav199530singh@gmail.com>
Co-authored-by: Francisco Arceo <farceo@redhat.com>
Signed-off-by: asingh9530 <abhinav199530singh@gmail.com>
@asingh9530
asingh9530 force-pushed the feat-boto3-session-dynamodb branch from 5900ca2 to 8c7f0d6 Compare October 5, 2024 13:43
@asingh9530

ghost commented Oct 5, 2024

Copy link
Copy Markdown
Contributor Author

Co-authored-by: Francisco Arceo farceo@redhat.com

I think DCO does not work on github commits, could you help. Thanks

No Need did a force signoff

@asingh9530 asingh9530 changed the title Added boto3 session based auth for dynamodb online store for cross account access Feat - Added boto3 session based auth for dynamodb online store for cross account access Oct 5, 2024
@franciscojavierarceo franciscojavierarceo changed the title Feat - Added boto3 session based auth for dynamodb online store for cross account access feat: Add boto3 session based auth for dynamodb online store for cross account access Oct 5, 2024
@franciscojavierarceo
franciscojavierarceo enabled auto-merge (squash) October 5, 2024 22:00
asingh9530 added 2 commits October 6, 2024 16:22
Signed-off-by: asingh9530 <abhinav199530singh@gmail.com>
Signed-off-by: asingh9530 <abhinav199530singh@gmail.com>
@asingh9530

ghost commented Oct 6, 2024

Copy link
Copy Markdown
Contributor Author

@franciscojavierarceo added a dummy commit as one of the workflow was stuck.

@franciscojavierarceo

ghost commented Oct 6, 2024

Copy link
Copy Markdown
Member

There's also a button in the UI fwiw

tags: Union[Dict[str, str], None] = None
"""AWS resource tags added to each table"""

session_based_auth: bool = False

ghost Oct 6, 2024

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is too much bother, I think. We should simply switch to session based, there's no real upside in keeping old behavior, unless I'm missing something.

ghost Oct 6, 2024

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Breaking changes create friction to using later versions. I'm fine for getting rid of it in a subsequent release if we give users notice through a warning.

ghost Oct 6, 2024

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What makes this a breaking change? We're changing an internal detail of how a client is instantiated, it's not a change in an API. can't really imagine how anyone would be depending on the previous behavior of us using a default session.

ghost Oct 6, 2024

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oh I see, this isn't configured through the feature_store.yaml, my bad.

ghost Oct 7, 2024

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@tokoko I would still argue we should use this setup in upcoming release and completely switch to session in next just to make sure we don't break anything internally or for feast existing customers although I can't really think if this would break anything but just as a caution.

ghost Oct 8, 2024

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What do you think ?

ghost Oct 10, 2024

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@tokoko any update ?

ghost Oct 10, 2024

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@asingh9530 sorry. I'm fine with proceeding as is, although I think we're being over-cautious. Ironically when we make changes later on to remove this config, the removal will technically be a breaking change 😆 anyway, that's fine as well, let's just not forget to remove it though.

ghost Oct 10, 2024

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Lol let me add a warning though if we use default client.

@tokoko
tokoko disabled auto-merge October 6, 2024 17:40
@tokoko
tokoko merged commit 00eaf74 into feast-dev:master Oct 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants