You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Provide a clear and concise explanation of the issue you're facing.
Use of AWS SSO credentials to create storage in DynamoDB table may fail as code is not able to validate temporary credentials AWS_SESSION_TOKEN issued by AWS SSO.
Proposed Solution
Explain your ideal solution. How should this feature work?
To create DynamoDb table to store user sessions it should be able to use AWS_SESSION_TOKEN which is gathered by user from console or so after being authenticated and granted with permissions
Alternatives Considered
Have you found any workarounds or alternative solutions?
Share other approaches you've tried or thought about.
Yes, the file $HOME/phidata/phienv/lib/python3.13/site-packages/phi/storage/agent/dynamodb.py should be modified to include 'aws_session_token' as optional str
Problem Description
Provide a clear and concise explanation of the issue you're facing.
Use of AWS SSO credentials to create storage in DynamoDB table may fail as code is not able to validate temporary credentials AWS_SESSION_TOKEN issued by AWS SSO.
Proposed Solution
Explain your ideal solution. How should this feature work?
To create DynamoDb table to store user sessions it should be able to use AWS_SESSION_TOKEN which is gathered by user from console or so after being authenticated and granted with permissions
Alternatives Considered
Have you found any workarounds or alternative solutions?
Share other approaches you've tried or thought about.
Yes, the file $HOME/phidata/phienv/lib/python3.13/site-packages/phi/storage/agent/dynamodb.py should be modified to include 'aws_session_token' as optional str
Existing --
def init(
self,
table_name: str,
region_name: Optional[str] = None,
aws_access_key_id: Optional[str] = None,
aws_secret_access_key: Optional[str] = None,
endpoint_url: Optional[str] = None,
create_table_if_not_exists: bool = True,
):
"""
Initialize the DynamoDbAgentStorage.
Updated ---
def init(
self,
table_name: str,
region_name: Optional[str] = None,
aws_access_key_id: Optional[str] = None,
aws_secret_access_key: Optional[str] = None,
aws_session_token: Optional[str] = None,
endpoint_url: Optional[str] = None,
create_table_if_not_exists: bool = True,
):
"""
Initialize the DynamoDbAgentStorage.
Since the strings are optional it will work for both IAM user and AWS SSO authenticated user token
Additional context
Include any extra information that might be helpful, such as:
Would you like to work on this?
We welcome contributions! Let us know if you’d like to help implement this feature.
[ ] I’m open to collaborating but need guidance.
The text was updated successfully, but these errors were encountered: