Skip to content

S3 artifact service - #171

Merged
Sandeep-BA merged 3 commits into
redbus-labs:mainfrom
alfredjimmy-redbus:s3_artifact_service
Jun 22, 2026
Merged

S3 artifact service#171
Sandeep-BA merged 3 commits into
redbus-labs:mainfrom
alfredjimmy-redbus:s3_artifact_service

Conversation

@alfredjimmy-redbus

Copy link
Copy Markdown

This PR updates the PostgresArtifactService to improve how artifacts are stored and referenced in S3. It introduces the ability to specify a custom base folder path for S3 uploads and changes the stored file URI format from s3:// to standard HTTPS URLs, making the artifacts directly accessible via web clients.

Changes
Added S3_BASE_PATH support: Introduced a new environment variable S3_BASE_PATH that allows artifacts to be stored inside a specific folder/prefix in the S3 bucket (e.g., artifacts/) rather than at the root of the bucket.
Updated buildObjectKey: Modified the key generation logic to safely prepend the S3_BASE_PATH (handling trailing slashes) if it is configured.
Switched to HTTPS URLs: Updated persistToS3AndKafka to construct and store standard AWS S3 HTTPS URLs (https://{bucket}.s3.{region}.amazonaws.com/{key}) in the database's file_uri column instead of the s3:// protocol format.
Global endpoint fallback: Added a fallback to the global S3 endpoint (https://{bucket}.s3.amazonaws.com/{key}) if the S3_REGION environment variable is not set.
Gitignore update: Added contrib/samples/a2a_basic/bin/ to .gitignore.

@Sandeep-BA
Sandeep-BA merged commit 16de494 into redbus-labs:main Jun 22, 2026
0 of 3 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.

3 participants