sensu-plugins-ssl 1.2.0 → 1.3.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
  SHA1:
3
- metadata.gz: 0c7ef7f4a5a0373eed6c446ed8ec13223600e22d
4
- data.tar.gz: ed0fce3c7528e674217fcc9f5353cf02681cae24
3
+ metadata.gz: 56d1fd89252eb63452051047b469061990116965
4
+ data.tar.gz: cb62e2d86e3e49c293d2ae5a84ace67589df9197
5
5
  SHA512:
6
- metadata.gz: ac3f37e17956a9c958b912b70d6c2787460768ecd3b30ab7d617162e0c92a19f4c369ccceca4072936c7855375e157531a83ad960820708b78b70c293f4f3825
7
- data.tar.gz: 569ae38fd0ea68c72e9869d5e7f571e5cd66a4389d2597bfb3b2f2719fcc62717acfe137e29bc4b85a19a8731a0e1a18789d020a65875e0186b53d781245c2b2
6
+ metadata.gz: 7cec3f3b39df1f3615c349a7f9dfcd6ab06093c0c157e09fd9beeb9d82738166263be9ffec4ecd612257734dcc6d5ae0ad1e93c409413eb65e6403f9de56168b
7
+ data.tar.gz: 60583c756bf66ba2fab1346b1d3f41e27e14a6ee7b5d1ff9d5c35abd3661880efcfe7945094c543e9a5a030f12253a03d58d51c4e79d28e96a439492421037f0
data/CHANGELOG.md CHANGED
@@ -4,6 +4,10 @@ This project adheres to [Semantic Versioning](http://semver.org/).
4
4
  This CHANGELOG follows the format listed at [Keep A Changelog](http://keepachangelog.com/)
5
5
 
6
6
  ## [Unreleased]
7
+ ## [1.3.0] 2017-05-18
8
+ ### Changed
9
+ - `check-java-keystore-cert.rb`: Escape variables sent to shell on calls to keytool. (@rs-mrichmond)
10
+
7
11
  ## [1.2.0] - 2017-05-17
8
12
  ### Changed
9
13
  - check-ssl-qualys.rb: removed dependency on rest-client so we don't need a c compiler (@baweaver)
@@ -64,7 +68,8 @@ This CHANGELOG follows the format listed at [Keep A Changelog](http://keepachang
64
68
  ### Added
65
69
  - initial release
66
70
 
67
- [unreleased]: https://github.com/sensu-plugins/sensu-plugins-ssl/compare/1.2.0...HEAD
71
+ [unreleased]: https://github.com/sensu-plugins/sensu-plugins-ssl/compare/1.3.0...HEAD
72
+ [1.2.0]: https://github.com/sensu-plugins/sensu-plugins-ssl/compare/1.2.0...1.3.0
68
73
  [1.2.0]: https://github.com/sensu-plugins/sensu-plugins-ssl/compare/1.1.0...1.2.0
69
74
  [1.1.0]: https://github.com/sensu-plugins/sensu-plugins-ssl/compare/1.0.0...1.1.0
70
75
  [1.0.0]: https://github.com/sensu-plugins/sensu-plugins-ssl/compare/0.0.6...1.0.0
@@ -22,6 +22,7 @@
22
22
  #
23
23
 
24
24
  require 'date'
25
+ require 'shellwords'
25
26
  require 'sensu-plugin/check/cli'
26
27
 
27
28
  class CheckJavaKeystoreCert < Sensu::Plugin::Check::CLI
@@ -53,9 +54,9 @@ class CheckJavaKeystoreCert < Sensu::Plugin::Check::CLI
53
54
  required: true
54
55
 
55
56
  def certificate_expiration_date
56
- result = `keytool -keystore #{config[:path]} \
57
- -export -alias #{config[:alias]} \
58
- -storepass #{config[:password]} 2>&1 | \
57
+ result = `keytool -keystore #{Shellwords.escape(config[:path])} \
58
+ -export -alias #{Shellwords.escape(config[:alias])} \
59
+ -storepass #{Shellwords.escape(config[:password])} 2>&1 | \
59
60
  openssl x509 -enddate -inform der -noout 2>&1`
60
61
 
61
62
  # rubocop:disable Style/SpecialGlobalVars
@@ -1,7 +1,7 @@
1
1
  module SensuPluginsSSL
2
2
  module Version
3
3
  MAJOR = 1
4
- MINOR = 2
4
+ MINOR = 3
5
5
  PATCH = 0
6
6
 
7
7
  VER_STRING = [MAJOR, MINOR, PATCH].compact.join('.')
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sensu-plugins-ssl
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.0
4
+ version: 1.3.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sensu-Plugins and contributors