OpenSearch/qa
Jason Tedor 875387936b Simplify Log4j shutdown hack test
The Log4j shutdown hack test tests that a hack we have in place to
workaround a bug in Log4j during shutdown is effective. Log4j can use
JMX to control logging levels, but we disable this through the use of a
system property log4j2.disable.jmx (mainly because there is no need for
this feature, but it also means granting additional security
permissions). The bug in Log4j is that during shutdown, it neglects to
check whether or not its usage of JMX is disable and so it attempts to
unregister management beans, leading to a permissions violation. The
test works by attempting to shutdown Log4j and thus triggering the bad
code path. With the Log4j hack in place, we have introduced jar hell so
that its our code running instead of code from the Log4j jar. Our code
correctly checks that the usage of JMX is disabled and thus does not
trip on a permissions violation. The test was a little complicated in
that it attempted to just grant the minimal permissions needed for Log4j
to do its thing, but this can sometimes lead to other unwanted
permissions violations because the permissions put in place are more
restrictive necessary. This commit simplifies this situation by
rewriting the test to only deny Log4j the sole permission needed to
trigger the bug.

Relates #20476
2016-09-14 11:25:28 -04:00
..
backwards-5.0 Prepare master branch to be 6.0.0-alpha1 2016-09-08 12:55:30 +02:00
evil-tests Simplify Log4j shutdown hack test 2016-09-14 11:25:28 -04:00
smoke-test-client Merge branch 'master' into log4j2 2016-08-31 16:37:55 -04:00
smoke-test-http Remove ESIntegTestCase#pluginList 2016-08-11 15:44:02 -04:00
smoke-test-ingest-disabled ingest: Made the response format of the get pipeline api match with the response format of the index template api 2016-07-29 17:58:30 +02:00
smoke-test-ingest-with-all-dependencies Add support for parameters to the script ingest processor 2016-08-24 16:49:48 -04:00
smoke-test-multinode Rename client yaml test infrastructure 2016-07-26 13:53:44 -04:00
smoke-test-plugins Rename client yaml test infrastructure 2016-07-26 13:53:44 -04:00
smoke-test-reindex-with-painless Circuit break the number of inline scripts compiled per minute 2016-08-09 10:26:27 -06:00
vagrant [Packaging] Do not remove scripts directory on upgrade (#20452) 2016-09-14 10:11:27 +02:00