Skip to content

fix(security): 2 improvements across 2 files#2336

Open
tomaioo wants to merge 2 commits intocodalab:developfrom
tomaioo:fix/security/tls-certificate-verification-disabled-fo
Open

fix(security): 2 improvements across 2 files#2336
tomaioo wants to merge 2 commits intocodalab:developfrom
tomaioo:fix/security/tls-certificate-verification-disabled-fo

Conversation

@tomaioo
Copy link
Copy Markdown

@tomaioo tomaioo commented Apr 15, 2026

Summary

fix(security): 2 improvements across 2 files

Problem

Severity: High | File: compute_worker/celery_config.py:L6

The Celery SSL configuration explicitly sets cert_reqs to ssl.CERT_NONE, which disables server certificate validation. This allows man-in-the-middle interception of broker traffic (task payloads, credentials, and control messages) when SSL is enabled.

Solution

Require certificate validation by setting cert_reqs to ssl.CERT_REQUIRED, and provide a trusted CA bundle (ca_certs). Optionally configure client cert/key for mTLS. Example: broker_use_ssl = {'cert_reqs': ssl.CERT_REQUIRED, 'ca_certs': '/path/to/ca.pem'}.

Changes

  • compute_worker/celery_config.py (modified)
  • src/apps/commands/management/commands/upload_backup.py (modified)

tomaioo added 2 commits April 15, 2026 05:10
- Security: TLS certificate verification disabled for Celery broker connection
- Security: Path traversal in backup upload command allows arbitrary file read/delete

Signed-off-by: tomaioo <203048277+tomaioo@users.noreply.github.com>
- Security: TLS certificate verification disabled for Celery broker connection
- Security: Path traversal in backup upload command allows arbitrary file read/delete

Signed-off-by: tomaioo <203048277+tomaioo@users.noreply.github.com>
@Didayolo Didayolo requested a review from ObadaS April 21, 2026 12:46
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.

1 participant