tls-checker 2.0.3 → 3.1.0
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/.github/dependabot.yml +18 -0
- data/.github/workflows/ci.yml +5 -6
- data/.rubocop.yml +2 -3
- data/CHANGELOG.md +24 -0
- data/Rakefile +1 -1
- data/lib/tls_checker/tlsa_checker_factory.rb +4 -9
- data/lib/tls_checker/version.rb +1 -1
- data/tls-checker.gemspec +2 -2
- metadata +7 -10
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 0a83b2340bde85ea4e0416b633b4b1cf5938de939fe9549bf92d5cd176045bde
|
|
4
|
+
data.tar.gz: 9bc4a644b60f54e4d96ed69c22c38f0d7754ecada7df3de1b73d5b4b7f7b3d1e
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 6b53454915ecd13421f9a57692d063a9dea0914caa6de95ef8ab36525d891119cba76936dbcb34de6c68a09213d867d48382f0a1fef05e334f7f51e21686c907
|
|
7
|
+
data.tar.gz: 6d08905990a6b0eb109cc9414c6d5b65a619e775bcc47963ad50e2820eca6054a304673e94f029384fbf04402ca4db8302212acf118a0e280618ddb4db5d0f79
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
# To get started with Dependabot version updates, you'll need to specify which
|
|
2
|
+
# package ecosystems to update and where the package manifests are located.
|
|
3
|
+
# Please see the documentation for all configuration options:
|
|
4
|
+
# https://docs.github.com/github/administering-a-repository/configuration-options-for-dependency-updates
|
|
5
|
+
|
|
6
|
+
version: 2
|
|
7
|
+
updates:
|
|
8
|
+
# Open PR for gem updates
|
|
9
|
+
- package-ecosystem: "bundler" # See documentation for possible values
|
|
10
|
+
directory: "/" # Location of package manifests
|
|
11
|
+
schedule:
|
|
12
|
+
interval: "daily"
|
|
13
|
+
|
|
14
|
+
# Open PR for GitHub Actions updates
|
|
15
|
+
- package-ecosystem: "github-actions"
|
|
16
|
+
directory: "/"
|
|
17
|
+
schedule:
|
|
18
|
+
interval: "daily"
|
data/.github/workflows/ci.yml
CHANGED
|
@@ -12,7 +12,7 @@ jobs:
|
|
|
12
12
|
rubocop:
|
|
13
13
|
runs-on: ubuntu-latest
|
|
14
14
|
steps:
|
|
15
|
-
- uses: actions/checkout@
|
|
15
|
+
- uses: actions/checkout@v7
|
|
16
16
|
- name: Setup ruby
|
|
17
17
|
uses: ruby/setup-ruby@v1
|
|
18
18
|
with:
|
|
@@ -26,15 +26,14 @@ jobs:
|
|
|
26
26
|
strategy:
|
|
27
27
|
matrix:
|
|
28
28
|
ruby:
|
|
29
|
-
- "2.6"
|
|
30
|
-
- "2.7"
|
|
31
|
-
- "3.0"
|
|
32
29
|
- "3.1"
|
|
33
30
|
- "3.2"
|
|
34
31
|
- "3.3"
|
|
32
|
+
- "3.4"
|
|
33
|
+
- "4.0"
|
|
35
34
|
name: Ruby ${{ matrix.ruby }}
|
|
36
35
|
steps:
|
|
37
|
-
- uses: actions/checkout@
|
|
36
|
+
- uses: actions/checkout@v7
|
|
38
37
|
- name: Setup ruby
|
|
39
38
|
uses: ruby/setup-ruby@v1
|
|
40
39
|
with:
|
|
@@ -45,7 +44,7 @@ jobs:
|
|
|
45
44
|
run: bundle exec rake
|
|
46
45
|
- name: Run tests and upload coverage to Code Climate
|
|
47
46
|
if: ${{ matrix.ruby == '3.0' }}
|
|
48
|
-
uses: paambaati/codeclimate-action@
|
|
47
|
+
uses: paambaati/codeclimate-action@v9.0.0
|
|
49
48
|
env:
|
|
50
49
|
CC_TEST_REPORTER_ID: ${{ secrets.CODECLIMATE_TOKEN }}
|
|
51
50
|
with:
|
data/.rubocop.yml
CHANGED
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
AllCops:
|
|
2
2
|
AllowSymlinksInCacheRootDirectory: true
|
|
3
|
-
TargetRubyVersion: 2.6
|
|
4
3
|
|
|
5
|
-
|
|
4
|
+
plugins:
|
|
6
5
|
- rubocop-rake
|
|
7
6
|
- rubocop-rspec
|
|
8
7
|
|
|
@@ -10,7 +9,7 @@ Layout/HashAlignment:
|
|
|
10
9
|
EnforcedColonStyle: table
|
|
11
10
|
EnforcedHashRocketStyle: table
|
|
12
11
|
|
|
13
|
-
|
|
12
|
+
Layout/LineLength:
|
|
14
13
|
Max: 160
|
|
15
14
|
|
|
16
15
|
Style/Documentation:
|
data/CHANGELOG.md
CHANGED
|
@@ -5,6 +5,30 @@ All notable changes to this project will be documented in this file.
|
|
|
5
5
|
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/)
|
|
6
6
|
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
|
7
7
|
|
|
8
|
+
## [v3.1.0](https://github.com/smortex/tls-checker/tree/v3.1.0) (2026-09-24)
|
|
9
|
+
|
|
10
|
+
[Full Changelog](https://github.com/smortex/tls-checker/compare/v3.0.0...v3.1.0)
|
|
11
|
+
|
|
12
|
+
**Implemented enhancements:**
|
|
13
|
+
|
|
14
|
+
- Add Ruby 4.0 to the test matrix [\#23](https://github.com/smortex/tls-checker/pull/23) ([smortex](https://github.com/smortex))
|
|
15
|
+
|
|
16
|
+
**Fixed bugs:**
|
|
17
|
+
|
|
18
|
+
- Improve / Fix TLSA check [\#24](https://github.com/smortex/tls-checker/pull/24) ([smortex](https://github.com/smortex))
|
|
19
|
+
|
|
20
|
+
## [v3.0.0](https://github.com/smortex/tls-checker/tree/v3.0.0) (2025-10-07)
|
|
21
|
+
|
|
22
|
+
[Full Changelog](https://github.com/smortex/tls-checker/compare/v2.0.3...v3.0.0)
|
|
23
|
+
|
|
24
|
+
**Breaking changes:**
|
|
25
|
+
|
|
26
|
+
- Switch to internet\_security\_event 4.x [\#18](https://github.com/smortex/tls-checker/pull/18) ([smortex](https://github.com/smortex))
|
|
27
|
+
|
|
28
|
+
**Implemented enhancements:**
|
|
29
|
+
|
|
30
|
+
- Run CI on Ruby 3.4 [\#19](https://github.com/smortex/tls-checker/pull/19) ([smortex](https://github.com/smortex))
|
|
31
|
+
|
|
8
32
|
## [v2.0.3](https://github.com/smortex/tls-checker/tree/v2.0.3) (2024-01-01)
|
|
9
33
|
|
|
10
34
|
[Full Changelog](https://github.com/smortex/tls-checker/compare/v2.0.2...v2.0.3)
|
data/Rakefile
CHANGED
|
@@ -15,7 +15,7 @@ GitHubChangelogGenerator::RakeTask.new :changelog do |config|
|
|
|
15
15
|
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/)
|
|
16
16
|
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
|
17
17
|
HEADER
|
|
18
|
-
config.exclude_labels = %w[duplicate question invalid wontfix wont-fix skip-changelog ignore]
|
|
18
|
+
config.exclude_labels = %w[dependencies duplicate question invalid wontfix wont-fix skip-changelog ignore]
|
|
19
19
|
config.user = 'smortex'
|
|
20
20
|
config.project = 'tls-checker'
|
|
21
21
|
config.since_tag = 'v1.4.0'
|
|
@@ -37,17 +37,12 @@ module TLSChecker
|
|
|
37
37
|
end
|
|
38
38
|
end
|
|
39
39
|
|
|
40
|
-
def each_tlsa_record(certificate_checker)
|
|
40
|
+
def each_tlsa_record(certificate_checker, &block)
|
|
41
41
|
resource = "_#{certificate_checker.port}._tcp.#{certificate_checker.hostname}."
|
|
42
42
|
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
next unless rr.instance_of?(Resolv::DNS::Resource::Generic::Type52_Class1)
|
|
47
|
-
|
|
48
|
-
record = Resolv::DNS::Resource::IN::TLSA.new(rr.data)
|
|
49
|
-
yield(record)
|
|
50
|
-
end
|
|
43
|
+
# XXX: Should we check the RRSIG, or can we assume that the resolver
|
|
44
|
+
# should have failed if it could not verify the response?
|
|
45
|
+
@resolver.getresources(resource, Resolv::DNS::Resource::IN::TLSA).each(&block)
|
|
51
46
|
end
|
|
52
47
|
end
|
|
53
48
|
end
|
data/lib/tls_checker/version.rb
CHANGED
data/tls-checker.gemspec
CHANGED
|
@@ -13,7 +13,7 @@ Gem::Specification.new do |spec|
|
|
|
13
13
|
spec.summary = 'Report expired/about to expires certificates used in TLS connexions'
|
|
14
14
|
spec.homepage = 'https://github.com/smortex/tls-checker'
|
|
15
15
|
spec.license = 'MIT'
|
|
16
|
-
spec.required_ruby_version = Gem::Requirement.new('>=
|
|
16
|
+
spec.required_ruby_version = Gem::Requirement.new('>= 3.1.0')
|
|
17
17
|
|
|
18
18
|
# Specify which files should be added to the gem when it is released.
|
|
19
19
|
# The `git ls-files -z` loads the files in the RubyGem that have been added into git.
|
|
@@ -24,7 +24,7 @@ Gem::Specification.new do |spec|
|
|
|
24
24
|
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
|
|
25
25
|
spec.require_paths = ['lib']
|
|
26
26
|
|
|
27
|
-
spec.add_dependency 'internet_security_event', '~>
|
|
27
|
+
spec.add_dependency 'internet_security_event', '~> 5.0'
|
|
28
28
|
|
|
29
29
|
spec.add_development_dependency 'bundler'
|
|
30
30
|
spec.add_development_dependency 'github_changelog_generator'
|
metadata
CHANGED
|
@@ -1,14 +1,13 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: tls-checker
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version:
|
|
4
|
+
version: 3.1.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Romain Tartière
|
|
8
|
-
autorequire:
|
|
9
8
|
bindir: exe
|
|
10
9
|
cert_chain: []
|
|
11
|
-
date:
|
|
10
|
+
date: 1980-01-02 00:00:00.000000000 Z
|
|
12
11
|
dependencies:
|
|
13
12
|
- !ruby/object:Gem::Dependency
|
|
14
13
|
name: internet_security_event
|
|
@@ -16,14 +15,14 @@ dependencies:
|
|
|
16
15
|
requirements:
|
|
17
16
|
- - "~>"
|
|
18
17
|
- !ruby/object:Gem::Version
|
|
19
|
-
version: '
|
|
18
|
+
version: '5.0'
|
|
20
19
|
type: :runtime
|
|
21
20
|
prerelease: false
|
|
22
21
|
version_requirements: !ruby/object:Gem::Requirement
|
|
23
22
|
requirements:
|
|
24
23
|
- - "~>"
|
|
25
24
|
- !ruby/object:Gem::Version
|
|
26
|
-
version: '
|
|
25
|
+
version: '5.0'
|
|
27
26
|
- !ruby/object:Gem::Dependency
|
|
28
27
|
name: bundler
|
|
29
28
|
requirement: !ruby/object:Gem::Requirement
|
|
@@ -150,7 +149,6 @@ dependencies:
|
|
|
150
149
|
- - ">="
|
|
151
150
|
- !ruby/object:Gem::Version
|
|
152
151
|
version: '0'
|
|
153
|
-
description:
|
|
154
152
|
email:
|
|
155
153
|
- romain@blogreen.org
|
|
156
154
|
executables:
|
|
@@ -158,6 +156,7 @@ executables:
|
|
|
158
156
|
extensions: []
|
|
159
157
|
extra_rdoc_files: []
|
|
160
158
|
files:
|
|
159
|
+
- ".github/dependabot.yml"
|
|
161
160
|
- ".github/workflows/ci.yml"
|
|
162
161
|
- ".gitignore"
|
|
163
162
|
- ".rspec"
|
|
@@ -184,7 +183,6 @@ homepage: https://github.com/smortex/tls-checker
|
|
|
184
183
|
licenses:
|
|
185
184
|
- MIT
|
|
186
185
|
metadata: {}
|
|
187
|
-
post_install_message:
|
|
188
186
|
rdoc_options: []
|
|
189
187
|
require_paths:
|
|
190
188
|
- lib
|
|
@@ -192,15 +190,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
|
192
190
|
requirements:
|
|
193
191
|
- - ">="
|
|
194
192
|
- !ruby/object:Gem::Version
|
|
195
|
-
version:
|
|
193
|
+
version: 3.1.0
|
|
196
194
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
197
195
|
requirements:
|
|
198
196
|
- - ">="
|
|
199
197
|
- !ruby/object:Gem::Version
|
|
200
198
|
version: '0'
|
|
201
199
|
requirements: []
|
|
202
|
-
rubygems_version:
|
|
203
|
-
signing_key:
|
|
200
|
+
rubygems_version: 4.0.20
|
|
204
201
|
specification_version: 4
|
|
205
202
|
summary: Report expired/about to expires certificates used in TLS connexions
|
|
206
203
|
test_files: []
|