Skip to content

Verify TLS certificates in Cloudinary::Downloader - #598

Merged
const-cloudinary merged 1 commit into
masterfrom
fix/downloader-tls-verification
Dec 6, 2026
Merged

const-cloudinary merged 1 commit into
masterfrom
fix/downloader-tls-verification

Conversation

@const-cloudinary

Copy link
Copy Markdown
Member

Cloudinary::Downloader.download disabled TLS certificate verification for HTTPS downloads. This removes that override so Ruby's default verification applies (trusted chain and hostname check).

Affects direct Cloudinary::Downloader.download calls and the CarrierWave integration's read.

Tests

spec/downloader_spec.rb runs a local TLS server with generated certificates:

  • valid certificate: download succeeds
  • self-signed certificate: raises OpenSSL::SSL::SSLError
  • hostname mismatch: raises OpenSSL::SSL::SSLError

🤖 Generated with Claude Code

@const-cloudinary const-cloudinary changed the title Verify TLS certificates in Cloudinary::Downloader Verify TLS certificates in CarrierWave downloads Dec 6, 2026
@const-cloudinary const-cloudinary changed the title Verify TLS certificates in CarrierWave downloads Verify TLS certificates in Cloudinary::Downloader Dec 6, 2026
@const-cloudinary
const-cloudinary merged commit c410e2e into master Dec 6, 2026
7 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.

1 participant