Sha256: 2682ea4da4927c457b27255821c64866f0405a2435bbca94dcf3bad415bd4d22

Contents?: true

Size: 1.12 KB

Versions: 13

Compression:

Stored size: 1.12 KB

Contents

# frozen_string_literal: true

require_relative "../../../cloudflare/min_tls_version"

module Neetob
  class CLI
    module MonthlyAudit
      module InstancesAndAddons
        module Cloudflare
          class MinimumTlsVersionIsOnePointTwo < CLI::Base
            def initialize
              super()
            end

            def run
              ui.success "### 3.2.3. Checking whether Minimum TLS version is 1.2"

              domains_data = [["Domain", "Minimum TLS version", "Audit Passed"]]
              ui.info("\n", print_to_audit_log: false)
              Neetob::CLI::Cloudflare::Base::ZONE_IDS.keys.select { |domain|
 domain.to_s.include?(".com") }.map do |domain|
                ui.info("Checking Minimum TLS version for #{domain}", print_to_audit_log: false)
                min_tls_version = Neetob::CLI::Cloudflare::MinTlsVersion.new(domain).run
                audit_passed = min_tls_version.to_s == "1.2" ? "Yes" : "No"
                domains_data << [domain, min_tls_version, audit_passed]
              end
              ui.print_table(domains_data)
            end
          end
        end
      end
    end
  end
end

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
neetob-0.5.29 lib/neetob/cli/monthly_audit/instances_and_addons/cloudflare/minimum_tls_version_is_one_point_two.rb
neetob-0.5.28 lib/neetob/cli/monthly_audit/instances_and_addons/cloudflare/minimum_tls_version_is_one_point_two.rb
neetob-0.5.27 lib/neetob/cli/monthly_audit/instances_and_addons/cloudflare/minimum_tls_version_is_one_point_two.rb
neetob-0.5.26 lib/neetob/cli/monthly_audit/instances_and_addons/cloudflare/minimum_tls_version_is_one_point_two.rb
neetob-0.5.25 lib/neetob/cli/monthly_audit/instances_and_addons/cloudflare/minimum_tls_version_is_one_point_two.rb
neetob-0.5.24 lib/neetob/cli/monthly_audit/instances_and_addons/cloudflare/minimum_tls_version_is_one_point_two.rb
neetob-0.5.23 lib/neetob/cli/monthly_audit/instances_and_addons/cloudflare/minimum_tls_version_is_one_point_two.rb
neetob-0.5.22 lib/neetob/cli/monthly_audit/instances_and_addons/cloudflare/minimum_tls_version_is_one_point_two.rb
neetob-0.5.21 lib/neetob/cli/monthly_audit/instances_and_addons/cloudflare/minimum_tls_version_is_one_point_two.rb
neetob-0.5.20 lib/neetob/cli/monthly_audit/instances_and_addons/cloudflare/minimum_tls_version_is_one_point_two.rb
neetob-0.5.19 lib/neetob/cli/monthly_audit/instances_and_addons/cloudflare/minimum_tls_version_is_one_point_two.rb
neetob-0.5.18 lib/neetob/cli/monthly_audit/instances_and_addons/cloudflare/minimum_tls_version_is_one_point_two.rb
neetob-0.5.17 lib/neetob/cli/monthly_audit/instances_and_addons/cloudflare/minimum_tls_version_is_one_point_two.rb