OpenSearch/x-pack/qa
Nik Everett 0588dad80b
Tasks: Only require task permissions (#35667)
Right now using the `GET /_tasks/<taskid>` API and causing a task to opt
in to saving its result after being completed requires permissions on
the `.tasks` index. When we built this we thought that that was fine,
but we've since moved towards not leaking details like "persisting task
results after the task is completed is done by saving them into an index
named `.tasks`." A more modern way of doing this would be to save the
tasks into the index "under the hood" and to have APIs to manage the
saved tasks. This is the first step down that road: it drops the
requirement to have permissions to interact with the `.tasks` index when
fetching task statuses and when persisting statuses beyond the lifetime
of the task.

In particular, this moves the concept of the "origin" of an action into
a more prominent place in the Elasticsearch server. The origin of an
action is ignored by the server, but the security plugin uses the origin
to make requests on behalf of a user in such a way that the user need
not have permissions to perform these actions. It *can* be made to be
fairly precise. More specifically, we can create an internal user just
for the tasks API that just has permission to interact with the `.tasks`
index. This change doesn't do that, instead, it uses the ubiquitus
"xpack" user which has most permissions because it is simpler. Adding
the tasks user is something I'd like to get to in a follow up change.

Instead, the majority of this change is about moving the "origin"
concept from the security portion of x-pack into the server. This should
allow any code to use the origin. To keep the change managable I've also
opted to deprecate rather than remove the "origin" helpers in the
security code. Removing them is almost entirely mechanical and I'd like
to that in a follow up as well.

Relates to #35573
2018-11-28 09:28:27 -05:00
..
audit-tests Merge branch 'master' into index-lifecycle 2018-08-23 11:52:59 -06:00
core-rest-tests-with-security Rename ILM, ILM endpoints and drop _xpack (#32564) 2018-08-02 13:05:11 -04:00
evil-tests [Kerberos] Add support for Kerberos V5 Oid (#35764) 2018-11-28 13:29:43 +11:00
full-cluster-restart Deprecate X-Pack centric SQL endpoints (#35964) 2018-11-27 22:16:21 -05:00
kerberos-tests Remove no-op test (#33861) 2018-09-20 10:45:28 +01:00
multi-cluster-search-security Merge remote-tracking branch 'origin/master' into index-lifecycle 2018-09-14 16:27:37 -06:00
multi-node Deprecate X-Pack centric rollup endpoints (#35962) 2018-11-27 20:34:17 -05:00
openldap-tests Include realm type in Security Realm setting keys (#30241) 2018-11-06 14:56:50 +11:00
reindex-tests-with-security Tasks: Only require task permissions (#35667) 2018-11-28 09:28:27 -05:00
rolling-upgrade Deprecate X-Pack centric rollup endpoints (#35962) 2018-11-27 20:34:17 -05:00
rolling-upgrade-basic Deprecate X-Pack centric license endpoints (#35959) 2018-11-28 08:24:35 -05:00
saml-idp-tests Include realm type in Security Realm setting keys (#30241) 2018-11-06 14:56:50 +11:00
security-client-tests Merge branch 'master' into index-lifecycle 2018-08-23 11:52:59 -06:00
security-example-spi-extension Remove use of AbstractComponent in xpack (#35394) 2018-11-27 11:28:26 -07:00
security-migrate-tests Logging: Drop two deprecated methods (#34055) 2018-09-26 11:20:52 -04:00
security-setup-password-tests Adding stack_monitoring_agent role (#34369) 2018-10-24 07:20:46 -07:00
security-tools-tests Include realm type in Security Realm setting keys (#30241) 2018-11-06 14:56:50 +11:00
smoke-test-monitoring-with-watcher Merge branch 'master' into index-lifecycle 2018-08-23 11:52:59 -06:00
smoke-test-plugins Build: Rework shadow plugin configuration (#32409) 2018-08-21 20:03:28 -04:00
smoke-test-plugins-ssl Merge branch 'master' into index-lifecycle 2018-08-23 11:52:59 -06:00
smoke-test-security-with-mustache Fix a variety of typos and misspelled words (#32792) 2018-10-03 18:11:38 +01:00
smoke-test-watcher watcher: Fix integration tests to ensure correct start/stop of Watcher (#35271) 2018-11-07 15:08:03 -06:00
smoke-test-watcher-with-security [TESTS] Mute SmokeTestWatcherWithSecurityIT tests 2018-11-28 11:34:41 +02:00
third-party Add realm information for Authenticate API (#35648) 2018-11-27 23:35:42 +02:00
transport-client-tests Logging: Drop two deprecated methods (#34055) 2018-09-26 11:20:52 -04:00
vagrant Packaging: Remove windows bin files from the tar distribution (#30596) 2018-06-18 19:02:51 +02:00
build.gradle Build: Pull "skip assemble on qa" to common build (#35214) 2018-11-05 16:16:00 -05:00