Skip to content

API call to presigned s3 url should fail if not valid bucket and path #1297

@grallewellyn

Description

@grallewellyn

For example even with the right credentials
https://api.dit.maap-project.org/api/members/self/presignedUrlS3/maap-ops-workspace/my-private-bucket/untitled.txt?exp=86400&ws=anonymous
Should not be returning something because this file doesn't exist
Instead of having the frontend determine what buckets are mounted so that the user can right click to get the presigned s3 url, the API should be returning an error if the file is valid
And even when I do this with valid buckets, I keep getting permission denied trying to access the file returned

Is this function call making the translation between me passing the key maap-uat-workspace/my-private-bucket/untitled.txt and mapping my-private-bucket to grace.llewellyn?

Metadata

Metadata

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions