-
Notifications
You must be signed in to change notification settings - Fork 10
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
Add support for PreSigned URLs #1
Conversation
Signed-off-by: Haytham Abuelfutuh <[email protected]>
Signed-off-by: Haytham Abuelfutuh <[email protected]>
Signed-off-by: Haytham Abuelfutuh <[email protected]>
azure/container.go
Outdated
@@ -32,6 +34,11 @@ func (c *container) Name() string { | |||
return c.id | |||
} | |||
|
|||
func (c *container) PreSignRequest(_ context.Context, _ stow.ClientMethod, _ string, | |||
_ stow.PresignRequestParams) (url string, err error) { | |||
return "", fmt.Errorf("unsupported") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
if azure won't work, does this mean we're going to have to have logic in flytectl to detect if we're trying to use azure storage, and then switch back to using the current logic?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Implemented. Tested too
Signed-off-by: Haytham Abuelfutuh <[email protected]>
Signed-off-by: Haytham Abuelfutuh <[email protected]>
This PR adds support for PreSigned URL generation in S3, GCS and Minio. It's stubbed out in other implementations for now..
Ref: flyteorg/flyte#2263