OpenSearch/qa
Alexander Reelsen 4fe9ac734b Watcher: Store thread context headers in watch (elastic/x-pack-elasticsearch#2808)
In order to be able to execute a watch as the user, who stored the
watch, this commit stores certain headers of the thread context, that
was used when the watch was stored.

Upon loading the watch the headers are loaded and applied for the
following watcher execution features

* search transform
* search input
* index action

A special case is the execute watch API, which overrides the headers loaded
from the watch with the one of the current request, so that a user
cannot execute this watch with other privileges of the user who stored it.

Only the headers "es-security-runas-user", "_xpack_security_authentication" are
copied for now, as those are needed for our security features.

The headers are stored in watch status in the watch and are not returned by default,
when the GET Watch API is used. A search reveals those of course.

relates elastic/x-pack-elasticsearch#2201

Original commit: elastic/x-pack-elasticsearch@9803bd51c2
2017-11-24 09:15:54 +01:00
..
audit-tests Retry startup for IndexAuditTrail and version templates (elastic/x-pack-elasticsearch#2755) 2017-10-30 09:11:18 -06:00
core-rest-tests-with-security Remove default passwords from reserved users (elastic/x-pack-elasticsearch#1665) 2017-06-29 15:27:57 -05:00
full-cluster-restart Tidy up after elastic/x-pack-elasticsearch#3078 (elastic/x-pack-elasticsearch#3099) 2017-11-24 08:13:13 +00:00
ml-basic-multi-node Revert "Use shaded rest client dependencies" (elastic/x-pack-elasticsearch#2352) 2017-08-25 14:13:16 -05:00
ml-disabled Revert "Use shaded rest client dependencies" (elastic/x-pack-elasticsearch#2352) 2017-08-25 14:13:16 -05:00
ml-no-bootstrap-tests Use TestEnvironment factory method to create test Environment objects (elastic/x-pack-elasticsearch#2860) 2017-11-04 13:25:56 +00:00
ml-single-node-tests Promote common rest test utility methods to ESRestTestCase 2017-10-05 10:10:10 +02:00
multi-cluster-search-security Rest spec fixes (elastic/x-pack-elasticsearch#2965) 2017-11-15 09:33:19 +01:00
multi-node Replace global checkpoint sync test 2017-10-13 10:05:59 -04:00
openldap-tests Halt OpenLDAP fixture (elastic/x-pack-elasticsearch#2929) 2017-11-08 19:57:29 +02:00
reindex-tests-with-security Remove default passwords from reserved users (elastic/x-pack-elasticsearch#1665) 2017-06-29 15:27:57 -05:00
rolling-upgrade Tidy up after elastic/x-pack-elasticsearch#3078 (elastic/x-pack-elasticsearch#3099) 2017-11-24 08:13:13 +00:00
security-client-tests Remove default passwords from reserved users (elastic/x-pack-elasticsearch#1665) 2017-06-29 15:27:57 -05:00
security-example-extension Use TestEnvironment factory method to create test Environment objects (elastic/x-pack-elasticsearch#2860) 2017-11-04 13:25:56 +00:00
security-migrate-tests Fix migrate tool integration test 2017-07-28 21:33:54 +09:00
security-setup-password-tests Revert "Use shaded rest client dependencies" (elastic/x-pack-elasticsearch#2352) 2017-08-25 14:13:16 -05:00
smoke-test-graph-with-security Remove default passwords from reserved users (elastic/x-pack-elasticsearch#1665) 2017-06-29 15:27:57 -05:00
smoke-test-ml-with-security Remove InternalClient and InternalSecurityClient (elastic/x-pack-elasticsearch#3054) 2017-11-22 08:35:18 -07:00
smoke-test-plugins Remove default passwords from reserved users (elastic/x-pack-elasticsearch#1665) 2017-06-29 15:27:57 -05:00
smoke-test-plugins-ssl Disable TLS by default (elastic/x-pack-elasticsearch#2481) 2017-09-14 12:18:54 -06:00
smoke-test-security-with-mustache Convert put_template uses to put_script in rest tests 2017-07-13 00:01:56 -07:00
smoke-test-watcher Remove InternalClient and InternalSecurityClient (elastic/x-pack-elasticsearch#3054) 2017-11-22 08:35:18 -07:00
smoke-test-watcher-with-mustache Remove InternalClient and InternalSecurityClient (elastic/x-pack-elasticsearch#3054) 2017-11-22 08:35:18 -07:00
smoke-test-watcher-with-painless Remove InternalClient and InternalSecurityClient (elastic/x-pack-elasticsearch#3054) 2017-11-22 08:35:18 -07:00
smoke-test-watcher-with-security Watcher: Store thread context headers in watch (elastic/x-pack-elasticsearch#2808) 2017-11-24 09:15:54 +01:00
transport-client-tests Remove deprecated script settings. (elastic/x-pack-elasticsearch#1469) 2017-05-18 13:32:57 -07:00
tribe-node-tests-with-security Remove default passwords from reserved users (elastic/x-pack-elasticsearch#1665) 2017-06-29 15:27:57 -05:00
tribe-tests-with-license Remove the xpack plugin's dependency on the tribe module (elastic/x-pack-elasticsearch#2901) 2017-11-08 12:39:02 -07:00
tribe-tests-with-security Remove InternalClient and InternalSecurityClient (elastic/x-pack-elasticsearch#3054) 2017-11-22 08:35:18 -07:00
vagrant Adjust number of files assertion in packaging tests 2017-11-01 22:08:47 -04:00
build.gradle Remove assemble from build task when assemble removed 2017-06-16 17:19:47 -04:00