This is an automated email from the ASF dual-hosted git repository.
tillt pushed a change to branch master
in repository https://gitbox.apache.org/repos/asf/mesos.git.
from 60a8577 Added --min_allocatable_resources to the multi-scheduler
documentation.
new 3ed4cd5 Added test reproducing crash on authorization failure.
new 3501ac5 Added collectAuthorizations helper to master.hpp.
new 176f5c2 Introduced common/authorization and refactored
collectAuthorizations.
new 00e0707 Refactored createSubject and authorizeLogAccess to
common/authorization.
new 45bd70f Added test for ACCESS_MESOS_LOG authorization.
The 5 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails. The revisions
listed as "add" were already present in the repository and have only
been added to this reference.
Summary of changes:
src/CMakeLists.txt | 1 +
src/Makefile.am | 2 +
src/common/authorization.cpp | 90 ++++++++++++++++++++++++++++
src/common/authorization.hpp | 53 ++++++++++++++++
src/common/http.cpp | 27 +--------
src/common/http.hpp | 10 ----
src/master/http.cpp | 1 +
src/master/master.cpp | 80 ++++---------------------
src/master/master.hpp | 4 +-
src/master/quota_handler.cpp | 2 +
src/master/weights_handler.cpp | 14 +----
src/slave/http.cpp | 1 +
src/slave/slave.cpp | 29 ++-------
src/slave/slave.hpp | 3 -
src/tests/authorization_tests.cpp | 54 +++++++++++++++++
src/tests/master_tests.cpp | 123 ++++++++++++++++++++++++++++++++++++++
16 files changed, 347 insertions(+), 147 deletions(-)
create mode 100644 src/common/authorization.cpp
create mode 100644 src/common/authorization.hpp