-
Notifications
You must be signed in to change notification settings - Fork 371
feat: support disabling TLS verification for blob storage #2801
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
base: main
Are you sure you want to change the base?
Changes from 1 commit
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -60,6 +60,7 @@ async def get_storage_client() -> AsyncIterator[S3Client]: | |
| "s3", | ||
| endpoint_url=config.TRACECAT__BLOB_STORAGE_ENDPOINT, | ||
| config=_STORAGE_CLIENT_CONFIG, | ||
| verify=config.TRACECAT__BLOB_STORAGE_SSL_VERIFY, | ||
|
cubic-dev-ai[bot] marked this conversation as resolved.
Outdated
|
||
| # Defaults to minio default credentials. MUST REPLACE WITH PRODUCTION CREDENTIALS. | ||
| aws_access_key_id=os.environ.get( | ||
| "AWS_ACCESS_KEY_ID", | ||
|
|
@@ -73,7 +74,11 @@ async def get_storage_client() -> AsyncIterator[S3Client]: | |
| yield client | ||
| else: | ||
| # AWS S3 configuration - use AWS credentials from environment or default credential chain | ||
| async with session.client("s3", config=_STORAGE_CLIENT_CONFIG) as client: | ||
| async with session.client( | ||
| "s3", | ||
| config=_STORAGE_CLIENT_CONFIG, | ||
| verify=config.TRACECAT__BLOB_STORAGE_SSL_VERIFY, | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
When Useful? React with 👍 / 👎. |
||
| ) as client: | ||
| yield client | ||
|
|
||
|
|
||
|
|
||
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.
When a self-hosted operator copies
.env.exampleand sets this tofalse, the provided Compose deployments still won't pass it into the containers: the blob-storage environment blocks indocker-compose.ymlenumerate the endpoint and bucket vars but omit this new key (e.g. lines 78-84, 156-162, 237-243, 306-312, and 428-434). Since Compose.envvalues are only used for interpolation unless listed in a service environment block,tracecat/config.pyfalls back totrueand the new TLS-disabling option has no effect in the documented Docker Compose path. Please thread${TRACECAT__BLOB_STORAGE_SSL_VERIFY:-true}through each service that talks to blob storage.Useful? React with 👍 / 👎.