Reader small image

You're reading from  Apache Mesos Cookbook

Product typeBook
Published inAug 2017
PublisherPackt
ISBN-139781785884627
Edition1st Edition
Right arrow
Authors (2):
David Blomquist
David Blomquist
author image
David Blomquist

David Blomquist been working with computers since the 1980s. His first computer was an Apple Macintosh and the first networked computer he managed was a 10 terminal Xenix system. Since that time, David has held positions in virtually every area of IT, including operations, development, and architecture. David now specializes in designing Big Data, HPC, and Grid Computing systems with applications in Health Care and Science. Most recently, he has designed and deployed several large-scale clusters for the Federal Government.
Read more about David Blomquist

View More author details
Right arrow

Controlling permissions using access control lists


In this recipe, you will learn how to control the permissions of principals (users and frameworks).

Getting ready

You need to identify the principals of your cluster. This consists of groups and users who operate Mesos and frameworks that interact with it. In the following example, we will assume that we operate a single framework that can only use the services role.

How to do it...

Mesos reads Access Control List's (ACL) configuration from a JSON file. Each action is a key that contains an array of JSON objects, pairing principals with the object on which actions are performed:

cat << EOF > /etc/mesos-master/acls 
{ 
"register_frameworks":[    # configure principals who can register frameworks 
      { 
principals":{       # set principals who can 
"values":[ 
"marathon"     # register frameworks to 'marathon' 
            ] 
         }, 
"roles":{            # limit roles that could be used 
"values":[        # to register to 'services...
lock icon
The rest of the page is locked
Previous PageNext Page
You have been reading a chapter from
Apache Mesos Cookbook
Published in: Aug 2017Publisher: PacktISBN-13: 9781785884627

Authors (2)

author image
David Blomquist

David Blomquist been working with computers since the 1980s. His first computer was an Apple Macintosh and the first networked computer he managed was a 10 terminal Xenix system. Since that time, David has held positions in virtually every area of IT, including operations, development, and architecture. David now specializes in designing Big Data, HPC, and Grid Computing systems with applications in Health Care and Science. Most recently, he has designed and deployed several large-scale clusters for the Federal Government.
Read more about David Blomquist