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

AWS S3 Provider Fails to Authenticate with Private Buckets #328

Open
dalytekab opened this issue Dec 24, 2024 · 0 comments
Open

AWS S3 Provider Fails to Authenticate with Private Buckets #328

dalytekab opened this issue Dec 24, 2024 · 0 comments

Comments

@dalytekab
Copy link

Description 📝
When using the S3 provider in the next-video repository, the show/upload functionality works only when the S3 bucket allows public access.
However, if the "Block all public access" option is enabled for the bucket, the application consistently encounters an Access Denied error.

This issue persists even after creating a new IAM user with appropriate permissions (same as in the docs) and providing the credentials in both the Next.js configuration and/or environment variables. Additionally, I tried adding a bucket policy to explicitly allow all actions from the created IAM user, but the issue still occurs.

Steps to Reproduce 🔧
1️⃣ Create a new S3 bucket.
2️⃣ Enable the "Block all public access" option in the bucket settings.
3️⃣ Create a new IAM user with programmatic access, assign a policy that grants full S3 access to the specific bucket, and use the credentials in the application.
4️⃣ Attempt to show/upload a video or perform any operation with the S3 provider.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant