neetob 0.5.26 → 0.5.28
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/lib/neetob/cli/monthly_audit/instances_and_addons/cloudflare/dns_entry_has_proxy_status.rb +10 -2
- data/lib/neetob/cli/monthly_audit/instances_and_addons/cronitor/setup_correctly_for_help_center.rb +7 -0
- data/lib/neetob/cli/monthly_audit/instances_and_addons/cronitor/setup_correctly_for_landing_pages.rb +9 -0
- data/lib/neetob/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6268ba86f6681dc9e0f09f6f72561e0bb053ca891d0f9bc54849c0c5dd8c5094
|
4
|
+
data.tar.gz: 7b5beaf94dcb45ec8bae12fb7e31cbc533ffb355b6226ada8164a00d4556b94e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a5d6d3df725dc9f2c6d70d6153d9bc83327c2686533ba800d2f716daa4adf391c4212b1a3cc05fadc09fcd932aca6e31af835ef24778f275311a9353df2caa3b
|
7
|
+
data.tar.gz: ea1d6eb95b585348725bb7b6b3956390cd9c60ee4a698243253b86b4004092e26ed2a406196287802a7c4e047d4c8dcdccd6a82a763b93f230eb0b3431a10503
|
data/Gemfile.lock
CHANGED
data/lib/neetob/cli/monthly_audit/instances_and_addons/cloudflare/dns_entry_has_proxy_status.rb
CHANGED
@@ -6,6 +6,11 @@ module Neetob
|
|
6
6
|
module InstancesAndAddons
|
7
7
|
module Cloudflare
|
8
8
|
class DnsEntryHasProxyStatus < CLI::Base
|
9
|
+
DOMAINS_TO_IGNORE_AUDIT_RESULT_FOR = [
|
10
|
+
"neeto.com",
|
11
|
+
"bigbinary.com",
|
12
|
+
"neetorecord.com",
|
13
|
+
]
|
9
14
|
def initialize
|
10
15
|
super()
|
11
16
|
end
|
@@ -22,10 +27,13 @@ module Neetob
|
|
22
27
|
proxiable_records = Neetob::CLI::Cloudflare::DnsProxyStatus.new(domain).run
|
23
28
|
record_to_check = proxiable_records.select { |record| record[:name] == "*.#{domain}" }.first
|
24
29
|
if record_to_check.nil?
|
25
|
-
|
30
|
+
audit_passed = DOMAINS_TO_IGNORE_AUDIT_RESULT_FOR.include?(domain.to_s) ? "Ignored" : "No"
|
31
|
+
domains_data << [domain, "No * records found", audit_passed]
|
26
32
|
else
|
27
33
|
is_wildcard_subdomain_proxied = record_to_check[:proxied]
|
28
|
-
audit_passed =
|
34
|
+
audit_passed = DOMAINS_TO_IGNORE_AUDIT_RESULT_FOR.include?(domain.to_s) ?
|
35
|
+
"Ignored" :
|
36
|
+
(is_wildcard_subdomain_proxied ? "Yes" : "No")
|
29
37
|
proxy_status = is_wildcard_subdomain_proxied ? "on" : "off"
|
30
38
|
domains_data << [domain, "#{record_to_check[:name]} has proxying turned #{proxy_status}",
|
31
39
|
audit_passed]
|
data/lib/neetob/cli/monthly_audit/instances_and_addons/cronitor/setup_correctly_for_help_center.rb
CHANGED
@@ -6,6 +6,10 @@ module Neetob
|
|
6
6
|
module InstancesAndAddons
|
7
7
|
module Cronitor
|
8
8
|
class SetupCorrectlyForHelpCenter < CLI::Base
|
9
|
+
APPS_TO_IGNORE = [
|
10
|
+
"NeetoTower"
|
11
|
+
]
|
12
|
+
|
9
13
|
def initialize
|
10
14
|
super()
|
11
15
|
end
|
@@ -38,6 +42,9 @@ module Neetob
|
|
38
42
|
audit_passed = "Yes"
|
39
43
|
end
|
40
44
|
end
|
45
|
+
if (audit_passed == "No") && APPS_TO_IGNORE.map(&:downcase).include?(app.downcase.to_s)
|
46
|
+
audit_passed = "Ignored"
|
47
|
+
end
|
41
48
|
|
42
49
|
apps_data << [app, monitor_for_app_help_center_present, monitor_for_app_help_center_enabled, comments,
|
43
50
|
audit_passed]
|
data/lib/neetob/cli/monthly_audit/instances_and_addons/cronitor/setup_correctly_for_landing_pages.rb
CHANGED
@@ -6,6 +6,11 @@ module Neetob
|
|
6
6
|
module InstancesAndAddons
|
7
7
|
module Cronitor
|
8
8
|
class SetupCorrectlyForLandingPages < CLI::Base
|
9
|
+
APPS_TO_IGNORE = [
|
10
|
+
"NeetoAuth",
|
11
|
+
"NeetoTower"
|
12
|
+
]
|
13
|
+
|
9
14
|
def initialize
|
10
15
|
super()
|
11
16
|
end
|
@@ -39,6 +44,10 @@ module Neetob
|
|
39
44
|
end
|
40
45
|
end
|
41
46
|
|
47
|
+
if (audit_passed == "No") && APPS_TO_IGNORE.map(&:downcase).include?(app.downcase.to_s)
|
48
|
+
audit_passed = "Ignored"
|
49
|
+
end
|
50
|
+
|
42
51
|
apps_data << [app, monitor_for_app_landing_page_present, monitor_for_app_landing_page_enabled,
|
43
52
|
comments, audit_passed]
|
44
53
|
end
|
data/lib/neetob/version.rb
CHANGED