Skip to content

Bypass certificate verification in downloader #557

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

Merged
merged 1 commit into from
Jun 6, 2025

Conversation

nefrathenrici
Copy link
Member

The ECCO server is sending an SSL certificate chain that includes Entrust intermediate certificates. Since Entrust root certificates have been distrusted by many platforms, this causes certificate validation failures.

This PR works around the issue by bypassing certificate verification in the netrc_downloader. While the data transfer is still encrypted disabling certificate verification means we no longer confirm the server’s authenticity, which does introduce some security risks.

Copy link

codecov bot commented Jun 5, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 14.25%. Comparing base (42bc765) to head (8d6f7bd).
Report is 1 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #557      +/-   ##
==========================================
- Coverage   14.29%   14.25%   -0.05%     
==========================================
  Files          48       48              
  Lines        2833     2835       +2     
==========================================
- Hits          405      404       -1     
- Misses       2428     2431       +3     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Copy link
Collaborator

@simone-silvestri simone-silvestri left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@nefrathenrici
Copy link
Member Author

I guess this PR is a fix for these tests failing? https://github.com/CliMA/ClimaOcean.jl/actions/runs/15485716733/job/43599831576

Yes, this is the same error I ran into using ClimaOcean in the coupler.

@nefrathenrici nefrathenrici merged commit b3cf23d into main Jun 6, 2025
27 of 33 checks passed
@nefrathenrici nefrathenrici deleted the ne/bypass_certificate branch June 6, 2025 17:00
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