Skip to content

[SAR] APPENG-5144: Database SSL/TLS enforcement#196

Open
yuvalk wants to merge 1 commit into
RHEcosystemAppEng:mainfrom
yuvalk:fix/APPENG-5144-database-ssl
Open

[SAR] APPENG-5144: Database SSL/TLS enforcement#196
yuvalk wants to merge 1 commit into
RHEcosystemAppEng:mainfrom
yuvalk:fix/APPENG-5144-database-ssl

Conversation

@yuvalk
Copy link
Copy Markdown
Collaborator

@yuvalk yuvalk commented May 6, 2026

Summary

Addresses APPENG-5144.

Adds a DATABASE_REQUIRE_SSL configuration option that enforces SSL/TLS for PostgreSQL connections, ensuring database traffic is encrypted in transit.

Changes

  • Added database_require_ssl field (default False) in src/lightspeed_agent/config/settings.py
  • Added SSL enforcement logic in the PostgreSQL branch of get_engine() in src/lightspeed_agent/db/base.py

SAR Reference

  • CWE: CWE-319 (Cleartext Transmission of Sensitive Information)
  • Impact: Medium

Co-Authored-By: Claude Opus 4.6 (1M context) noreply@anthropic.com

Add DATABASE_REQUIRE_SSL setting that enables SSL for PostgreSQL
connections when set to true. This ensures database traffic is encrypted
in transit, protecting credentials and query data.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@luis5tb
Copy link
Copy Markdown
Collaborator

luis5tb commented May 8, 2026

Created a PR with a couple of nits and improvements: yuvalk#3

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.

2 participants