Skip to content

Implement env-driven signed URL strategy providers#855

Merged
nanaf6203-bit merged 1 commit into
MettaChain:mainfrom
Joyyyb:feature/env-driven-signed-url-strategy
Jun 30, 2026
Merged

Implement env-driven signed URL strategy providers#855
nanaf6203-bit merged 1 commit into
MettaChain:mainfrom
Joyyyb:feature/env-driven-signed-url-strategy

Conversation

@Joyyyb

@Joyyyb Joyyyb commented Jun 29, 2026

Copy link
Copy Markdown
Contributor

This change introduces an env-driven strategy pattern for signed URL generation in the documents module. A factory now selects the active provider based on the SIGNED_URL_PROVIDER environment variable, with explicit S3, GCS, and Azure provider shells that can be wired to real implementations by integrators. The default path remains a not-configured provider that throws a clear error when no backend is selected, making the behavior explicit and extensible for future storage integrations.

Closes the issue requesting signed URL generation to be implemented through a strategy pattern driven by environment variables, with S3/GCS/Azure placeholders and a default not-configured failure mode.

Closes #751

This change introduces an env-driven strategy pattern for signed URL generation in the documents module. A factory now selects the active provider based on the SIGNED_URL_PROVIDER environment variable, with explicit S3, GCS, and Azure provider shells that can be wired to real implementations by integrators. The default path remains a not-configured provider that throws a clear error when no backend is selected, making the behavior explicit and extensible for future storage integrations.

Closes the issue requesting signed URL generation to be implemented through a strategy pattern driven by environment variables, with S3/GCS/Azure placeholders and a default not-configured failure mode.
@drips-wave

drips-wave Bot commented Jun 29, 2026

Copy link
Copy Markdown

@Joyyyb Great news! 🎉 Based on an automated assessment of this PR, the linked Wave issue(s) no longer count against your application limits.

You can now already apply to more issues while waiting for a review of this PR. Keep up the great work! 🚀

Learn more about application limits

@nanaf6203-bit nanaf6203-bit left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

LGTM

@nanaf6203-bit nanaf6203-bit merged commit a1b8541 into MettaChain:main Jun 30, 2026
5 checks passed
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.

[C5] Pluggable signed-URL provider abstraction (S3/GCS/Azure)

2 participants