Commit graph

7141 commits

Author SHA1 Message Date
Suyog Rao
cfb2360d2e Added changelog for 1.5.3 and 1.4.4
Fixes #3625
2015-07-20 18:59:12 +00:00
Clinton Gormley
90ccc19d0b Docs: Fixed header hierarchy in plugin manager 2015-07-16 12:01:54 +02:00
Jordan Sissel
ed27fe1b68 Use echo instead of trace or emit.
This should fix a test failure on CentOS 6 where 'emit' gives 'command
not found' which, as the last command run in stop(), causes stop() to
always return exit code 127.

Fixes #3614
2015-07-16 02:21:58 +00:00
Suyog Rao
af517588dc Add new section for plugin manager CLI
Fixes #3608
2015-07-15 22:03:45 +00:00
Colin Surprenant
52aec3b244 add back --pluginpath option
support adding plugin paths

support --pluginpath option

missing doc

refactor using @purbon suggestions

Agent#configure_plugin_paths spec

solves #3580
2015-07-15 16:43:13 -04:00
Aaron Mildenstein
00cf4d906c Manually merge changes to pleaserun
See https://github.com/jordansissel/pleaserun/pull/86

Fixes #3609
2015-07-14 20:26:08 +00:00
Joao Duarte
e370ff5476 move reporter code to separate file and change report format
Fixes #3484
2015-07-13 22:45:51 +00:00
Joao Duarte
84be8d34a6 add a periodic report of inflight events
Fixes #3484
2015-07-13 22:45:51 +00:00
R4z3r
3de8506057 Add Info About Commands Used / Test Config Files
Provide more information about what each flag for each command we are running to help a new user to the services understand them better.

Also include how to test a configuration file.

Fixes #1666
2015-07-13 22:35:46 +00:00
Wilfred Hughes
940b90c32b Update configuration.md
Show an example of conditionals that just check the presence of a
field. It's not immediately obvious how to do this from the existing
docs.

Fixes #2442
2015-07-13 21:50:59 +00:00
Jordan Sissel
fbf8e1e320 Improve default security for SSLContext with a monkeypatch.
New defaults:
* Cipher suite based on Mozilla's Intermediate set from
  https://wiki.mozilla.org/Security/Server_Side_TLS (at time of writing)
* Disable SSLv2 explicitly
* Disable SSLv3 explicitly
* Disable compression if possible

The SSL option setting came from the ruby-ftw library's FTW::Connection
(apache 2 licensed, I am author), and transitively through work
published by jmhodges to improve Ruby's SSL strength.

I include specs to ensure we never include export or weak ciphers by
default.

Using this patch to test the security improvements according to
`www.howsmyssl.com` shows much improved results:

---

Testing this:

```
ruby -r ./lib/logstash/patches/stronger_openssl_defaults.rb  -ropenssl -rsocket -rjson -rawesome_print -e 'c = OpenSSL::SSL::SSLContext.new; t = TCPSocket.new("www.howsmyssl.com", 443); o = OpenSSL::SSL::SSLSocket.new(t, c); o.connect; o.puts "GET /a/check HTTP/1.1\r\nHost: www.howsmyssl.com\r\n\r\n"; headers,body = o.read.split("\r\n\r\n", 2); puts body'
```

(I processed the JSON output w/ jq for easier reading)

The purpose of the above is to test the default behavior of SSLContext.

* JRuby 1.7.19 w/ this patch reports no cipher problems.
* JRuby 1.7.19 without this patch has several weak ciphers used:

```
  "TLS_DHE_DSS_EXPORT_WITH_DES40_CBC_SHA: [\"uses keys smaller than 128 bits in its encryption\"]",
  "TLS_DHE_RSA_EXPORT_WITH_DES40_CBC_SHA: [\"uses keys smaller than 128 bits in its encryption\"]",
  "TLS_DHE_RSA_WITH_DES_CBC_SHA: [\"uses keys smaller than 128 bits in its encryption\"]",
  "TLS_RSA_EXPORT_WITH_DES40_CBC_SHA: [\"uses keys smaller than 128 bits in its encryption\"]",
  "TLS_RSA_EXPORT_WITH_RC4_40_MD5: [\"uses keys smaller than 128 bits in its encryption\",\"use RC4 which has insecure biases in its output\"]",
  "TLS_RSA_WITH_DES_CBC_SHA: [\"uses keys smaller than 128 bits in its encryption\"]",
  "TLS_RSA_WITH_RC4_128_MD5: [\"use RC4 which has insecure biases in its output\"]",
  "TLS_RSA_WITH_RC4_128_SHA: [\"use RC4 which has insecure biases in its output\"]"
```

Under MRI, similar cipher selection problems are observed without this patch (weak export
ciphers, other weak small-key ciphers, RC4 complaints). With this patch, no cipher complaints
are reported by www.howsmyssl.com

One other note: Because JRuby defaults to TLS 1.0 and only makes CBC ciphers
available under the Mozilla Intermediate cipher set, I believe (and
howsmyssl.com agrees) that these defaults still make the BEAST exploit a
problem. Switching to TLS 1.1 should fix this, but we need to do more research
to determine the what, if any, impact it will have if we force TLS 1.1 to be
the default..

Fixes #3579
2015-07-13 21:41:15 +00:00
Andrew Cholakian
f7b76fa2ae Fix namespacing for unicode trimmer
Fixes #3593
2015-07-10 21:34:52 +00:00
Suyog Rao
f4edadc15c Fix typo and remove reference to min ES version Closes #3588
Fixes #3592
2015-07-10 21:31:57 +00:00
Suyog Rao
7cd75a7226 Include link to reference docs
Fixes #3594
2015-07-10 21:22:28 +00:00
Suyog Rao
07382f235f Much needed love for CONTRIBUTING.MD Closes #3547
Fixes #3594
2015-07-10 21:22:28 +00:00
Joao Duarte
d7bfd25dab make plugin#inspect show number config parameters
Fixes #3564
2015-07-10 15:24:24 +00:00
Julius Liu
0306d3808a Update pluginbody.asciidoc
Closes #3415
Updated the link for asciidoc formatting
2015-07-09 17:05:19 -07:00
Andrew Cholakian
4984cf6557 Merge pull request #3517 from andrewvc/jrjackson-upgrade
Bump JrJackson gem to 0.2.9 to fix RubyBasicObject bug
2015-07-09 13:45:41 -05:00
CoolAcid
0288697219 Use linux command id to get the list of groups - supports nss and pam
Fixes #1398
2015-07-06 23:44:41 +00:00
CoolAcid
de8bcd2a7c Take into account if there are not extra groups
Fixes #1398
2015-07-06 23:44:41 +00:00
CoolAcid
01cea40a9b Fix for chroot not getting supliemental groups
Fixes #1398
2015-07-06 23:44:41 +00:00
Andrew Cholakian
3e6d619cb7 Bump JrJackson gem to 0.2.9 to fix RubyBasicObject bug 2015-07-06 18:44:38 -05:00
Pere Urbon-Bayes
bd7516108f workarround the version check for pre released plugins as looks like rubygems is not activating them by default
Add a pre release gem test by using a mock to reproduce the behaviour
reaised by Gem::Specification.find_by_name when dealing with pre release
gems.

Fixes #3476
2015-07-02 16:06:48 +00:00
Pere Urbon-Bayes
a81f0249b1 locate plugin manager command dependencies to the specific commands as it should be
Fixes #3509
2015-07-02 14:17:50 +00:00
Pere Urbon-Bayes
40c57454a2 introduce direct loading for modules that need to be loaded in a given order becuase of missing dependencies, this fix the issue we had with early released of JDK7 and linux systems
Fixes #3509
2015-07-02 14:17:49 +00:00
Paul Echeverri
41b9e71792 Incorporates feedback from Deb and Suyog
Fixes #3548
2015-07-02 05:08:32 +00:00
Pier-Hugues Pellerin
3f38575758 Wrong namespace for json serialization
Fixes #3536
2015-06-30 20:53:14 +00:00
Andrew Cholakian
f0e5bcd597 Make inspecting collections a bit more friendly
Fixes #3474
2015-06-30 17:02:58 +00:00
Suyog Rao
90de9b7f9e mention the deprecated max_clients settings
Fixes #3521
2015-06-30 15:22:37 +00:00
Suyog Rao
1c316cbd50 Fixed typos
Fixes #3521
2015-06-30 15:22:37 +00:00
Suyog Rao
d2c2b047e8 Changelog for 1.5.2
Fixes #3521
2015-06-30 15:22:37 +00:00
Suyog Rao
229c42a964 Bundle http input plugin with defaults
Fixes #3507
2015-06-29 21:19:13 +00:00
Aaron Mildenstein
3d3cd8ab8f Do not include rackspace input/output in tests
Block testing by regex.

fixes #3518

Fixes #3519
2015-06-29 18:03:34 +00:00
Andrew Cholakian
13ed78790f Add unicode trimmer utility function
Fixes #3505
2015-06-26 20:13:59 +00:00
Pier-Hugues Pellerin
fd4824c23f Add a micro benchmark runner
Fixes #3457
Add `rake benchmark:run` task to run micro benchmark on specific part of
the code, it's uses the benchmark-ips gem to generate gem.
See https://github.com/evanphx/benchmark-ips for usage
2015-06-26 11:11:52 -07:00
Pier-Hugues Pellerin
1380119ac8 Removing reference of fieldreference
Fixes #3467
2015-06-26 17:35:46 +00:00
Tanya Bragin
09cbf95cff add the reference issue number in Performance section
Fixes #3503
2015-06-25 17:05:10 -07:00
Tanya Bragin
a6d7c58c8a update roadmap with post-1.5 status and most recent planning 2015-06-25 17:04:40 -07:00
Pere Urbon-Bayes
cf10890d63 fix the coverage analysis throw simplecov to take care of all files
make the eager loading patterns consistent in the spec_helper.rb file

make the setup-simplecov task not a dependency, but an explicit task only executed when ENV['COVERAGE'] is defined

refactor eager loading code plus add some documentation to the setup-simplecov task

Added more comments to the test:setup task

Fixes #3465
2015-06-25 15:36:57 +00:00
wiibaa
e715248b4a harmonize add_field and add_tag behavior in inputs and filters
Fixes #2390
2015-06-24 20:52:14 +00:00
Colin Surprenant
535027dfd9 use Environment.jruby?
Fixes #3450
2015-06-19 21:39:50 +00:00
Andrew Cholakian
cad497655e Tighten up JavaVersion.version
Fixes #3452
2015-06-19 19:07:25 +00:00
Andrew Cholakian
3d57f5fd0a Log bad java version as well as printing it to stderr
Fixes #3452
2015-06-19 19:07:24 +00:00
Andrew Cholakian
b91f01e8fe Better comments on JavaVersion
Fixes #3452
2015-06-19 19:07:24 +00:00
Andrew Cholakian
64b66fd6a5 Use implicit rather than explicit return
Fixes #3452
2015-06-19 19:07:23 +00:00
Andrew Cholakian
193d6096e1 DRYed up java version tests
Fixes #3452
2015-06-19 19:07:23 +00:00
Andrew Cholakian
9c23cf7b09 Expand out some combined test cases
Fixes #3452
2015-06-19 19:07:23 +00:00
Andrew Cholakian
5fd8d54e97 Use subject instead of let
Fixes #3452
2015-06-19 19:07:22 +00:00
Andrew Cholakian
259f3daeb2 Return explicit false on bad java version
Fixes #3452
2015-06-19 19:07:22 +00:00
Andrew Cholakian
f57cd98a91 Correctly support java 2.x.x in java version check should that ever happen
Fixes #3452
2015-06-19 19:07:21 +00:00