sensu 1.1.1 → 1.1.2

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
  SHA1:
3
- metadata.gz: 4e3f41090a13ce1fb37f577ad034997711847d2e
4
- data.tar.gz: db92b186c4eac3b5e91b581fe292a2f39d6ea117
3
+ metadata.gz: d8dc54e2320f25a3096b084a2c156769551c5465
4
+ data.tar.gz: ec408522b024b19bd6da5622ba3fe4af7ec13ad9
5
5
  SHA512:
6
- metadata.gz: e96c43e195000cba3ba20630e27361eae560449ab32d05a45f4c46dbb35704e8a65f38bdca5e02b134252381893d733b9b0464be030245a33b34136cfe9496c3
7
- data.tar.gz: f31e9180095593b16339645da5e723d14c6047217e25a722d99d15c6097e6f7d81da9f2e075017645b993c43b33b1f8f53f07243522e35aa15632ba83b2baa9a
6
+ metadata.gz: cb04f4d0f91884bf84fcda183e2c180071a0e795045d85bf26a8484ed50022df27605627b198aca816a03a1acd6519345cb871293c9eb21899dc5df2a8f189f5
7
+ data.tar.gz: 9ebb69e2644dc74966c77f82f4d102199aba4400313c9c8437eb1a81eb9fe45dc5cf29018df3e1871c46655871f938a0c1fe982c8b618601c9f31fff823515d9
data/CHANGELOG.md CHANGED
@@ -1,3 +1,16 @@
1
+ ## 1.1.2 - 2017-10-27
2
+
3
+ ### Fixes
4
+
5
+ Fixed a bug in the Sensu client HTTP socket that caused the Sensu client
6
+ to crash when the the local client definition did not specify
7
+ `"http_socket"` settings and the `/info` or `/results` endpoints were
8
+ accessed.
9
+
10
+ Fixed a bug in the Sensu client HTTP socket that caused the Sensu client
11
+ to consider an HTTP content-type that included media-type information as
12
+ invalid, discarding possibly valid content.
13
+
1
14
  ## 1.1.1 - 2017-10-10
2
15
 
3
16
  ### Fixes
@@ -286,6 +299,14 @@ Fixed filter name logging when an event is filtered.
286
299
 
287
300
  ## 0.27.0 - 2017-01-26
288
301
 
302
+ ### Non-backwards compatible changes
303
+
304
+ The CONFIG_DIR environment variable has been renamed to CONFD_DIR. This
305
+ environment varible is used to specify the directory path where Sensu
306
+ processes will load any JSON config files for deep merging. If you are
307
+ using /etc/default/sensu to specify a custom value for CONFIG_DIR, please
308
+ update it to the new CONFD_DIR variable name.
309
+
289
310
  ### Features
290
311
 
291
312
  Sensu client HTTP socket for check result input and informational queries.
@@ -108,7 +108,8 @@ module Sensu
108
108
  end
109
109
 
110
110
  def process_request_info
111
- if @settings[:client][:http_socket][:protect_all_endpoints]
111
+ if @settings[:client][:http_socket] &&
112
+ @settings[:client][:http_socket][:protect_all_endpoints]
112
113
  return unauthorized_response unless authorized?
113
114
  end
114
115
  transport_info do |info|
@@ -122,10 +123,11 @@ module Sensu
122
123
  end
123
124
 
124
125
  def process_request_results
125
- if @settings[:client][:http_socket][:protect_all_endpoints]
126
+ if @settings[:client][:http_socket] &&
127
+ @settings[:client][:http_socket][:protect_all_endpoints]
126
128
  return unauthorized_response unless authorized?
127
129
  end
128
- if @http[:content_type] and @http[:content_type] == "application/json" and @http_content
130
+ if @http[:content_type] and @http[:content_type].include?("application/json") and @http_content
129
131
  begin
130
132
  check = Sensu::JSON::load(@http_content)
131
133
  process_check_result(check)
@@ -1,7 +1,7 @@
1
1
  module Sensu
2
2
  unless defined?(Sensu::VERSION)
3
3
  # Sensu release version.
4
- VERSION = "1.1.1".freeze
4
+ VERSION = "1.1.2".freeze
5
5
 
6
6
  # Sensu release information.
7
7
  RELEASE_INFO = {
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sensu
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.1
4
+ version: 1.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sean Porter
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: exe
11
11
  cert_chain: []
12
- date: 2017-10-10 00:00:00.000000000 Z
12
+ date: 2017-10-27 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: eventmachine