Insecure Network Communication

Why is this important?

Ensuring that the data in transit is secured between users and your application is the most fundamental security requirement. If this security control is not in place then all bets are off and attackers have many ways to attack your users.

Check out this video for a high-level explanation:

Insufficient Transport Layer Protection

Fixing Insecure Network Communication

Option A: Properly Set SSL Verification

  1. Go through the issues that GuardRails identified in the PR.
  2. Replace OpenSSL::SSL::VERIFY_NONE:

     http.verify_mode = OpenSSL::SSL::VERIFY_NONE

    with OpenSSL::SSL::VERIFY_PEER:

     # Ensure that you have a valid certificate, otherwise this will raise
     # an OpenSSL::SSL::SSLError.
     # get free certificates at
     http.verify_mode = OpenSSL::SSL::VERIFY_PEER
  3. Test it

  4. Ship it 🚢 and relax 🌴

More information: