Skip to content

feat(core): add presign support for obs#2253

Merged
suyanhanx merged 2 commits intoapache:mainfrom
cuichenli:add-presign-support-for-obs
May 16, 2023
Merged

feat(core): add presign support for obs#2253
suyanhanx merged 2 commits intoapache:mainfrom
cuichenli:add-presign-support-for-obs

Conversation

@cuichenli
Copy link
Copy Markdown
Contributor

fixes: #2070

noticed that oss already have the presign support, so this pr only touches obs.

@cuichenli
Copy link
Copy Markdown
Contributor Author

some side notes:

noticed there are a lot of code duplicates, for instance: obs_get_head_object_request and obs_get_head_object share the same logic on setup the req object, not sure if it would be worth to extract the shared logic?

also for the sign_query method, not sure if it would be worth to make it as a trait?

Comment thread core/src/services/obs/core.rs
Comment thread core/src/services/obs/core.rs Outdated
@Xuanwo
Copy link
Copy Markdown
Member

Xuanwo commented May 11, 2023

not sure if it would be worth to extract the shared logic?

We can call xxx_request in xxx.

also for the sign_query method, not sure if it would be worth to make it as a trait?

Make it a trait is not helpful because one service one has one valid sign_query implementaion.

Comment thread core/src/services/obs/core.rs Outdated
@cuichenli
Copy link
Copy Markdown
Contributor Author

thanks, updated based on the comments above.

@cuichenli cuichenli requested review from Xuanwo and suyanhanx May 16, 2023 03:34
Copy link
Copy Markdown
Member

@suyanhanx suyanhanx left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks. Let's go.

@suyanhanx suyanhanx merged commit 239d3ed into apache:main May 16, 2023
@Xuanwo Xuanwo mentioned this pull request May 23, 2023
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

Successfully merging this pull request may close these issues.

Add supporting presign for other cloud storage services

3 participants