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

Add support for PreSigned URLs #1

Merged
merged 5 commits into from
Mar 23, 2022
Merged

Add support for PreSigned URLs #1

merged 5 commits into from
Mar 23, 2022

Conversation

EngHabu
Copy link

@EngHabu EngHabu commented Mar 18, 2022

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

Signed-off-by: Haytham Abuelfutuh <haytham@afutuh.com>
Signed-off-by: Haytham Abuelfutuh <haytham@afutuh.com>
Signed-off-by: Haytham Abuelfutuh <haytham@afutuh.com>
@@ -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")

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?

Copy link
Author

@EngHabu EngHabu Mar 23, 2022

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 <haytham@afutuh.com>
Signed-off-by: Haytham Abuelfutuh <haytham@afutuh.com>
@EngHabu EngHabu merged commit 61cf833 into master Mar 23, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants