> On Dec. 8, 2015, 2:07 p.m., Alexander Rukletsov wrote:
> > src/master/http.cpp, lines 2276-2282
> > <https://reviews.apache.org/r/39043/diff/16/?file=1155919#file1155919line2276>
> >
> >     Looks like the scope of the `Credential` protobuf is reduced. It looks 
> > like now it's only used to load credentials on startup and for framework 
> > authentication. Do we need to store `credentials` in the master then?
> 
> Alexander Rojas wrote:
>     I isn't reduced, It hasn't change at all. And as far as I'm concerned, as 
> long as framework/slave authentication uses the procedure we have, it needs 
> to stay there. In fact the method `authenticate` isn't very old at all. I 
> think the first implementation of these patches actually predates the 
> inclusion of that method.

It looks like `Optional<Credentials> credentials` has been introduced in 
https://github.com/apache/mesos/commit/bb8375975e92ee722befb478ddc3b2541d1ccaa9 
and factored out in 
https://github.com/apache/mesos/commit/a5cc9b435aad080a79230f0366a6ce77116c95a4.
 I think we do not need `master->credentials` any longer.


- Alexander


-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/39043/#review109318
-----------------------------------------------------------


On Dec. 8, 2015, 2:38 p.m., Alexander Rojas wrote:
> 
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/39043/
> -----------------------------------------------------------
> 
> (Updated Dec. 8, 2015, 2:38 p.m.)
> 
> 
> Review request for mesos, Adam B, Bernd Mathiske, Isabel Jimenez, and Till 
> Toenshoff.
> 
> 
> Bugs: MESOS-3756
>     https://issues.apache.org/jira/browse/MESOS-3756
> 
> 
> Repository: mesos
> 
> 
> Description
> -------
> 
> 1. Adds a flag to load an HTTP Authenticator module from the flags.
> 2. If provided, uses the credentials file to initialize the default HTTP 
> Authenticator.
> 3. Updates the existing endpoints which implement their own basic HTTP 
> authenticator with the libprocess one.
> 4. Updates one test which expected the wrong results since now credentials 
> are checked before the body of the request.
> 
> 
> Diffs
> -----
> 
>   src/master/constants.hpp cc38dfcf57ecbc8555379084acbf2bfa4b3fc759 
>   src/master/constants.cpp 98ea7c8f1e7c3057cfe941f82f1b71f7731a8f32 
>   src/master/flags.hpp 9af6c68eef6bcf39d5776809fab6c66dc95da6b2 
>   src/master/flags.cpp f9223edb33483cb5619e7dd75221f735306462c6 
>   src/master/http.cpp 9097eda47558fb5306af5a61b464937d7ab34e83 
>   src/master/master.hpp 4683fa542a740f9a0b80fff7fbe0e63ec66266f2 
>   src/master/master.cpp 953fa4f14929581b226a7e27d30aea7a5aa1fd7c 
> 
> Diff: https://reviews.apache.org/r/39043/diff/
> 
> 
> Testing
> -------
> 
> make check
> 
> 
> Thanks,
> 
> Alexander Rojas
> 
>

Reply via email to