Summary
Audit for open-uri usage (URI.open, OpenURI) and direct URL open() calls.
Approach
Run:
rg -n "\\bURI\\.open\\b|\\bOpenURI\\b|open\\(\\s*['\"]https?://" --glob "*.rb"
For each call site:
- Confirm inputs are trusted / not user-controlled
- Ensure timeouts are set
- Prefer explicit HTTP clients (Net::HTTP / Faraday) with timeouts and allowlists when fetching remote resources
If this audit finds real usage in production code, open follow-up issues for each substantive remediation.
Acceptance Criteria
Verification Plan
- Update call sites or document them
- Run relevant tests for the code paths touched
Summary
Audit for open-uri usage (
URI.open,OpenURI) and direct URLopen()calls.Approach
Run:
For each call site:
If this audit finds real usage in production code, open follow-up issues for each substantive remediation.
Acceptance Criteria
Verification Plan