Skip to content

Commit 5bf37e2

Browse files
committed
Update S3 service policy to specify Principal as AWS object: Changed the Principal field in the S3 bucket policy to use an AWS object for improved security and clarity in permissions management.
1 parent a4cee5e commit 5bf37e2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

apps/api/src/storage/s3.service.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ export class S3Service {
128128
{
129129
Sid: 'PublicReadGetObject',
130130
Effect: 'Allow',
131-
Principal: '*',
131+
Principal: { AWS: '*' },
132132
Action: ['s3:GetObject'],
133133
Resource: [`arn:aws:s3:::${bucketName}/*`],
134134
},

0 commit comments

Comments
 (0)