neetob 0.5.36 → 0.5.38

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 02d8379e59c0f1ae5aff48cb624fc41225d5e5ee677f137bba4d897d0efe654c
4
- data.tar.gz: c0301285bd08c61c6205e3d672a4716ff2c8caf5689123c4513986e0c6de9ec1
3
+ metadata.gz: cc432fbaedaf4876e857a6bef33bb6ffb53eb0eb60f1cd05eed016ee98d31c42
4
+ data.tar.gz: 936b389ec2ce9b821066bc809b57affb0a42df097a9d095770b0134f30eab4e4
5
5
  SHA512:
6
- metadata.gz: e3cf68a89b8d1c952eb6f1edfaf9351e511a53ed9955ac387f0e7080d33409b826811fa610c68ce1c37203b24dfa0ddc21d193be3d29479749ba246362a31d00
7
- data.tar.gz: d707124de320657b6a6c783a85c04ba23bc960e560514263a2d24c1bd4eb98e67dec1d284122444ae04869a2add08352067c3ef27b949aeb29aed98bea1d5996
6
+ metadata.gz: ba5022338bd34c55e9b7dfdb8e885eda6d516e2410bb107bd352ae05a3fd74ee405334e4c3b50f40939574c116c5f4ca23a0f1817671bc9b6f4911a3970fd7b8
7
+ data.tar.gz: d23b2dcb1e7145849197c665cdcb3f18682090e948af1e2e1421b981eabe3bd63bec72657f458f6fac2833eaff4b76465dbafbde2fa6f42abbe3f58f5d09f8dc
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- neetob (0.5.36)
4
+ neetob (0.5.38)
5
5
  brakeman (~> 5.0)
6
6
  chronic
7
7
  dotenv (~> 2.8.1)
data/README.md CHANGED
@@ -261,7 +261,7 @@ neetob github make-pr compliance-fix --nanos
261
261
  # Add labels to PRs
262
262
  neetob github make-pr compliance-fix --labels "bug,priority"
263
263
 
264
- # Use local repos to make PRs
264
+ # Use local repos in the current directory to create PRs instead of cloning them into temporary storage each time.
265
265
  neetob github make-pr compliance-fix --local
266
266
 
267
267
  # The `script` command runs the given script for each product and create a PR
@@ -6,6 +6,83 @@ module Neetob
6
6
  module InstancesAndAddons
7
7
  module NeetoDeployOrHeroku
8
8
  class SslCertificatesOverThirtyDaysFromExpiry < CLI::Base
9
+ DOMAINS_AUTO_RENEWED = %w[
10
+ forms.amnd.xyz
11
+ eligibility.ozoneoverseas.in
12
+ help.talkflowai.com
13
+ meeting.reasonableproduct.com
14
+ scheduling.movechamber.org
15
+ cal.amnd.xyz
16
+ meet.darrenaclarke.com
17
+ meeting.royalhomeliving.uk
18
+ meet.talkflowai.com
19
+ ]
20
+
21
+ DOMAINS_POINTING_TO_HEROKU = %w[
22
+ forms.rvrsmartworks.com
23
+ forms.cibereduca.org
24
+ support.quirkyconsultant.com
25
+ meet.perfey.de
26
+ meet.aylett.co.uk
27
+ meet.fastbound.com
28
+ meet.canddi.com
29
+ calendar.jimryan.ie
30
+ meeting.caliham.com
31
+ meet.stripedarts.com
32
+ meet.tune.day
33
+ meet.shiftx.com
34
+ meeting.imarsrl.com
35
+ calender.rvrsmartworks.com
36
+ demo.variantspark.com
37
+ ]
38
+
39
+ DOMAINS_WITH_INVALID_CNAME_TARGET = %w[
40
+ forms.thenumber.ninja
41
+ racer.dingan.org
42
+ forms.monadsys.com.au
43
+ acumenn.money
44
+ techzonce.com
45
+ neerajsingh0202.com
46
+ engage.quirkyconsultant.com
47
+ ibymarketingdigital.com.br
48
+ testdomain.cecieee.org
49
+ help.neetopopups.com
50
+ help.coombined.com
51
+ help.neetosign.com
52
+ unni-playground.dingan.org
53
+ help.peerlist.io
54
+ help.neetobugtrap.com
55
+ help.neetosocial.com
56
+ unni.dingan.org
57
+ help.neetostore.com
58
+ meet.quirkyconsultant.com
59
+ interviews.activepresence.co
60
+ book.navapi.com
61
+ www.chessconfidence.com
62
+ cal.arbaaz.io
63
+ mapletalenthub.com
64
+ massagebunnik.nl
65
+ xplorify.bg
66
+ hiredeasy.com
67
+ meet.jijinkh.com
68
+ waqualityroofing.com
69
+ agenda.jylcontadoras.com.uy
70
+ yvonnecano.com
71
+ influenceintoincome.com
72
+ design-narrative.com
73
+ agenda.arma.com.mx
74
+ bitzen.cl
75
+ sanibeltreehouse.com
76
+ creativechamps.in
77
+ meet.sreeragmsadanandan.com
78
+ SHINEBLUEAGENCY.COM
79
+ amazyfvideos.com
80
+ meet.alpexsolar.com
81
+ calendar.alladvance.co.uk
82
+ thegreenspace.in
83
+ meet.kodair.us
84
+ ]
85
+
9
86
  def initialize
10
87
  super()
11
88
  end
@@ -24,10 +101,24 @@ module Neetob
24
101
  audit_passed = "No"
25
102
  comments = "You do not have permission to access the certificates for this app."
26
103
  else
27
- audit_passed = certificates_status.any? { |certificate| certificate["expires_before_30_days"] } ? "No" : "Yes"
104
+ certificates_to_be_flagged = certificates_status.select { |certificate|
105
+ certificate["expires_before_30_days"] &&
106
+ !(certificate["domains"] || []).map {
107
+ |domain| domain["hostname"]
108
+ }.any? { |domain|
109
+ (
110
+ DOMAINS_AUTO_RENEWED +
111
+ DOMAINS_POINTING_TO_HEROKU +
112
+ DOMAINS_WITH_INVALID_CNAME_TARGET
113
+ ).include?(domain)
114
+ }
115
+ }
116
+ audit_passed = certificates_to_be_flagged.empty? ? "Yes" : "No"
28
117
  certificates_expiring_in_less_than_30_days = "Yes" if audit_passed == "No"
29
118
  if audit_passed == "No"
30
- certificates_failing_audit = certificates_status.select { |certificate| certificate["expires_before_30_days"] }.map { |certificate| certificate["name"] }
119
+ certificates_failing_audit = certificates_to_be_flagged.map { |certificate|
120
+ "#{certificate["name"]}(#{certificate["domains"].map { |domain| domain["hostname"] }.join(", ")})"
121
+ }
31
122
  comments = "Certificates #{certificates_failing_audit.join(", ")} are expiring in less than 30 days."
32
123
  end
33
124
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Neetob
4
- VERSION = "0.5.36"
4
+ VERSION = "0.5.38"
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: neetob
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.36
4
+ version: 0.5.38
5
5
  platform: ruby
6
6
  authors:
7
7
  - Udai Gupta
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2025-02-03 00:00:00.000000000 Z
11
+ date: 2025-02-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: thor