tls-checker 1.3.0 → 1.4.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 26872fe183d0e6a3a861bad2f7265923a0d4e73b2d03b294757d821dc63d9f91
4
- data.tar.gz: dd86682331bbb40d55ac43996077362234ac19c9d8691833af58ec2ed22fac0c
3
+ metadata.gz: 326f4de5b655454e93e3453e227d4fb05f70cd8bb3c2e55ebfcd2da42dac2dd3
4
+ data.tar.gz: ee887d5def9bebaf1feca5edd1a1fc400b8d4e783e690886e4562c7d8a0e5e55
5
5
  SHA512:
6
- metadata.gz: b7e46514562cce02f7bdd2520ec154c9f06eeaa6081e2b5d42e7b45ca2faedda335517129d70f218e1ab5b63686352ba7ecc17d46be84b61366229772e9d2cb8
7
- data.tar.gz: 03df2d9f3a7027c83635db058346622fc2fd28741a44b80340c29aa878d3fcfff0b6d7159501509a3398658a954b8d5784bc56e06965778befe4d24a23157d70
6
+ metadata.gz: 0e76c9ad4a2c28eac92217092fbade0cca5d99b389df5fe7d910cec5bc11eba26178b429fea87420724b24d4695e8561348ba87e5d0b704e7f9cae46887f1474
7
+ data.tar.gz: 2049b8cbfe64603900503fd4c4d75cef18b6d7693c325a1a359a3c75f34f0a420df0a27ba921ebe53954fef34134a7d07d5617fb0e70f90e3966c2ac58d1318b
@@ -5,6 +5,17 @@ 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
+ ## [1.4.0]
9
+
10
+ ### Added
11
+
12
+ - New metadata in generated events: af (address fanily, one of 'inet' and
13
+ 'inet6'), hostname, address and port.
14
+
15
+ ### Changed
16
+
17
+ - Ensure events' ttl is an Integer.
18
+
8
19
  ## [1.3.0]
9
20
 
10
21
  ### Changed
@@ -34,7 +45,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
34
45
  - Make it possible to test services using an IP address;
35
46
  - Report validity of certificates when a TLSA record is found in the DNS.
36
47
 
37
- [Unreleased]: https://github.com/smortex/tls-checker/compare/v1.3.0...HEAD
48
+ [Unreleased]: https://github.com/smortex/tls-checker/compare/v1.4.0...HEAD
49
+ [1.4.0]: https://github.com/smortex/tls-checker/compare/v1.3.0...v1.4.0
38
50
  [1.3.0]: https://github.com/smortex/tls-checker/compare/v1.2.0...v1.3.0
39
51
  [1.2.0]: https://github.com/smortex/tls-checker/compare/v1.1.1...v1.2.0
40
52
  [1.1.1]: https://github.com/smortex/tls-checker/compare/v1.1.0...v1.1.1
@@ -28,9 +28,13 @@ module TLSChecker
28
28
  description: @certificate_failure || "#{hostname} does not have a valid certificate",
29
29
  }
30
30
  end.merge(
31
- service: service,
32
- ttl: 12.hours,
33
- tags: ['tls-checker'],
31
+ service: service,
32
+ af: af,
33
+ hostname: hostname,
34
+ address: address.to_s,
35
+ port: port,
36
+ ttl: 12.hours.to_i,
37
+ tags: ['tls-checker'],
34
38
  )
35
39
  end
36
40
 
@@ -64,6 +68,15 @@ module TLSChecker
64
68
 
65
69
  private
66
70
 
71
+ def af
72
+ case @address
73
+ when Resolv::IPv4
74
+ 'inet'
75
+ when Resolv::IPv6
76
+ 'inet6'
77
+ end
78
+ end
79
+
67
80
  def tls_socket
68
81
  @tls_socket ||= case starttls
69
82
  when :smtp
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module TlsChecker
4
- VERSION = '1.3.0'
4
+ VERSION = '1.4.0'
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tls-checker
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.3.0
4
+ version: 1.4.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Romain Tartière
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2019-03-08 00:00:00.000000000 Z
11
+ date: 2019-03-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: internet_security_event