[mesos] branch master updated: Removed Principal object from ObjectApprovers class.

2018-08-20 Thread arojas
This is an automated email from the ASF dual-hosted git repository. arojas pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/mesos.git The following commit(s) were added to refs/heads/master by this push: new 6dc4d77 Removed Principal object from

[mesos] branch master updated: Removed unused local variable in `slave.cpp`.

2018-08-07 Thread arojas
This is an automated email from the ASF dual-hosted git repository. arojas pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/mesos.git The following commit(s) were added to refs/heads/master by this push: new 5a32447 Removed unused local variable in

mesos git commit: Fixed unproperly guarded future.

2018-07-09 Thread arojas
Repository: mesos Updated Branches: refs/heads/1.6.x f86c9f8ac -> 052af588c Fixed unproperly guarded future. This patch fixes a bug where the code path could cause a crash because of calling `Fture::get()` on a future which is failed. Review: https://reviews.apache.org/r/67722 Project: http

mesos git commit: Fixed unproperly guarded future.

2018-07-09 Thread arojas
Repository: mesos Updated Branches: refs/heads/1.5.x 19f65537f -> 2440c7310 Fixed unproperly guarded future. This patch fixes a bug where the code path could cause a crash because of calling `Fture::get()` on a future which is failed. Review: https://reviews.apache.org/r/67722 Project: http

mesos git commit: Fixed unproperly guarded future.

2018-07-09 Thread arojas
Repository: mesos Updated Branches: refs/heads/1.4.x 1830c0538 -> ee18cf95f Fixed unproperly guarded future. This patch fixes a bug where the code path could cause a crash because of calling `Fture::get()` on a future which is failed. Review: https://reviews.apache.org/r/67722 Project: http

mesos git commit: Fixed unproperly guarded future.

2018-07-09 Thread arojas
Repository: mesos Updated Branches: refs/heads/master b4e08210d -> 81a7b5f68 Fixed unproperly guarded future. This patch fixes a bug where the code path could cause a crash because of calling `Fture::get()` on a future which is failed. Review: https://reviews.apache.org/r/67722 Project: htt

mesos git commit: Added constant time comparison of JWT signatures.

2018-06-06 Thread arojas
Repository: mesos Updated Branches: refs/heads/1.3.x 7f993379f -> b7c89a082 Added constant time comparison of JWT signatures. A vulnerability in our JWT implementation allows an unauthenticated remote attacker to execute to execute timing attacks [1]. This patch removes the vulnerability by a

mesos git commit: Added constant time comparison of JWT signatures.

2018-06-06 Thread arojas
Repository: mesos Updated Branches: refs/heads/1.4.x 509443ecc -> f6b2a0433 Added constant time comparison of JWT signatures. A vulnerability in our JWT implementation allows an unauthenticated remote attacker to execute to execute timing attacks [1]. This patch removes the vulnerability by a

mesos git commit: Added constant time comparison of JWT signatures.

2018-06-06 Thread arojas
Repository: mesos Updated Branches: refs/heads/1.5.x 197c9105c -> cf695f065 Added constant time comparison of JWT signatures. A vulnerability in our JWT implementation allows an unauthenticated remote attacker to execute to execute timing attacks [1]. This patch removes the vulnerability by a

mesos git commit: Added constant time comparison of JWT signatures.

2018-06-06 Thread arojas
Repository: mesos Updated Branches: refs/heads/1.6.x c32ef4fdf -> 0b9c863ed Added constant time comparison of JWT signatures. A vulnerability in our JWT implementation allows an unauthenticated remote attacker to execute to execute timing attacks [1]. This patch removes the vulnerability by a

mesos git commit: Added constant time comparison of JWT signatures.

2018-06-06 Thread arojas
Repository: mesos Updated Branches: refs/heads/master fd362da76 -> 2c282f197 Added constant time comparison of JWT signatures. A vulnerability in our JWT implementation allows an unauthenticated remote attacker to execute to execute timing attacks [1]. This patch removes the vulnerability by

mesos git commit: Modified launch.cpp to writes its logs into cerr.

2018-05-28 Thread arojas
Repository: mesos Updated Branches: refs/heads/master 285d82080 -> a83a25203 Modified launch.cpp to writes its logs into cerr. `containerizer/mesos/launch.cpp` wrote some of its output into `cout` and some into `cerr` without a clear distinction as to why it was done in some cases. Moreover,

mesos git commit: Fixed crash on macOS during certain authorization calls.

2018-03-15 Thread arojas
Repository: mesos Updated Branches: refs/heads/master 53b25f7a0 -> 2cf3e6dd4 Fixed crash on macOS during certain authorization calls. The method in charge of creating `ObjectApprovers` was relying that iterating over equivalent hashset's would yield the same order of results. While that seeme

mesos git commit: Removes redundant call of get() on smart pointer.

2018-03-15 Thread arojas
Repository: mesos Updated Branches: refs/heads/master 70d63d951 -> 53b25f7a0 Removes redundant call of get() on smart pointer. Project: http://git-wip-us.apache.org/repos/asf/mesos/repo Commit: http://git-wip-us.apache.org/repos/asf/mesos/commit/53b25f7a Tree: http://git-wip-us.apache.org/rep

[1/8] mesos git commit: Removed code which is not used.

2018-03-14 Thread arojas
sk& task, -const FrameworkInfo& frameworkInfo); - - -bool approveViewFlags(const process::Owned& flagsApprover); - - // Authorizes access to an HTTP endpoint. The `method` parameter // determines which ACL action will be used in the authorization. // It is expected that the caller has vali

[3/8] mesos git commit: Refactored authorization logic in the master.

2018-03-14 Thread arojas
vers_; const Framework* framework_; }; @@ -393,8 +402,8 @@ struct SlaveWriter { SlaveWriter( const Slave& slave, - const Owned& authorizeRole) -: slave_(slave), authorizeRole_(authorizeRole) {} + const Owned& approvers) +: slave_(slave), approvers_(approvers)

[8/8] mesos git commit: Added the ObjectApprovers to which unifies authorization logic.

2018-03-14 Thread arojas
n_info().role())) { +return false; + } + + return true; +} + + // Determines which objects will be accepted based on authorization. class AuthorizationAcceptor { @@ -273,6 +375,7 @@ bool approveViewRole( const process::Owned& rolesApprover, const std::string& role); + // Authorizes resources in either the pre- or the post-reservation-refinement // formats. // TODO(arojas): Update this helper to only accept the

[5/8] mesos git commit: Added lambda::zip.

2018-03-14 Thread arojas
+24,7 @@ #include #include +#include #include namespace lambda { @@ -163,6 +164,78 @@ std::vector map(F&& f, std::initializer_list input) } +// TODO(arojas): Make this generic enough such that an arbitrary +// number of inputs can be used. +// It would be nice to be able to c

[6/8] mesos git commit: Refactored authorization logic in the agent.

2018-03-14 Thread arojas
http://git-wip-us.apache.org/repos/asf/mesos/blob/83dd7f87/src/slave/http.hpp -- diff --git a/src/slave/http.hpp b/src/slave/http.hpp index c33adeb..dcfd0d9 100644 --- a/src/slave/http.hpp +++ b/src/slave/http.hpp @@ -116,8 +116,7

[4/8] mesos git commit: Refactored authorization logic in the master.

2018-03-14 Thread arojas
Refactored authorization logic in the master. This patch makes uses of the new `ObjectApprovers` class which greatly simplifies the logic for constructing and using authorization. Review: https://reviews.apache.org/r/65312 Project: http://git-wip-us.apache.org/repos/asf/mesos/repo Commit: http:

[2/8] mesos git commit: Refactored authorization logic in the master.

2018-03-14 Thread arojas
http://git-wip-us.apache.org/repos/asf/mesos/blob/dc1e188a/src/master/master.cpp -- diff --git a/src/master/master.cpp b/src/master/master.cpp index 8df7ad5..f0affa0 100644 --- a/src/master/master.cpp +++ b/src/master/master.cpp @@

[7/8] mesos git commit: Refactored authorization logic in the agent.

2018-03-14 Thread arojas
Refactored authorization logic in the agent. This patch makes uses of the new `ObjectApprovers` class which greatly simplifies the logic for constructing and using authorization. Review: https://reviews.apache.org/r/65313 Project: http://git-wip-us.apache.org/repos/asf/mesos/repo Commit: http:/

mesos git commit: Added MESOS-8413 to CHANGELOG.

2018-01-25 Thread arojas
Repository: mesos Updated Branches: refs/heads/1.5.x e6269bea5 -> b9b626c9b Added MESOS-8413 to CHANGELOG. Project: http://git-wip-us.apache.org/repos/asf/mesos/repo Commit: http://git-wip-us.apache.org/repos/asf/mesos/commit/b9b626c9 Tree: http://git-wip-us.apache.org/repos/asf/mesos/tree/b9

[2/2] mesos git commit: Mesos flags related to ZooKeeper use SecurePathOrValue.

2018-01-25 Thread arojas
Mesos flags related to ZooKeeper use SecurePathOrValue. Up until now the Mesos master flag `--zk` as well as the Mesos agent flag `--master` would leak ZooKeeper authentication credentials in both logs and results for the `/flags` endpoint, if the credentials were part of the configuration url. T

[1/2] mesos git commit: Added SecurePathOrValue for file flags which need not to leak contents.

2018-01-25 Thread arojas
Repository: mesos Updated Branches: refs/heads/1.5.x 8759242b6 -> e6269bea5 Added SecurePathOrValue for file flags which need not to leak contents. The default behavior when serializing a flag, if its value comes from a file (by using the prefix `file://`) is to show the contents of the file i

[2/2] mesos git commit: Mesos flags related to ZooKeeper use SecurePathOrValue.

2018-01-19 Thread arojas
Mesos flags related to ZooKeeper use SecurePathOrValue. Up until now the Mesos master flag `--zk` as well as the Mesos agent flag `--master` would leak ZooKeeper authentication credentials in both logs and results for the `/flags` endpoint, if the credentials were part of the configuration url. T

[1/2] mesos git commit: Added SecurePathOrValue for file flags which need not to leak contents.

2018-01-19 Thread arojas
Repository: mesos Updated Branches: refs/heads/master 32b85a2b0 -> ddde32525 Added SecurePathOrValue for file flags which need not to leak contents. The default behavior when serializing a flag, if its value comes from a file (by using the prefix `file://`) is to show the contents of the file

mesos git commit: Updated pailer to work with jquery 3.2.1.

2017-11-01 Thread arojas
Repository: mesos Updated Branches: refs/heads/master 5995bd1bd -> c5c1debb1 Updated pailer to work with jquery 3.2.1. jQuery 3 changed the itnerface of `$.getJSON()` such that the equivalent function of `success()` is now `then` while `error()` should now be used as `fail()`. Project: http:

mesos git commit: Updated jQuery and Angular versions used in Makefile.am.

2017-10-18 Thread arojas
Repository: mesos Updated Branches: refs/heads/master 1b5a4e77e -> a7de1bccd Updated jQuery and Angular versions used in Makefile.am. `Makefile.am` needs to be updated for the distribution packages to be successfully built. Review: https://reviews.apache.org/r/63114/ Project: http://git-wip

[08/11] mesos git commit: Upgrades AngularJS used by Mesos WebUI to version 1.2.32.

2017-10-18 Thread arojas
http://git-wip-us.apache.org/repos/asf/mesos/blob/1b5a4e77/src/webui/master/static/js/angular-1.2.32.js -- diff --git a/src/webui/master/static/js/angular-1.2.32.js b/src/webui/master/static/js/angular-1.2.32.js new file mode 1006

[04/11] mesos git commit: Upgrades jQuery used by Mesos WebUI to version 3.2.1.

2017-10-18 Thread arojas
http://git-wip-us.apache.org/repos/asf/mesos/blob/b0a660bb/src/webui/master/static/js/jquery-1.7.1.js -- diff --git a/src/webui/master/static/js/jquery-1.7.1.js b/src/webui/master/static/js/jquery-1.7.1.js deleted file mode 100644

[06/11] mesos git commit: Upgrades AngularJS used by Mesos WebUI to version 1.2.32.

2017-10-18 Thread arojas
http://git-wip-us.apache.org/repos/asf/mesos/blob/1b5a4e77/src/webui/master/static/js/angular-route-1.2.3.js -- diff --git a/src/webui/master/static/js/angular-route-1.2.3.js b/src/webui/master/static/js/angular-route-1.2.3.js del

[02/11] mesos git commit: Upgrades jQuery used by Mesos WebUI to version 3.2.1.

2017-10-18 Thread arojas
http://git-wip-us.apache.org/repos/asf/mesos/blob/b0a660bb/src/webui/master/static/js/jquery-3.2.1.js -- diff --git a/src/webui/master/static/js/jquery-3.2.1.js b/src/webui/master/static/js/jquery-3.2.1.js new file mode 100644 ind

[11/11] mesos git commit: Upgrades AngularJS used by Mesos WebUI to version 1.2.32.

2017-10-18 Thread arojas
Upgrades AngularJS used by Mesos WebUI to version 1.2.32. The version of AngularJS distributed with Mesos (1.2.3) was found to have security issues which have been addressed in latter versions. Review: https://reviews.apache.org/r/63102 Project: http://git-wip-us.apache.org/repos/asf/mesos/repo

[09/11] mesos git commit: Upgrades AngularJS used by Mesos WebUI to version 1.2.32.

2017-10-18 Thread arojas
http://git-wip-us.apache.org/repos/asf/mesos/blob/1b5a4e77/src/webui/master/static/js/angular-1.2.3.min.js -- diff --git a/src/webui/master/static/js/angular-1.2.3.min.js b/src/webui/master/static/js/angular-1.2.3.min.js deleted f

[05/11] mesos git commit: Upgrades jQuery used by Mesos WebUI to version 3.2.1.

2017-10-18 Thread arojas
Upgrades jQuery used by Mesos WebUI to version 3.2.1. The version of jQuery distributed with Mesos (1.7.1) was found to have security issues which have been addressed in latter versions. Review: https://reviews.apache.org/r/63101 Project: http://git-wip-us.apache.org/repos/asf/mesos/repo Commit

[01/11] mesos git commit: Upgrades jQuery used by Mesos WebUI to version 3.2.1.

2017-10-18 Thread arojas
Repository: mesos Updated Branches: refs/heads/master b361801f2 -> 1b5a4e77e http://git-wip-us.apache.org/repos/asf/mesos/blob/b0a660bb/src/webui/master/static/js/jquery-3.2.1.min.js -- diff --git a/src/webui/master/static/js/j

[07/11] mesos git commit: Upgrades AngularJS used by Mesos WebUI to version 1.2.32.

2017-10-18 Thread arojas
http://git-wip-us.apache.org/repos/asf/mesos/blob/1b5a4e77/src/webui/master/static/js/angular-1.2.32.min.js -- diff --git a/src/webui/master/static/js/angular-1.2.32.min.js b/src/webui/master/static/js/angular-1.2.32.min.js new fi

[10/11] mesos git commit: Upgrades AngularJS used by Mesos WebUI to version 1.2.32.

2017-10-18 Thread arojas
http://git-wip-us.apache.org/repos/asf/mesos/blob/1b5a4e77/src/webui/master/static/js/angular-1.2.3.js -- diff --git a/src/webui/master/static/js/angular-1.2.3.js b/src/webui/master/static/js/angular-1.2.3.js deleted file mode 100

[03/11] mesos git commit: Upgrades jQuery used by Mesos WebUI to version 3.2.1.

2017-10-18 Thread arojas
http://git-wip-us.apache.org/repos/asf/mesos/blob/b0a660bb/src/webui/master/static/js/jquery-1.7.1.min.js -- diff --git a/src/webui/master/static/js/jquery-1.7.1.min.js b/src/webui/master/static/js/jquery-1.7.1.min.js deleted file

[2/2] mesos git commit: Added test to verify filtering of resource reservations & allocations.

2017-09-04 Thread arojas
Added test to verify filtering of resource reservations & allocations. This patch extends `SlaveAuthorizerTest.FilterStateEndpoint` test to check that agent's `/state` endpoint shows resource reservations and allocations based on the `VIEW_ROLE` permissions of the principal doing the request. Rev

[1/2] mesos git commit: Enabled filtering of resource allocations and reservations in agent.

2017-09-04 Thread arojas
Repository: mesos Updated Branches: refs/heads/master dfe4fc84e -> b9aebbbca Enabled filtering of resource allocations and reservations in agent. Adds support of the `VIEW_ROLE` ACL to the results generated by the `/state` endpoint in the agent for fields `reserved_resources_full`, `reserved_r

mesos git commit: Fixed unnecessary non-constness.

2017-09-04 Thread arojas
Repository: mesos Updated Branches: refs/heads/master 40aa0d9f7 -> dfe4fc84e Fixed unnecessary non-constness. Const `Owned` doesn't make the underlying pointer const. Review: https://reviews.apache.org/r/62016/ Project: http://git-wip-us.apache.org/repos/asf/mesos/repo Commit: http://git-wi

mesos git commit: Updated website for 1.2.2 release.

2017-08-11 Thread arojas
Repository: mesos Updated Branches: refs/heads/master 8127bae34 -> 3dc041d55 Updated website for 1.2.2 release. Project: http://git-wip-us.apache.org/repos/asf/mesos/repo Commit: http://git-wip-us.apache.org/repos/asf/mesos/commit/3dc041d5 Tree: http://git-wip-us.apache.org/repos/asf/mesos/tr

mesos git commit: Replaced `abort()` with `_exit()` in `ChildHook::SUPERVISOR`.

2017-07-13 Thread arojas
Repository: mesos Updated Branches: refs/heads/master 188109b63 -> 72ebb5e5b Replaced `abort()` with `_exit()` in `ChildHook::SUPERVISOR`. Previously, `abort()` was called in `SUPERVISOR` hook when child process exited with an error code, or `waitpid()` failed, or parent process exited. All th

mesos git commit: Enabled filtering of reservations.

2017-07-11 Thread arojas
ld("used_resources", Resources::sum(slave_.usedResources)); +writer->field("offered_resources", slave_.offeredResources); +writer->field( +"reserved_resources", +[&totalResources, this](JSON::ObjectWriter* writer) { +

mesos git commit: Adding Alexander Rojas in the committer list.

2017-07-06 Thread arojas
Repository: mesos Updated Branches: refs/heads/master bff703639 -> 46f97991c Adding Alexander Rojas in the committer list. Project: http://git-wip-us.apache.org/repos/asf/mesos/repo Commit: http://git-wip-us.apache.org/repos/asf/mesos/commit/46f97991 Tree: http://git-wip-us.apache.org/repos/a