Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(session): used django session to store AWS credentials #1

Merged

Conversation

ronilrufo-domain
Copy link
Owner

@ronilrufo-domain ronilrufo-domain commented Jul 2, 2024

What

File upload using django-s3direct breaks when you are in a load-balanced environment. This is what we've seen in our investigation and is the same issue that was reported here and here (EvaporateJS).

How

This solution makes use of Django's session framework to temporarily store the AWS credentials so it will persist across different EC2 instances in a load-balanced environment.

This works in our case because we use short-lived AWS credentials. The credentials that our instances use expires after an hour.

@ronilrufo-domain ronilrufo-domain added bug Something isn't working enhancement New feature or request labels Jul 2, 2024
@ronilrufo-domain ronilrufo-domain self-assigned this Jul 2, 2024
@ronilrufo-domain ronilrufo-domain force-pushed the feature/rr/use-django-session-for-aws-credentials branch from ae64df8 to 055c701 Compare July 3, 2024 23:59
@ronilrufo-domain ronilrufo-domain merged commit 05e399a into master Jul 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants