You are viewing a plain text version of this content. The canonical link for it is here.
Posted to reviews@aurora.apache.org by Maxim Khutornenko <ma...@apache.org> on 2015/03/30 23:09:39 UTC
Re: Review Request 32541: Adding client Kerberos support.
-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/32541/
-----------------------------------------------------------
(Updated March 30, 2015, 9:09 p.m.)
Review request for Aurora, Kevin Sweeney and Brian Wickman.
Changes
-------
Brian's and Kevin's comments.
Bugs: AURORA-813
https://issues.apache.org/jira/browse/AURORA-813
Repository: aurora
Description
-------
First take on client kerberos support. The idea is to repurpose the existing auth_module system to support both legacy and kerberos during the deprecation period. This way the 0.8.0 client will be able to talk to pre-0.8.0 scheduler and use SessionKey-based authorization. Later (in 0.9.0), the payload() will be removed along with SessionKey (AURORA-1229). That will let us get rid of SchedulerProxy (or reduce it substantially). The auth_module might stay though to support other auth plugins (e.g. requests-ntlm or requests-oauthlib).
TODO: integration e2e tests once scheduler side lands.
Diffs (updated)
-----
3rdparty/python/requirements.txt 11a307cdb476ebcc25ab5c6b555bed29241ea988
src/main/python/apache/aurora/client/api/__init__.py a81329f6f947bbea4001c3a521c1923410a51eab
src/main/python/apache/aurora/client/api/scheduler_client.py 95e553427492407743dcac31d70f392a7c1bbc02
src/main/python/apache/aurora/client/cli/BUILD c6b4e8a09d1315cf5defee2155a6e0c697892a30
src/main/python/apache/aurora/client/cli/client.py 24516d114db1743cdf600c542a27fcf5b68053a0
src/main/python/apache/aurora/common/auth/BUILD 966484627dab90e7606f1fc638cd0e159aee3317
src/main/python/apache/aurora/common/auth/__init__.py 3119fd63d3dfa28f93f219b23030059580fed098
src/main/python/apache/aurora/common/auth/auth_kerberos.py PRE-CREATION
src/main/python/apache/aurora/common/auth/auth_module.py 5f4116ef4cfbc407e0c50dc938870fb14e2299b4
src/main/python/apache/aurora/common/auth/auth_module_manager.py 73a8e5cd51edf694b971cd2c298ff406aff8c6d7
src/test/python/apache/aurora/client/api/test_scheduler_client.py 0a6194831c332a96eab62b869c4e05cfa9def058
Diff: https://reviews.apache.org/r/32541/diff/
Testing
-------
./pants test.pytest --no-fast src/test/python:all
./src/test/sh/org/apache/aurora/e2e/test_end_to_end.sh
Thanks,
Maxim Khutornenko
Re: Review Request 32541: Adding client Kerberos support.
Posted by Maxim Khutornenko <ma...@apache.org>.
> On April 1, 2015, 8:40 p.m., Kevin Sweeney wrote:
> > src/main/python/apache/aurora/client/cli/BUILD, line 29
> > <https://reviews.apache.org/r/32541/diff/2/?file=909509#file909509line29>
> >
> > How about "kaurora"
>
> Maxim Khutornenko wrote:
> This is a joke, right? :) If not I am really struggling how it would be more informative.
>
> Kevin Sweeney wrote:
> Some Kerberized tools have a convention of being prefixed with a "k" (su => ksu, rsh => krsh, passwd => kpasswd). I think the ergonomics are better (no underscores in command names), but don't feel strongly about it.
Since this isn't a command line tool, I'd rather keep the current name as more descriptive.
- Maxim
-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/32541/#review78573
-----------------------------------------------------------
On April 2, 2015, 1:10 a.m., Maxim Khutornenko wrote:
>
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/32541/
> -----------------------------------------------------------
>
> (Updated April 2, 2015, 1:10 a.m.)
>
>
> Review request for Aurora, Kevin Sweeney and Brian Wickman.
>
>
> Bugs: AURORA-813
> https://issues.apache.org/jira/browse/AURORA-813
>
>
> Repository: aurora
>
>
> Description
> -------
>
> First take on client kerberos support. The idea is to repurpose the existing auth_module system to support both legacy and kerberos during the deprecation period. This way the 0.8.0 client will be able to talk to pre-0.8.0 scheduler and use SessionKey-based authorization. Later (in 0.9.0), the payload() will be removed along with SessionKey (AURORA-1229). That will let us get rid of SchedulerProxy (or reduce it substantially). The auth_module might stay though to support other auth plugins (e.g. requests-ntlm or requests-oauthlib).
>
> TODO: integration e2e tests once scheduler side lands.
>
>
> Diffs
> -----
>
> 3rdparty/python/requirements.txt 11a307cdb476ebcc25ab5c6b555bed29241ea988
> src/main/python/apache/aurora/client/api/__init__.py a81329f6f947bbea4001c3a521c1923410a51eab
> src/main/python/apache/aurora/client/api/scheduler_client.py 95e553427492407743dcac31d70f392a7c1bbc02
> src/main/python/apache/aurora/client/cli/BUILD c6b4e8a09d1315cf5defee2155a6e0c697892a30
> src/main/python/apache/aurora/client/cli/client.py 24516d114db1743cdf600c542a27fcf5b68053a0
> src/main/python/apache/aurora/common/auth/BUILD 966484627dab90e7606f1fc638cd0e159aee3317
> src/main/python/apache/aurora/common/auth/__init__.py 3119fd63d3dfa28f93f219b23030059580fed098
> src/main/python/apache/aurora/common/auth/auth_module.py 5f4116ef4cfbc407e0c50dc938870fb14e2299b4
> src/main/python/apache/aurora/common/auth/auth_module_manager.py 73a8e5cd51edf694b971cd2c298ff406aff8c6d7
> src/main/python/apache/aurora/common/auth/kerberos.py PRE-CREATION
> src/main/python/apache/aurora/common/transport.py 395f8a94d9a27aad00166a17f2528a8c0833ffdd
> src/test/python/apache/aurora/client/api/test_scheduler_client.py 0a6194831c332a96eab62b869c4e05cfa9def058
> src/test/python/apache/aurora/common/test_transport.py b78e0b3badfbbeecefff7b5954f3796cef4da9d8
>
> Diff: https://reviews.apache.org/r/32541/diff/
>
>
> Testing
> -------
>
> ./pants test.pytest --no-fast src/test/python:all
> ./src/test/sh/org/apache/aurora/e2e/test_end_to_end.sh
>
>
> Thanks,
>
> Maxim Khutornenko
>
>
Re: Review Request 32541: Adding client Kerberos support.
Posted by Maxim Khutornenko <ma...@apache.org>.
> On April 1, 2015, 8:40 p.m., Kevin Sweeney wrote:
> > src/main/python/apache/aurora/client/cli/BUILD, line 29
> > <https://reviews.apache.org/r/32541/diff/2/?file=909509#file909509line29>
> >
> > How about "kaurora"
>
> Maxim Khutornenko wrote:
> This is a joke, right? :) If not I am really struggling how it would be more informative.
>
> Kevin Sweeney wrote:
> Some Kerberized tools have a convention of being prefixed with a "k" (su => ksu, rsh => krsh, passwd => kpasswd). I think the ergonomics are better (no underscores in command names), but don't feel strongly about it.
>
> Maxim Khutornenko wrote:
> Since this isn't a command line tool, I'd rather keep the current name as more descriptive.
>
> Kevin Sweeney wrote:
> It isn't? A python_binary target creates a command-line tool.
The module is not meant to be used as a python_binary and lacks an entry point though.
- Maxim
-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/32541/#review78573
-----------------------------------------------------------
On April 2, 2015, 5:33 p.m., Maxim Khutornenko wrote:
>
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/32541/
> -----------------------------------------------------------
>
> (Updated April 2, 2015, 5:33 p.m.)
>
>
> Review request for Aurora, Kevin Sweeney and Brian Wickman.
>
>
> Bugs: AURORA-813
> https://issues.apache.org/jira/browse/AURORA-813
>
>
> Repository: aurora
>
>
> Description
> -------
>
> First take on client kerberos support. The idea is to repurpose the existing auth_module system to support both legacy and kerberos during the deprecation period. This way the 0.8.0 client will be able to talk to pre-0.8.0 scheduler and use SessionKey-based authorization. Later (in 0.9.0), the payload() will be removed along with SessionKey (AURORA-1229). That will let us get rid of SchedulerProxy (or reduce it substantially). The auth_module might stay though to support other auth plugins (e.g. requests-ntlm or requests-oauthlib).
>
> TODO: integration e2e tests once scheduler side lands.
>
>
> Diffs
> -----
>
> 3rdparty/python/requirements.txt 11a307cdb476ebcc25ab5c6b555bed29241ea988
> src/main/python/apache/aurora/client/api/__init__.py a81329f6f947bbea4001c3a521c1923410a51eab
> src/main/python/apache/aurora/client/api/scheduler_client.py 95e553427492407743dcac31d70f392a7c1bbc02
> src/main/python/apache/aurora/client/cli/BUILD c6b4e8a09d1315cf5defee2155a6e0c697892a30
> src/main/python/apache/aurora/client/cli/client.py 24516d114db1743cdf600c542a27fcf5b68053a0
> src/main/python/apache/aurora/common/auth/BUILD 966484627dab90e7606f1fc638cd0e159aee3317
> src/main/python/apache/aurora/common/auth/__init__.py 3119fd63d3dfa28f93f219b23030059580fed098
> src/main/python/apache/aurora/common/auth/auth_module.py 5f4116ef4cfbc407e0c50dc938870fb14e2299b4
> src/main/python/apache/aurora/common/auth/auth_module_manager.py 73a8e5cd51edf694b971cd2c298ff406aff8c6d7
> src/main/python/apache/aurora/common/auth/kerberos.py PRE-CREATION
> src/main/python/apache/aurora/common/transport.py 395f8a94d9a27aad00166a17f2528a8c0833ffdd
> src/test/python/apache/aurora/client/api/test_scheduler_client.py 0a6194831c332a96eab62b869c4e05cfa9def058
> src/test/python/apache/aurora/common/test_transport.py b78e0b3badfbbeecefff7b5954f3796cef4da9d8
>
> Diff: https://reviews.apache.org/r/32541/diff/
>
>
> Testing
> -------
>
> ./pants test.pytest --no-fast src/test/python:all
> ./src/test/sh/org/apache/aurora/e2e/test_end_to_end.sh
>
>
> Thanks,
>
> Maxim Khutornenko
>
>
Re: Review Request 32541: Adding client Kerberos support.
Posted by Maxim Khutornenko <ma...@apache.org>.
> On April 1, 2015, 8:40 p.m., Kevin Sweeney wrote:
> > src/main/python/apache/aurora/common/auth/auth_kerberos.py, line 33
> > <https://reviews.apache.org/r/32541/diff/2/?file=909513#file909513line33>
> >
> > An explanatory comment as to why we don't enable mutual authentication would be nice here, for example:
> >
> > ```
> > """
> > While SPNEGO supports mutual authentication of the response, it does not assert the validity of the response payload, only the identity of the server. Thus the scheduler will not set the WWW-Authenticate response header and the client will disable mutual authentication. In order to achieve communication with the scheduler subject to confidentiality and integrity constraints the client must connect to the scheduler API via HTTPS. Kerberos is thus only used to authenticate the client to the server.
> > """
> > ```
Thanks, done.
> On April 1, 2015, 8:40 p.m., Kevin Sweeney wrote:
> > src/main/python/apache/aurora/common/auth/auth_module_manager.py, line 66
> > <https://reviews.apache.org/r/32541/diff/2/?file=909515#file909515line66>
> >
> > Transport layer suggests TCP to me - consider clarifying with "Thrift transport layer"
Done.
> On April 1, 2015, 8:40 p.m., Kevin Sweeney wrote:
> > src/test/python/apache/aurora/client/api/test_scheduler_client.py, line 491
> > <https://reviews.apache.org/r/32541/diff/2/?file=909516#file909516line491>
> >
> > consider using a mock instance of AuthBase here and elsewhere in this file - future readers might be confused as this is not a legal input type
Done.
- Maxim
-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/32541/#review78573
-----------------------------------------------------------
On April 2, 2015, 1:10 a.m., Maxim Khutornenko wrote:
>
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/32541/
> -----------------------------------------------------------
>
> (Updated April 2, 2015, 1:10 a.m.)
>
>
> Review request for Aurora, Kevin Sweeney and Brian Wickman.
>
>
> Bugs: AURORA-813
> https://issues.apache.org/jira/browse/AURORA-813
>
>
> Repository: aurora
>
>
> Description
> -------
>
> First take on client kerberos support. The idea is to repurpose the existing auth_module system to support both legacy and kerberos during the deprecation period. This way the 0.8.0 client will be able to talk to pre-0.8.0 scheduler and use SessionKey-based authorization. Later (in 0.9.0), the payload() will be removed along with SessionKey (AURORA-1229). That will let us get rid of SchedulerProxy (or reduce it substantially). The auth_module might stay though to support other auth plugins (e.g. requests-ntlm or requests-oauthlib).
>
> TODO: integration e2e tests once scheduler side lands.
>
>
> Diffs
> -----
>
> 3rdparty/python/requirements.txt 11a307cdb476ebcc25ab5c6b555bed29241ea988
> src/main/python/apache/aurora/client/api/__init__.py a81329f6f947bbea4001c3a521c1923410a51eab
> src/main/python/apache/aurora/client/api/scheduler_client.py 95e553427492407743dcac31d70f392a7c1bbc02
> src/main/python/apache/aurora/client/cli/BUILD c6b4e8a09d1315cf5defee2155a6e0c697892a30
> src/main/python/apache/aurora/client/cli/client.py 24516d114db1743cdf600c542a27fcf5b68053a0
> src/main/python/apache/aurora/common/auth/BUILD 966484627dab90e7606f1fc638cd0e159aee3317
> src/main/python/apache/aurora/common/auth/__init__.py 3119fd63d3dfa28f93f219b23030059580fed098
> src/main/python/apache/aurora/common/auth/auth_module.py 5f4116ef4cfbc407e0c50dc938870fb14e2299b4
> src/main/python/apache/aurora/common/auth/auth_module_manager.py 73a8e5cd51edf694b971cd2c298ff406aff8c6d7
> src/main/python/apache/aurora/common/auth/kerberos.py PRE-CREATION
> src/main/python/apache/aurora/common/transport.py 395f8a94d9a27aad00166a17f2528a8c0833ffdd
> src/test/python/apache/aurora/client/api/test_scheduler_client.py 0a6194831c332a96eab62b869c4e05cfa9def058
> src/test/python/apache/aurora/common/test_transport.py b78e0b3badfbbeecefff7b5954f3796cef4da9d8
>
> Diff: https://reviews.apache.org/r/32541/diff/
>
>
> Testing
> -------
>
> ./pants test.pytest --no-fast src/test/python:all
> ./src/test/sh/org/apache/aurora/e2e/test_end_to_end.sh
>
>
> Thanks,
>
> Maxim Khutornenko
>
>
Re: Review Request 32541: Adding client Kerberos support.
Posted by Kevin Sweeney <ke...@apache.org>.
> On April 1, 2015, 1:40 p.m., Kevin Sweeney wrote:
> > src/main/python/apache/aurora/client/cli/BUILD, line 29
> > <https://reviews.apache.org/r/32541/diff/2/?file=909509#file909509line29>
> >
> > How about "kaurora"
>
> Maxim Khutornenko wrote:
> This is a joke, right? :) If not I am really struggling how it would be more informative.
>
> Kevin Sweeney wrote:
> Some Kerberized tools have a convention of being prefixed with a "k" (su => ksu, rsh => krsh, passwd => kpasswd). I think the ergonomics are better (no underscores in command names), but don't feel strongly about it.
>
> Maxim Khutornenko wrote:
> Since this isn't a command line tool, I'd rather keep the current name as more descriptive.
>
> Kevin Sweeney wrote:
> It isn't? A python_binary target creates a command-line tool.
>
> Maxim Khutornenko wrote:
> The module is not meant to be used as a python_binary and lacks an entry point though.
Ah, this suggestion should've been applied to the `python_binary(name='aurora*_secure')` targets.
- Kevin
-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/32541/#review78573
-----------------------------------------------------------
On April 10, 2015, 3:45 p.m., Maxim Khutornenko wrote:
>
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/32541/
> -----------------------------------------------------------
>
> (Updated April 10, 2015, 3:45 p.m.)
>
>
> Review request for Aurora, Kevin Sweeney and Brian Wickman.
>
>
> Bugs: AURORA-813
> https://issues.apache.org/jira/browse/AURORA-813
>
>
> Repository: aurora
>
>
> Description
> -------
>
> First take on client kerberos support. The idea is to repurpose the existing auth_module system to support both legacy and kerberos during the deprecation period. This way the 0.8.0 client will be able to talk to pre-0.8.0 scheduler and use SessionKey-based authorization. Later (in 0.9.0), the payload() will be removed along with SessionKey (AURORA-1229). That will let us get rid of SchedulerProxy (or reduce it substantially). The auth_module might stay though to support other auth plugins (e.g. requests-ntlm or requests-oauthlib).
>
> TODO: integration e2e tests once scheduler side lands.
>
>
> Diffs
> -----
>
> 3rdparty/python/requirements.txt 11a307cdb476ebcc25ab5c6b555bed29241ea988
> examples/vagrant/aurorabuild.sh f11488a3bd04c300e2772831c4926de75053eb3f
> examples/vagrant/clusters_kerberos.json PRE-CREATION
> examples/vagrant/upstart/aurora-scheduler-kerberos.conf 0a809e8e0301fdb825d0d50ab2c636522fea9163
> src/main/python/apache/aurora/admin/BUILD c51a90b08efa39e517c1ae06fe53daa013c94971
> src/main/python/apache/aurora/admin/aurora_admin.py f9e8f3d19a2d861cd20aaba88455579cd8fd22ee
> src/main/python/apache/aurora/client/api/__init__.py a81329f6f947bbea4001c3a521c1923410a51eab
> src/main/python/apache/aurora/client/api/scheduler_client.py 95e553427492407743dcac31d70f392a7c1bbc02
> src/main/python/apache/aurora/client/cli/BUILD 3ab41cc26b04371e7df09983ff4c4d003988cd28
> src/main/python/apache/aurora/client/cli/client.py 24516d114db1743cdf600c542a27fcf5b68053a0
> src/main/python/apache/aurora/common/auth/BUILD 966484627dab90e7606f1fc638cd0e159aee3317
> src/main/python/apache/aurora/common/auth/__init__.py 3119fd63d3dfa28f93f219b23030059580fed098
> src/main/python/apache/aurora/common/auth/auth_module.py 5f4116ef4cfbc407e0c50dc938870fb14e2299b4
> src/main/python/apache/aurora/common/auth/auth_module_manager.py 73a8e5cd51edf694b971cd2c298ff406aff8c6d7
> src/main/python/apache/aurora/common/auth/kerberos.py PRE-CREATION
> src/main/python/apache/aurora/common/transport.py 395f8a94d9a27aad00166a17f2528a8c0833ffdd
> src/test/python/apache/aurora/client/api/test_scheduler_client.py 0a6194831c332a96eab62b869c4e05cfa9def058
> src/test/python/apache/aurora/common/test_transport.py b78e0b3badfbbeecefff7b5954f3796cef4da9d8
> src/test/sh/org/apache/aurora/e2e/test_kerberos_end_to_end.sh 47d22eeacef06c999dda984f6d1ed22e5ab0c417
>
> Diff: https://reviews.apache.org/r/32541/diff/
>
>
> Testing
> -------
>
> ./pants test.pytest --no-fast src/test/python:all
> ./src/test/sh/org/apache/aurora/e2e/test_end_to_end.sh
>
>
> Thanks,
>
> Maxim Khutornenko
>
>
Re: Review Request 32541: Adding client Kerberos support.
Posted by Maxim Khutornenko <ma...@apache.org>.
> On April 1, 2015, 8:40 p.m., Kevin Sweeney wrote:
> > src/main/python/apache/aurora/client/cli/BUILD, line 29
> > <https://reviews.apache.org/r/32541/diff/2/?file=909509#file909509line29>
> >
> > How about "kaurora"
This is a joke, right? :) If not I am really struggling how it would be more informative.
> On April 1, 2015, 8:40 p.m., Kevin Sweeney wrote:
> > src/main/python/apache/aurora/client/cli/client.py, line 69
> > <https://reviews.apache.org/r/32541/diff/2/?file=909510#file909510line69>
> >
> > nit: auth.auth_kerberos is pretty redundant - can rename the module to auth.kerberos
Sure, fine with me. Done.
- Maxim
-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/32541/#review78573
-----------------------------------------------------------
On April 1, 2015, 7:53 p.m., Maxim Khutornenko wrote:
>
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/32541/
> -----------------------------------------------------------
>
> (Updated April 1, 2015, 7:53 p.m.)
>
>
> Review request for Aurora, Kevin Sweeney and Brian Wickman.
>
>
> Bugs: AURORA-813
> https://issues.apache.org/jira/browse/AURORA-813
>
>
> Repository: aurora
>
>
> Description
> -------
>
> First take on client kerberos support. The idea is to repurpose the existing auth_module system to support both legacy and kerberos during the deprecation period. This way the 0.8.0 client will be able to talk to pre-0.8.0 scheduler and use SessionKey-based authorization. Later (in 0.9.0), the payload() will be removed along with SessionKey (AURORA-1229). That will let us get rid of SchedulerProxy (or reduce it substantially). The auth_module might stay though to support other auth plugins (e.g. requests-ntlm or requests-oauthlib).
>
> TODO: integration e2e tests once scheduler side lands.
>
>
> Diffs
> -----
>
> 3rdparty/python/requirements.txt 11a307cdb476ebcc25ab5c6b555bed29241ea988
> src/main/python/apache/aurora/client/api/__init__.py a81329f6f947bbea4001c3a521c1923410a51eab
> src/main/python/apache/aurora/client/api/scheduler_client.py 95e553427492407743dcac31d70f392a7c1bbc02
> src/main/python/apache/aurora/client/cli/BUILD c6b4e8a09d1315cf5defee2155a6e0c697892a30
> src/main/python/apache/aurora/client/cli/client.py 24516d114db1743cdf600c542a27fcf5b68053a0
> src/main/python/apache/aurora/common/auth/BUILD 966484627dab90e7606f1fc638cd0e159aee3317
> src/main/python/apache/aurora/common/auth/__init__.py 3119fd63d3dfa28f93f219b23030059580fed098
> src/main/python/apache/aurora/common/auth/auth_kerberos.py PRE-CREATION
> src/main/python/apache/aurora/common/auth/auth_module.py 5f4116ef4cfbc407e0c50dc938870fb14e2299b4
> src/main/python/apache/aurora/common/auth/auth_module_manager.py 73a8e5cd51edf694b971cd2c298ff406aff8c6d7
> src/main/python/apache/aurora/common/transport.py 395f8a94d9a27aad00166a17f2528a8c0833ffdd
> src/test/python/apache/aurora/client/api/test_scheduler_client.py 0a6194831c332a96eab62b869c4e05cfa9def058
> src/test/python/apache/aurora/common/test_transport.py b78e0b3badfbbeecefff7b5954f3796cef4da9d8
>
> Diff: https://reviews.apache.org/r/32541/diff/
>
>
> Testing
> -------
>
> ./pants test.pytest --no-fast src/test/python:all
> ./src/test/sh/org/apache/aurora/e2e/test_end_to_end.sh
>
>
> Thanks,
>
> Maxim Khutornenko
>
>
Re: Review Request 32541: Adding client Kerberos support.
Posted by Kevin Sweeney <ke...@apache.org>.
> On April 1, 2015, 1:40 p.m., Kevin Sweeney wrote:
> > src/main/python/apache/aurora/client/cli/BUILD, line 29
> > <https://reviews.apache.org/r/32541/diff/2/?file=909509#file909509line29>
> >
> > How about "kaurora"
>
> Maxim Khutornenko wrote:
> This is a joke, right? :) If not I am really struggling how it would be more informative.
>
> Kevin Sweeney wrote:
> Some Kerberized tools have a convention of being prefixed with a "k" (su => ksu, rsh => krsh, passwd => kpasswd). I think the ergonomics are better (no underscores in command names), but don't feel strongly about it.
>
> Maxim Khutornenko wrote:
> Since this isn't a command line tool, I'd rather keep the current name as more descriptive.
It isn't? A python_binary target creates a command-line tool.
- Kevin
-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/32541/#review78573
-----------------------------------------------------------
On April 2, 2015, 10:33 a.m., Maxim Khutornenko wrote:
>
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/32541/
> -----------------------------------------------------------
>
> (Updated April 2, 2015, 10:33 a.m.)
>
>
> Review request for Aurora, Kevin Sweeney and Brian Wickman.
>
>
> Bugs: AURORA-813
> https://issues.apache.org/jira/browse/AURORA-813
>
>
> Repository: aurora
>
>
> Description
> -------
>
> First take on client kerberos support. The idea is to repurpose the existing auth_module system to support both legacy and kerberos during the deprecation period. This way the 0.8.0 client will be able to talk to pre-0.8.0 scheduler and use SessionKey-based authorization. Later (in 0.9.0), the payload() will be removed along with SessionKey (AURORA-1229). That will let us get rid of SchedulerProxy (or reduce it substantially). The auth_module might stay though to support other auth plugins (e.g. requests-ntlm or requests-oauthlib).
>
> TODO: integration e2e tests once scheduler side lands.
>
>
> Diffs
> -----
>
> 3rdparty/python/requirements.txt 11a307cdb476ebcc25ab5c6b555bed29241ea988
> src/main/python/apache/aurora/client/api/__init__.py a81329f6f947bbea4001c3a521c1923410a51eab
> src/main/python/apache/aurora/client/api/scheduler_client.py 95e553427492407743dcac31d70f392a7c1bbc02
> src/main/python/apache/aurora/client/cli/BUILD c6b4e8a09d1315cf5defee2155a6e0c697892a30
> src/main/python/apache/aurora/client/cli/client.py 24516d114db1743cdf600c542a27fcf5b68053a0
> src/main/python/apache/aurora/common/auth/BUILD 966484627dab90e7606f1fc638cd0e159aee3317
> src/main/python/apache/aurora/common/auth/__init__.py 3119fd63d3dfa28f93f219b23030059580fed098
> src/main/python/apache/aurora/common/auth/auth_module.py 5f4116ef4cfbc407e0c50dc938870fb14e2299b4
> src/main/python/apache/aurora/common/auth/auth_module_manager.py 73a8e5cd51edf694b971cd2c298ff406aff8c6d7
> src/main/python/apache/aurora/common/auth/kerberos.py PRE-CREATION
> src/main/python/apache/aurora/common/transport.py 395f8a94d9a27aad00166a17f2528a8c0833ffdd
> src/test/python/apache/aurora/client/api/test_scheduler_client.py 0a6194831c332a96eab62b869c4e05cfa9def058
> src/test/python/apache/aurora/common/test_transport.py b78e0b3badfbbeecefff7b5954f3796cef4da9d8
>
> Diff: https://reviews.apache.org/r/32541/diff/
>
>
> Testing
> -------
>
> ./pants test.pytest --no-fast src/test/python:all
> ./src/test/sh/org/apache/aurora/e2e/test_end_to_end.sh
>
>
> Thanks,
>
> Maxim Khutornenko
>
>
Re: Review Request 32541: Adding client Kerberos support.
Posted by Maxim Khutornenko <ma...@apache.org>.
> On April 1, 2015, 8:40 p.m., Kevin Sweeney wrote:
> > src/main/python/apache/aurora/client/cli/BUILD, line 29
> > <https://reviews.apache.org/r/32541/diff/2/?file=909509#file909509line29>
> >
> > How about "kaurora"
>
> Maxim Khutornenko wrote:
> This is a joke, right? :) If not I am really struggling how it would be more informative.
>
> Kevin Sweeney wrote:
> Some Kerberized tools have a convention of being prefixed with a "k" (su => ksu, rsh => krsh, passwd => kpasswd). I think the ergonomics are better (no underscores in command names), but don't feel strongly about it.
>
> Maxim Khutornenko wrote:
> Since this isn't a command line tool, I'd rather keep the current name as more descriptive.
>
> Kevin Sweeney wrote:
> It isn't? A python_binary target creates a command-line tool.
>
> Maxim Khutornenko wrote:
> The module is not meant to be used as a python_binary and lacks an entry point though.
>
> Kevin Sweeney wrote:
> Ah, this suggestion should've been applied to the `python_binary(name='aurora*_secure')` targets.
Ah, I see what you meant now :) Sure, makes sense. Done.
- Maxim
-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/32541/#review78573
-----------------------------------------------------------
On April 10, 2015, 10:45 p.m., Maxim Khutornenko wrote:
>
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/32541/
> -----------------------------------------------------------
>
> (Updated April 10, 2015, 10:45 p.m.)
>
>
> Review request for Aurora, Kevin Sweeney and Brian Wickman.
>
>
> Bugs: AURORA-813
> https://issues.apache.org/jira/browse/AURORA-813
>
>
> Repository: aurora
>
>
> Description
> -------
>
> First take on client kerberos support. The idea is to repurpose the existing auth_module system to support both legacy and kerberos during the deprecation period. This way the 0.8.0 client will be able to talk to pre-0.8.0 scheduler and use SessionKey-based authorization. Later (in 0.9.0), the payload() will be removed along with SessionKey (AURORA-1229). That will let us get rid of SchedulerProxy (or reduce it substantially). The auth_module might stay though to support other auth plugins (e.g. requests-ntlm or requests-oauthlib).
>
> TODO: integration e2e tests once scheduler side lands.
>
>
> Diffs
> -----
>
> 3rdparty/python/requirements.txt 11a307cdb476ebcc25ab5c6b555bed29241ea988
> examples/vagrant/aurorabuild.sh f11488a3bd04c300e2772831c4926de75053eb3f
> examples/vagrant/clusters_kerberos.json PRE-CREATION
> examples/vagrant/upstart/aurora-scheduler-kerberos.conf 0a809e8e0301fdb825d0d50ab2c636522fea9163
> src/main/python/apache/aurora/admin/BUILD c51a90b08efa39e517c1ae06fe53daa013c94971
> src/main/python/apache/aurora/admin/aurora_admin.py f9e8f3d19a2d861cd20aaba88455579cd8fd22ee
> src/main/python/apache/aurora/client/api/__init__.py a81329f6f947bbea4001c3a521c1923410a51eab
> src/main/python/apache/aurora/client/api/scheduler_client.py 95e553427492407743dcac31d70f392a7c1bbc02
> src/main/python/apache/aurora/client/cli/BUILD 3ab41cc26b04371e7df09983ff4c4d003988cd28
> src/main/python/apache/aurora/client/cli/client.py 24516d114db1743cdf600c542a27fcf5b68053a0
> src/main/python/apache/aurora/common/auth/BUILD 966484627dab90e7606f1fc638cd0e159aee3317
> src/main/python/apache/aurora/common/auth/__init__.py 3119fd63d3dfa28f93f219b23030059580fed098
> src/main/python/apache/aurora/common/auth/auth_module.py 5f4116ef4cfbc407e0c50dc938870fb14e2299b4
> src/main/python/apache/aurora/common/auth/auth_module_manager.py 73a8e5cd51edf694b971cd2c298ff406aff8c6d7
> src/main/python/apache/aurora/common/auth/kerberos.py PRE-CREATION
> src/main/python/apache/aurora/common/transport.py 395f8a94d9a27aad00166a17f2528a8c0833ffdd
> src/test/python/apache/aurora/client/api/test_scheduler_client.py 0a6194831c332a96eab62b869c4e05cfa9def058
> src/test/python/apache/aurora/common/test_transport.py b78e0b3badfbbeecefff7b5954f3796cef4da9d8
> src/test/sh/org/apache/aurora/e2e/test_kerberos_end_to_end.sh 47d22eeacef06c999dda984f6d1ed22e5ab0c417
>
> Diff: https://reviews.apache.org/r/32541/diff/
>
>
> Testing
> -------
>
> ./pants test.pytest --no-fast src/test/python:all
> ./src/test/sh/org/apache/aurora/e2e/test_end_to_end.sh
>
>
> Thanks,
>
> Maxim Khutornenko
>
>
Re: Review Request 32541: Adding client Kerberos support.
Posted by Kevin Sweeney <ke...@apache.org>.
> On April 1, 2015, 1:40 p.m., Kevin Sweeney wrote:
> > src/main/python/apache/aurora/client/cli/BUILD, line 29
> > <https://reviews.apache.org/r/32541/diff/2/?file=909509#file909509line29>
> >
> > How about "kaurora"
>
> Maxim Khutornenko wrote:
> This is a joke, right? :) If not I am really struggling how it would be more informative.
Some Kerberized tools have a convention of being prefixed with a "k" (su => ksu, rsh => krsh, passwd => kpasswd). I think the ergonomics are better (no underscores in command names), but don't feel strongly about it.
- Kevin
-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/32541/#review78573
-----------------------------------------------------------
On April 1, 2015, 6:10 p.m., Maxim Khutornenko wrote:
>
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/32541/
> -----------------------------------------------------------
>
> (Updated April 1, 2015, 6:10 p.m.)
>
>
> Review request for Aurora, Kevin Sweeney and Brian Wickman.
>
>
> Bugs: AURORA-813
> https://issues.apache.org/jira/browse/AURORA-813
>
>
> Repository: aurora
>
>
> Description
> -------
>
> First take on client kerberos support. The idea is to repurpose the existing auth_module system to support both legacy and kerberos during the deprecation period. This way the 0.8.0 client will be able to talk to pre-0.8.0 scheduler and use SessionKey-based authorization. Later (in 0.9.0), the payload() will be removed along with SessionKey (AURORA-1229). That will let us get rid of SchedulerProxy (or reduce it substantially). The auth_module might stay though to support other auth plugins (e.g. requests-ntlm or requests-oauthlib).
>
> TODO: integration e2e tests once scheduler side lands.
>
>
> Diffs
> -----
>
> 3rdparty/python/requirements.txt 11a307cdb476ebcc25ab5c6b555bed29241ea988
> src/main/python/apache/aurora/client/api/__init__.py a81329f6f947bbea4001c3a521c1923410a51eab
> src/main/python/apache/aurora/client/api/scheduler_client.py 95e553427492407743dcac31d70f392a7c1bbc02
> src/main/python/apache/aurora/client/cli/BUILD c6b4e8a09d1315cf5defee2155a6e0c697892a30
> src/main/python/apache/aurora/client/cli/client.py 24516d114db1743cdf600c542a27fcf5b68053a0
> src/main/python/apache/aurora/common/auth/BUILD 966484627dab90e7606f1fc638cd0e159aee3317
> src/main/python/apache/aurora/common/auth/__init__.py 3119fd63d3dfa28f93f219b23030059580fed098
> src/main/python/apache/aurora/common/auth/auth_module.py 5f4116ef4cfbc407e0c50dc938870fb14e2299b4
> src/main/python/apache/aurora/common/auth/auth_module_manager.py 73a8e5cd51edf694b971cd2c298ff406aff8c6d7
> src/main/python/apache/aurora/common/auth/kerberos.py PRE-CREATION
> src/main/python/apache/aurora/common/transport.py 395f8a94d9a27aad00166a17f2528a8c0833ffdd
> src/test/python/apache/aurora/client/api/test_scheduler_client.py 0a6194831c332a96eab62b869c4e05cfa9def058
> src/test/python/apache/aurora/common/test_transport.py b78e0b3badfbbeecefff7b5954f3796cef4da9d8
>
> Diff: https://reviews.apache.org/r/32541/diff/
>
>
> Testing
> -------
>
> ./pants test.pytest --no-fast src/test/python:all
> ./src/test/sh/org/apache/aurora/e2e/test_end_to_end.sh
>
>
> Thanks,
>
> Maxim Khutornenko
>
>
Re: Review Request 32541: Adding client Kerberos support.
Posted by Kevin Sweeney <ke...@apache.org>.
-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/32541/#review78573
-----------------------------------------------------------
Ship it!
Looking good modulo comments below. Have you had a chance to run this build in the end-to-end test from https://reviews.apache.org/r/32559/?
src/main/python/apache/aurora/client/cli/BUILD
<https://reviews.apache.org/r/32541/#comment127470>
How about "kaurora"
src/main/python/apache/aurora/client/cli/client.py
<https://reviews.apache.org/r/32541/#comment127445>
nit: auth.auth_kerberos is pretty redundant - can rename the module to auth.kerberos
src/main/python/apache/aurora/common/auth/auth_kerberos.py
<https://reviews.apache.org/r/32541/#comment127473>
An explanatory comment as to why we don't enable mutual authentication would be nice here, for example:
```
"""
While SPNEGO supports mutual authentication of the response, it does not assert the validity of the response payload, only the identity of the server. Thus the scheduler will not set the WWW-Authenticate response header and the client will disable mutual authentication. In order to achieve communication with the scheduler subject to confidentiality and integrity constraints the client must connect to the scheduler API via HTTPS. Kerberos is thus only used to authenticate the client to the server.
"""
```
src/main/python/apache/aurora/common/auth/auth_module_manager.py
<https://reviews.apache.org/r/32541/#comment127472>
Transport layer suggests TCP to me - consider clarifying with "Thrift transport layer"
src/test/python/apache/aurora/client/api/test_scheduler_client.py
<https://reviews.apache.org/r/32541/#comment127471>
consider using a mock instance of AuthBase here and elsewhere in this file - future readers might be confused as this is not a legal input type
- Kevin Sweeney
On April 1, 2015, 12:53 p.m., Maxim Khutornenko wrote:
>
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/32541/
> -----------------------------------------------------------
>
> (Updated April 1, 2015, 12:53 p.m.)
>
>
> Review request for Aurora, Kevin Sweeney and Brian Wickman.
>
>
> Bugs: AURORA-813
> https://issues.apache.org/jira/browse/AURORA-813
>
>
> Repository: aurora
>
>
> Description
> -------
>
> First take on client kerberos support. The idea is to repurpose the existing auth_module system to support both legacy and kerberos during the deprecation period. This way the 0.8.0 client will be able to talk to pre-0.8.0 scheduler and use SessionKey-based authorization. Later (in 0.9.0), the payload() will be removed along with SessionKey (AURORA-1229). That will let us get rid of SchedulerProxy (or reduce it substantially). The auth_module might stay though to support other auth plugins (e.g. requests-ntlm or requests-oauthlib).
>
> TODO: integration e2e tests once scheduler side lands.
>
>
> Diffs
> -----
>
> 3rdparty/python/requirements.txt 11a307cdb476ebcc25ab5c6b555bed29241ea988
> src/main/python/apache/aurora/client/api/__init__.py a81329f6f947bbea4001c3a521c1923410a51eab
> src/main/python/apache/aurora/client/api/scheduler_client.py 95e553427492407743dcac31d70f392a7c1bbc02
> src/main/python/apache/aurora/client/cli/BUILD c6b4e8a09d1315cf5defee2155a6e0c697892a30
> src/main/python/apache/aurora/client/cli/client.py 24516d114db1743cdf600c542a27fcf5b68053a0
> src/main/python/apache/aurora/common/auth/BUILD 966484627dab90e7606f1fc638cd0e159aee3317
> src/main/python/apache/aurora/common/auth/__init__.py 3119fd63d3dfa28f93f219b23030059580fed098
> src/main/python/apache/aurora/common/auth/auth_kerberos.py PRE-CREATION
> src/main/python/apache/aurora/common/auth/auth_module.py 5f4116ef4cfbc407e0c50dc938870fb14e2299b4
> src/main/python/apache/aurora/common/auth/auth_module_manager.py 73a8e5cd51edf694b971cd2c298ff406aff8c6d7
> src/main/python/apache/aurora/common/transport.py 395f8a94d9a27aad00166a17f2528a8c0833ffdd
> src/test/python/apache/aurora/client/api/test_scheduler_client.py 0a6194831c332a96eab62b869c4e05cfa9def058
> src/test/python/apache/aurora/common/test_transport.py b78e0b3badfbbeecefff7b5954f3796cef4da9d8
>
> Diff: https://reviews.apache.org/r/32541/diff/
>
>
> Testing
> -------
>
> ./pants test.pytest --no-fast src/test/python:all
> ./src/test/sh/org/apache/aurora/e2e/test_end_to_end.sh
>
>
> Thanks,
>
> Maxim Khutornenko
>
>
Re: Review Request 32541: Adding client Kerberos support.
Posted by Aurora ReviewBot <wf...@apache.org>.
-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/32541/#review78685
-----------------------------------------------------------
Master (4b9c759) is red with this patch.
./build-support/jenkins/build.sh
:check
:build
:api:assemble
:api:compileTestJava UP-TO-DATE
:api:processTestResources UP-TO-DATE
:api:testClasses UP-TO-DATE
:api:test UP-TO-DATE
:api:check UP-TO-DATE
:api:build
:buildSrc:compileJava UP-TO-DATE
:buildSrc:processResources UP-TO-DATE
:buildSrc:classes UP-TO-DATE
:buildSrc:jar
:buildSrc:assemble
:buildSrc:compileTestJava UP-TO-DATE
:buildSrc:processTestResources UP-TO-DATE
:buildSrc:testClasses UP-TO-DATE
:buildSrc:test UP-TO-DATE
:buildSrc:check UP-TO-DATE
:buildSrc:build
BUILD SUCCESSFUL
Total time: 4 mins 0.994 secs
+ export PIP_DEFAULT_TIMEOUT=60
+ PIP_DEFAULT_TIMEOUT=60
+ mkdir -p third_party
+ pip install -d third_party -r /dev/fd/63
++ grep -v mesos.native 3rdparty/python/requirements.txt
Downloading/unpacking bottle==0.11.6 (from -r /dev/fd/63 (line 1))
Saved ./third_party/bottle-0.11.6-py2.py3-none-any.whl
Downloading/unpacking CherryPy==3.6.0 (from -r /dev/fd/63 (line 2))
pip can't proceed with requirement 'CherryPy==3.6.0 (from -r /dev/fd/63 (line 2))' due to a pre-existing build directory.
location: /tmp/user/2395/pip_build_jenkins/CherryPy
This is likely due to a previous installation that failed.
pip is being responsible and not assuming it can delete this.
Please delete it and try again.
Storing debug log for failure in /home/jenkins/.pip/pip.log
I will refresh this build result if you post a review containing "@ReviewBot retry"
- Aurora ReviewBot
On April 2, 2015, 5:33 p.m., Maxim Khutornenko wrote:
>
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/32541/
> -----------------------------------------------------------
>
> (Updated April 2, 2015, 5:33 p.m.)
>
>
> Review request for Aurora, Kevin Sweeney and Brian Wickman.
>
>
> Bugs: AURORA-813
> https://issues.apache.org/jira/browse/AURORA-813
>
>
> Repository: aurora
>
>
> Description
> -------
>
> First take on client kerberos support. The idea is to repurpose the existing auth_module system to support both legacy and kerberos during the deprecation period. This way the 0.8.0 client will be able to talk to pre-0.8.0 scheduler and use SessionKey-based authorization. Later (in 0.9.0), the payload() will be removed along with SessionKey (AURORA-1229). That will let us get rid of SchedulerProxy (or reduce it substantially). The auth_module might stay though to support other auth plugins (e.g. requests-ntlm or requests-oauthlib).
>
> TODO: integration e2e tests once scheduler side lands.
>
>
> Diffs
> -----
>
> 3rdparty/python/requirements.txt 11a307cdb476ebcc25ab5c6b555bed29241ea988
> src/main/python/apache/aurora/client/api/__init__.py a81329f6f947bbea4001c3a521c1923410a51eab
> src/main/python/apache/aurora/client/api/scheduler_client.py 95e553427492407743dcac31d70f392a7c1bbc02
> src/main/python/apache/aurora/client/cli/BUILD c6b4e8a09d1315cf5defee2155a6e0c697892a30
> src/main/python/apache/aurora/client/cli/client.py 24516d114db1743cdf600c542a27fcf5b68053a0
> src/main/python/apache/aurora/common/auth/BUILD 966484627dab90e7606f1fc638cd0e159aee3317
> src/main/python/apache/aurora/common/auth/__init__.py 3119fd63d3dfa28f93f219b23030059580fed098
> src/main/python/apache/aurora/common/auth/auth_module.py 5f4116ef4cfbc407e0c50dc938870fb14e2299b4
> src/main/python/apache/aurora/common/auth/auth_module_manager.py 73a8e5cd51edf694b971cd2c298ff406aff8c6d7
> src/main/python/apache/aurora/common/auth/kerberos.py PRE-CREATION
> src/main/python/apache/aurora/common/transport.py 395f8a94d9a27aad00166a17f2528a8c0833ffdd
> src/test/python/apache/aurora/client/api/test_scheduler_client.py 0a6194831c332a96eab62b869c4e05cfa9def058
> src/test/python/apache/aurora/common/test_transport.py b78e0b3badfbbeecefff7b5954f3796cef4da9d8
>
> Diff: https://reviews.apache.org/r/32541/diff/
>
>
> Testing
> -------
>
> ./pants test.pytest --no-fast src/test/python:all
> ./src/test/sh/org/apache/aurora/e2e/test_end_to_end.sh
>
>
> Thanks,
>
> Maxim Khutornenko
>
>
Re: Review Request 32541: Adding client Kerberos support.
Posted by Maxim Khutornenko <ma...@apache.org>.
> On April 10, 2015, 10:52 p.m., Kevin Sweeney wrote:
> > src/main/python/apache/aurora/client/api/scheduler_client.py, line 32
> > <https://reviews.apache.org/r/32541/diff/6/?file=924005#file924005line32>
> >
> > nit: trailing comma here
Done.
> On April 10, 2015, 10:52 p.m., Kevin Sweeney wrote:
> > src/main/python/apache/aurora/common/auth/BUILD, line 30
> > <https://reviews.apache.org/r/32541/diff/6/?file=924008#file924008line30>
> >
> > rename this target to match its module name?
I thought about that but "kerberos" seemed too generic. I am ok renaming it though.
> On April 10, 2015, 10:52 p.m., Kevin Sweeney wrote:
> > src/main/python/apache/aurora/common/auth/auth_module_manager.py, line 68
> > <https://reviews.apache.org/r/32541/diff/6/?file=924011#file924011line68>
> >
> > Does this work in the non-kerberized client? Don't see anything calling register_auth_module()
There is already a default UNAUTHENTICATED module registered above, which prevents this error in unsecure client.
> On April 10, 2015, 10:52 p.m., Kevin Sweeney wrote:
> > src/main/python/apache/aurora/common/transport.py, line 57
> > <https://reviews.apache.org/r/32541/diff/6/?file=924013#file924013line57>
> >
> > missing a :type auth: doc - should be on separate line
> >
> > see https://www.jetbrains.com/pycharm/help/type-hinting-in-pycharm.html#d269326e180
Done.
- Maxim
-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/32541/#review79766
-----------------------------------------------------------
On April 10, 2015, 10:45 p.m., Maxim Khutornenko wrote:
>
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/32541/
> -----------------------------------------------------------
>
> (Updated April 10, 2015, 10:45 p.m.)
>
>
> Review request for Aurora, Kevin Sweeney and Brian Wickman.
>
>
> Bugs: AURORA-813
> https://issues.apache.org/jira/browse/AURORA-813
>
>
> Repository: aurora
>
>
> Description
> -------
>
> First take on client kerberos support. The idea is to repurpose the existing auth_module system to support both legacy and kerberos during the deprecation period. This way the 0.8.0 client will be able to talk to pre-0.8.0 scheduler and use SessionKey-based authorization. Later (in 0.9.0), the payload() will be removed along with SessionKey (AURORA-1229). That will let us get rid of SchedulerProxy (or reduce it substantially). The auth_module might stay though to support other auth plugins (e.g. requests-ntlm or requests-oauthlib).
>
> TODO: integration e2e tests once scheduler side lands.
>
>
> Diffs
> -----
>
> 3rdparty/python/requirements.txt 11a307cdb476ebcc25ab5c6b555bed29241ea988
> examples/vagrant/aurorabuild.sh f11488a3bd04c300e2772831c4926de75053eb3f
> examples/vagrant/clusters_kerberos.json PRE-CREATION
> examples/vagrant/upstart/aurora-scheduler-kerberos.conf 0a809e8e0301fdb825d0d50ab2c636522fea9163
> src/main/python/apache/aurora/admin/BUILD c51a90b08efa39e517c1ae06fe53daa013c94971
> src/main/python/apache/aurora/admin/aurora_admin.py f9e8f3d19a2d861cd20aaba88455579cd8fd22ee
> src/main/python/apache/aurora/client/api/__init__.py a81329f6f947bbea4001c3a521c1923410a51eab
> src/main/python/apache/aurora/client/api/scheduler_client.py 95e553427492407743dcac31d70f392a7c1bbc02
> src/main/python/apache/aurora/client/cli/BUILD 3ab41cc26b04371e7df09983ff4c4d003988cd28
> src/main/python/apache/aurora/client/cli/client.py 24516d114db1743cdf600c542a27fcf5b68053a0
> src/main/python/apache/aurora/common/auth/BUILD 966484627dab90e7606f1fc638cd0e159aee3317
> src/main/python/apache/aurora/common/auth/__init__.py 3119fd63d3dfa28f93f219b23030059580fed098
> src/main/python/apache/aurora/common/auth/auth_module.py 5f4116ef4cfbc407e0c50dc938870fb14e2299b4
> src/main/python/apache/aurora/common/auth/auth_module_manager.py 73a8e5cd51edf694b971cd2c298ff406aff8c6d7
> src/main/python/apache/aurora/common/auth/kerberos.py PRE-CREATION
> src/main/python/apache/aurora/common/transport.py 395f8a94d9a27aad00166a17f2528a8c0833ffdd
> src/test/python/apache/aurora/client/api/test_scheduler_client.py 0a6194831c332a96eab62b869c4e05cfa9def058
> src/test/python/apache/aurora/common/test_transport.py b78e0b3badfbbeecefff7b5954f3796cef4da9d8
> src/test/sh/org/apache/aurora/e2e/test_kerberos_end_to_end.sh 47d22eeacef06c999dda984f6d1ed22e5ab0c417
>
> Diff: https://reviews.apache.org/r/32541/diff/
>
>
> Testing
> -------
>
> ./pants test.pytest --no-fast src/test/python:all
> ./src/test/sh/org/apache/aurora/e2e/test_end_to_end.sh
>
>
> Thanks,
>
> Maxim Khutornenko
>
>
Re: Review Request 32541: Adding client Kerberos support.
Posted by Kevin Sweeney <ke...@apache.org>.
-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/32541/#review79766
-----------------------------------------------------------
src/main/python/apache/aurora/client/api/scheduler_client.py
<https://reviews.apache.org/r/32541/#comment129300>
nit: trailing comma here
src/main/python/apache/aurora/common/auth/BUILD
<https://reviews.apache.org/r/32541/#comment129302>
rename this target to match its module name?
src/main/python/apache/aurora/common/auth/auth_module_manager.py
<https://reviews.apache.org/r/32541/#comment129305>
Does this work in the non-kerberized client? Don't see anything calling register_auth_module()
src/main/python/apache/aurora/common/transport.py
<https://reviews.apache.org/r/32541/#comment129301>
missing a :type auth: doc - should be on separate line
see https://www.jetbrains.com/pycharm/help/type-hinting-in-pycharm.html#d269326e180
- Kevin Sweeney
On April 10, 2015, 3:45 p.m., Maxim Khutornenko wrote:
>
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/32541/
> -----------------------------------------------------------
>
> (Updated April 10, 2015, 3:45 p.m.)
>
>
> Review request for Aurora, Kevin Sweeney and Brian Wickman.
>
>
> Bugs: AURORA-813
> https://issues.apache.org/jira/browse/AURORA-813
>
>
> Repository: aurora
>
>
> Description
> -------
>
> First take on client kerberos support. The idea is to repurpose the existing auth_module system to support both legacy and kerberos during the deprecation period. This way the 0.8.0 client will be able to talk to pre-0.8.0 scheduler and use SessionKey-based authorization. Later (in 0.9.0), the payload() will be removed along with SessionKey (AURORA-1229). That will let us get rid of SchedulerProxy (or reduce it substantially). The auth_module might stay though to support other auth plugins (e.g. requests-ntlm or requests-oauthlib).
>
> TODO: integration e2e tests once scheduler side lands.
>
>
> Diffs
> -----
>
> 3rdparty/python/requirements.txt 11a307cdb476ebcc25ab5c6b555bed29241ea988
> examples/vagrant/aurorabuild.sh f11488a3bd04c300e2772831c4926de75053eb3f
> examples/vagrant/clusters_kerberos.json PRE-CREATION
> examples/vagrant/upstart/aurora-scheduler-kerberos.conf 0a809e8e0301fdb825d0d50ab2c636522fea9163
> src/main/python/apache/aurora/admin/BUILD c51a90b08efa39e517c1ae06fe53daa013c94971
> src/main/python/apache/aurora/admin/aurora_admin.py f9e8f3d19a2d861cd20aaba88455579cd8fd22ee
> src/main/python/apache/aurora/client/api/__init__.py a81329f6f947bbea4001c3a521c1923410a51eab
> src/main/python/apache/aurora/client/api/scheduler_client.py 95e553427492407743dcac31d70f392a7c1bbc02
> src/main/python/apache/aurora/client/cli/BUILD 3ab41cc26b04371e7df09983ff4c4d003988cd28
> src/main/python/apache/aurora/client/cli/client.py 24516d114db1743cdf600c542a27fcf5b68053a0
> src/main/python/apache/aurora/common/auth/BUILD 966484627dab90e7606f1fc638cd0e159aee3317
> src/main/python/apache/aurora/common/auth/__init__.py 3119fd63d3dfa28f93f219b23030059580fed098
> src/main/python/apache/aurora/common/auth/auth_module.py 5f4116ef4cfbc407e0c50dc938870fb14e2299b4
> src/main/python/apache/aurora/common/auth/auth_module_manager.py 73a8e5cd51edf694b971cd2c298ff406aff8c6d7
> src/main/python/apache/aurora/common/auth/kerberos.py PRE-CREATION
> src/main/python/apache/aurora/common/transport.py 395f8a94d9a27aad00166a17f2528a8c0833ffdd
> src/test/python/apache/aurora/client/api/test_scheduler_client.py 0a6194831c332a96eab62b869c4e05cfa9def058
> src/test/python/apache/aurora/common/test_transport.py b78e0b3badfbbeecefff7b5954f3796cef4da9d8
> src/test/sh/org/apache/aurora/e2e/test_kerberos_end_to_end.sh 47d22eeacef06c999dda984f6d1ed22e5ab0c417
>
> Diff: https://reviews.apache.org/r/32541/diff/
>
>
> Testing
> -------
>
> ./pants test.pytest --no-fast src/test/python:all
> ./src/test/sh/org/apache/aurora/e2e/test_end_to_end.sh
>
>
> Thanks,
>
> Maxim Khutornenko
>
>
Re: Review Request 32541: Adding client Kerberos support.
Posted by Aurora ReviewBot <wf...@apache.org>.
-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/32541/#review79770
-----------------------------------------------------------
Ship it!
Master (084a622) is green with this patch.
./build-support/jenkins/build.sh
I will refresh this build result if you post a review containing "@ReviewBot retry"
- Aurora ReviewBot
On April 10, 2015, 10:45 p.m., Maxim Khutornenko wrote:
>
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/32541/
> -----------------------------------------------------------
>
> (Updated April 10, 2015, 10:45 p.m.)
>
>
> Review request for Aurora, Kevin Sweeney and Brian Wickman.
>
>
> Bugs: AURORA-813
> https://issues.apache.org/jira/browse/AURORA-813
>
>
> Repository: aurora
>
>
> Description
> -------
>
> First take on client kerberos support. The idea is to repurpose the existing auth_module system to support both legacy and kerberos during the deprecation period. This way the 0.8.0 client will be able to talk to pre-0.8.0 scheduler and use SessionKey-based authorization. Later (in 0.9.0), the payload() will be removed along with SessionKey (AURORA-1229). That will let us get rid of SchedulerProxy (or reduce it substantially). The auth_module might stay though to support other auth plugins (e.g. requests-ntlm or requests-oauthlib).
>
> TODO: integration e2e tests once scheduler side lands.
>
>
> Diffs
> -----
>
> 3rdparty/python/requirements.txt 11a307cdb476ebcc25ab5c6b555bed29241ea988
> examples/vagrant/aurorabuild.sh f11488a3bd04c300e2772831c4926de75053eb3f
> examples/vagrant/clusters_kerberos.json PRE-CREATION
> examples/vagrant/upstart/aurora-scheduler-kerberos.conf 0a809e8e0301fdb825d0d50ab2c636522fea9163
> src/main/python/apache/aurora/admin/BUILD c51a90b08efa39e517c1ae06fe53daa013c94971
> src/main/python/apache/aurora/admin/aurora_admin.py f9e8f3d19a2d861cd20aaba88455579cd8fd22ee
> src/main/python/apache/aurora/client/api/__init__.py a81329f6f947bbea4001c3a521c1923410a51eab
> src/main/python/apache/aurora/client/api/scheduler_client.py 95e553427492407743dcac31d70f392a7c1bbc02
> src/main/python/apache/aurora/client/cli/BUILD 3ab41cc26b04371e7df09983ff4c4d003988cd28
> src/main/python/apache/aurora/client/cli/client.py 24516d114db1743cdf600c542a27fcf5b68053a0
> src/main/python/apache/aurora/common/auth/BUILD 966484627dab90e7606f1fc638cd0e159aee3317
> src/main/python/apache/aurora/common/auth/__init__.py 3119fd63d3dfa28f93f219b23030059580fed098
> src/main/python/apache/aurora/common/auth/auth_module.py 5f4116ef4cfbc407e0c50dc938870fb14e2299b4
> src/main/python/apache/aurora/common/auth/auth_module_manager.py 73a8e5cd51edf694b971cd2c298ff406aff8c6d7
> src/main/python/apache/aurora/common/auth/kerberos.py PRE-CREATION
> src/main/python/apache/aurora/common/transport.py 395f8a94d9a27aad00166a17f2528a8c0833ffdd
> src/test/python/apache/aurora/client/api/test_scheduler_client.py 0a6194831c332a96eab62b869c4e05cfa9def058
> src/test/python/apache/aurora/common/test_transport.py b78e0b3badfbbeecefff7b5954f3796cef4da9d8
> src/test/sh/org/apache/aurora/e2e/test_kerberos_end_to_end.sh 47d22eeacef06c999dda984f6d1ed22e5ab0c417
>
> Diff: https://reviews.apache.org/r/32541/diff/
>
>
> Testing
> -------
>
> ./pants test.pytest --no-fast src/test/python:all
> ./src/test/sh/org/apache/aurora/e2e/test_end_to_end.sh
>
>
> Thanks,
>
> Maxim Khutornenko
>
>
Re: Review Request 32541: Adding client Kerberos support.
Posted by Kevin Sweeney <ke...@apache.org>.
-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/32541/#review79784
-----------------------------------------------------------
Ship it!
Ship It!
- Kevin Sweeney
On April 10, 2015, 4:42 p.m., Maxim Khutornenko wrote:
>
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/32541/
> -----------------------------------------------------------
>
> (Updated April 10, 2015, 4:42 p.m.)
>
>
> Review request for Aurora, Kevin Sweeney and Brian Wickman.
>
>
> Bugs: AURORA-813
> https://issues.apache.org/jira/browse/AURORA-813
>
>
> Repository: aurora
>
>
> Description
> -------
>
> First take on client kerberos support. The idea is to repurpose the existing auth_module system to support both legacy and kerberos during the deprecation period. This way the 0.8.0 client will be able to talk to pre-0.8.0 scheduler and use SessionKey-based authorization. Later (in 0.9.0), the payload() will be removed along with SessionKey (AURORA-1229). That will let us get rid of SchedulerProxy (or reduce it substantially). The auth_module might stay though to support other auth plugins (e.g. requests-ntlm or requests-oauthlib).
>
> TODO: integration e2e tests once scheduler side lands.
>
>
> Diffs
> -----
>
> 3rdparty/python/requirements.txt 11a307cdb476ebcc25ab5c6b555bed29241ea988
> examples/vagrant/aurorabuild.sh f11488a3bd04c300e2772831c4926de75053eb3f
> examples/vagrant/clusters_kerberos.json PRE-CREATION
> examples/vagrant/upstart/aurora-scheduler-kerberos.conf 0a809e8e0301fdb825d0d50ab2c636522fea9163
> src/main/python/apache/aurora/admin/BUILD c51a90b08efa39e517c1ae06fe53daa013c94971
> src/main/python/apache/aurora/admin/aurora_admin.py f9e8f3d19a2d861cd20aaba88455579cd8fd22ee
> src/main/python/apache/aurora/client/api/__init__.py a81329f6f947bbea4001c3a521c1923410a51eab
> src/main/python/apache/aurora/client/api/scheduler_client.py 95e553427492407743dcac31d70f392a7c1bbc02
> src/main/python/apache/aurora/client/cli/BUILD 3ab41cc26b04371e7df09983ff4c4d003988cd28
> src/main/python/apache/aurora/client/cli/client.py 24516d114db1743cdf600c542a27fcf5b68053a0
> src/main/python/apache/aurora/common/auth/BUILD 966484627dab90e7606f1fc638cd0e159aee3317
> src/main/python/apache/aurora/common/auth/__init__.py 3119fd63d3dfa28f93f219b23030059580fed098
> src/main/python/apache/aurora/common/auth/auth_module.py 5f4116ef4cfbc407e0c50dc938870fb14e2299b4
> src/main/python/apache/aurora/common/auth/auth_module_manager.py 73a8e5cd51edf694b971cd2c298ff406aff8c6d7
> src/main/python/apache/aurora/common/auth/kerberos.py PRE-CREATION
> src/main/python/apache/aurora/common/transport.py 395f8a94d9a27aad00166a17f2528a8c0833ffdd
> src/test/python/apache/aurora/client/api/test_scheduler_client.py 0a6194831c332a96eab62b869c4e05cfa9def058
> src/test/python/apache/aurora/common/test_transport.py b78e0b3badfbbeecefff7b5954f3796cef4da9d8
> src/test/sh/org/apache/aurora/e2e/test_kerberos_end_to_end.sh 47d22eeacef06c999dda984f6d1ed22e5ab0c417
>
> Diff: https://reviews.apache.org/r/32541/diff/
>
>
> Testing
> -------
>
> ./pants test.pytest --no-fast src/test/python:all
> ./src/test/sh/org/apache/aurora/e2e/test_end_to_end.sh
>
>
> Thanks,
>
> Maxim Khutornenko
>
>
Re: Review Request 32541: Adding client Kerberos support.
Posted by Aurora ReviewBot <wf...@apache.org>.
-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/32541/#review79785
-----------------------------------------------------------
Ship it!
Master (084a622) is green with this patch.
./build-support/jenkins/build.sh
I will refresh this build result if you post a review containing "@ReviewBot retry"
- Aurora ReviewBot
On April 10, 2015, 11:42 p.m., Maxim Khutornenko wrote:
>
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/32541/
> -----------------------------------------------------------
>
> (Updated April 10, 2015, 11:42 p.m.)
>
>
> Review request for Aurora, Kevin Sweeney and Brian Wickman.
>
>
> Bugs: AURORA-813
> https://issues.apache.org/jira/browse/AURORA-813
>
>
> Repository: aurora
>
>
> Description
> -------
>
> First take on client kerberos support. The idea is to repurpose the existing auth_module system to support both legacy and kerberos during the deprecation period. This way the 0.8.0 client will be able to talk to pre-0.8.0 scheduler and use SessionKey-based authorization. Later (in 0.9.0), the payload() will be removed along with SessionKey (AURORA-1229). That will let us get rid of SchedulerProxy (or reduce it substantially). The auth_module might stay though to support other auth plugins (e.g. requests-ntlm or requests-oauthlib).
>
> TODO: integration e2e tests once scheduler side lands.
>
>
> Diffs
> -----
>
> 3rdparty/python/requirements.txt 11a307cdb476ebcc25ab5c6b555bed29241ea988
> examples/vagrant/aurorabuild.sh f11488a3bd04c300e2772831c4926de75053eb3f
> examples/vagrant/clusters_kerberos.json PRE-CREATION
> examples/vagrant/upstart/aurora-scheduler-kerberos.conf 0a809e8e0301fdb825d0d50ab2c636522fea9163
> src/main/python/apache/aurora/admin/BUILD c51a90b08efa39e517c1ae06fe53daa013c94971
> src/main/python/apache/aurora/admin/aurora_admin.py f9e8f3d19a2d861cd20aaba88455579cd8fd22ee
> src/main/python/apache/aurora/client/api/__init__.py a81329f6f947bbea4001c3a521c1923410a51eab
> src/main/python/apache/aurora/client/api/scheduler_client.py 95e553427492407743dcac31d70f392a7c1bbc02
> src/main/python/apache/aurora/client/cli/BUILD 3ab41cc26b04371e7df09983ff4c4d003988cd28
> src/main/python/apache/aurora/client/cli/client.py 24516d114db1743cdf600c542a27fcf5b68053a0
> src/main/python/apache/aurora/common/auth/BUILD 966484627dab90e7606f1fc638cd0e159aee3317
> src/main/python/apache/aurora/common/auth/__init__.py 3119fd63d3dfa28f93f219b23030059580fed098
> src/main/python/apache/aurora/common/auth/auth_module.py 5f4116ef4cfbc407e0c50dc938870fb14e2299b4
> src/main/python/apache/aurora/common/auth/auth_module_manager.py 73a8e5cd51edf694b971cd2c298ff406aff8c6d7
> src/main/python/apache/aurora/common/auth/kerberos.py PRE-CREATION
> src/main/python/apache/aurora/common/transport.py 395f8a94d9a27aad00166a17f2528a8c0833ffdd
> src/test/python/apache/aurora/client/api/test_scheduler_client.py 0a6194831c332a96eab62b869c4e05cfa9def058
> src/test/python/apache/aurora/common/test_transport.py b78e0b3badfbbeecefff7b5954f3796cef4da9d8
> src/test/sh/org/apache/aurora/e2e/test_kerberos_end_to_end.sh 47d22eeacef06c999dda984f6d1ed22e5ab0c417
>
> Diff: https://reviews.apache.org/r/32541/diff/
>
>
> Testing
> -------
>
> ./pants test.pytest --no-fast src/test/python:all
> ./src/test/sh/org/apache/aurora/e2e/test_end_to_end.sh
>
>
> Thanks,
>
> Maxim Khutornenko
>
>
Re: Review Request 32541: Adding client Kerberos support.
Posted by Maxim Khutornenko <ma...@apache.org>.
-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/32541/
-----------------------------------------------------------
(Updated April 10, 2015, 11:42 p.m.)
Review request for Aurora, Kevin Sweeney and Brian Wickman.
Changes
-------
Kevin's comments.
Bugs: AURORA-813
https://issues.apache.org/jira/browse/AURORA-813
Repository: aurora
Description
-------
First take on client kerberos support. The idea is to repurpose the existing auth_module system to support both legacy and kerberos during the deprecation period. This way the 0.8.0 client will be able to talk to pre-0.8.0 scheduler and use SessionKey-based authorization. Later (in 0.9.0), the payload() will be removed along with SessionKey (AURORA-1229). That will let us get rid of SchedulerProxy (or reduce it substantially). The auth_module might stay though to support other auth plugins (e.g. requests-ntlm or requests-oauthlib).
TODO: integration e2e tests once scheduler side lands.
Diffs (updated)
-----
3rdparty/python/requirements.txt 11a307cdb476ebcc25ab5c6b555bed29241ea988
examples/vagrant/aurorabuild.sh f11488a3bd04c300e2772831c4926de75053eb3f
examples/vagrant/clusters_kerberos.json PRE-CREATION
examples/vagrant/upstart/aurora-scheduler-kerberos.conf 0a809e8e0301fdb825d0d50ab2c636522fea9163
src/main/python/apache/aurora/admin/BUILD c51a90b08efa39e517c1ae06fe53daa013c94971
src/main/python/apache/aurora/admin/aurora_admin.py f9e8f3d19a2d861cd20aaba88455579cd8fd22ee
src/main/python/apache/aurora/client/api/__init__.py a81329f6f947bbea4001c3a521c1923410a51eab
src/main/python/apache/aurora/client/api/scheduler_client.py 95e553427492407743dcac31d70f392a7c1bbc02
src/main/python/apache/aurora/client/cli/BUILD 3ab41cc26b04371e7df09983ff4c4d003988cd28
src/main/python/apache/aurora/client/cli/client.py 24516d114db1743cdf600c542a27fcf5b68053a0
src/main/python/apache/aurora/common/auth/BUILD 966484627dab90e7606f1fc638cd0e159aee3317
src/main/python/apache/aurora/common/auth/__init__.py 3119fd63d3dfa28f93f219b23030059580fed098
src/main/python/apache/aurora/common/auth/auth_module.py 5f4116ef4cfbc407e0c50dc938870fb14e2299b4
src/main/python/apache/aurora/common/auth/auth_module_manager.py 73a8e5cd51edf694b971cd2c298ff406aff8c6d7
src/main/python/apache/aurora/common/auth/kerberos.py PRE-CREATION
src/main/python/apache/aurora/common/transport.py 395f8a94d9a27aad00166a17f2528a8c0833ffdd
src/test/python/apache/aurora/client/api/test_scheduler_client.py 0a6194831c332a96eab62b869c4e05cfa9def058
src/test/python/apache/aurora/common/test_transport.py b78e0b3badfbbeecefff7b5954f3796cef4da9d8
src/test/sh/org/apache/aurora/e2e/test_kerberos_end_to_end.sh 47d22eeacef06c999dda984f6d1ed22e5ab0c417
Diff: https://reviews.apache.org/r/32541/diff/
Testing
-------
./pants test.pytest --no-fast src/test/python:all
./src/test/sh/org/apache/aurora/e2e/test_end_to_end.sh
Thanks,
Maxim Khutornenko
Re: Review Request 32541: Adding client Kerberos support.
Posted by Maxim Khutornenko <ma...@apache.org>.
-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/32541/
-----------------------------------------------------------
(Updated April 10, 2015, 10:45 p.m.)
Review request for Aurora, Kevin Sweeney and Brian Wickman.
Changes
-------
Rebased.
Bugs: AURORA-813
https://issues.apache.org/jira/browse/AURORA-813
Repository: aurora
Description
-------
First take on client kerberos support. The idea is to repurpose the existing auth_module system to support both legacy and kerberos during the deprecation period. This way the 0.8.0 client will be able to talk to pre-0.8.0 scheduler and use SessionKey-based authorization. Later (in 0.9.0), the payload() will be removed along with SessionKey (AURORA-1229). That will let us get rid of SchedulerProxy (or reduce it substantially). The auth_module might stay though to support other auth plugins (e.g. requests-ntlm or requests-oauthlib).
TODO: integration e2e tests once scheduler side lands.
Diffs (updated)
-----
3rdparty/python/requirements.txt 11a307cdb476ebcc25ab5c6b555bed29241ea988
examples/vagrant/aurorabuild.sh f11488a3bd04c300e2772831c4926de75053eb3f
examples/vagrant/clusters_kerberos.json PRE-CREATION
examples/vagrant/upstart/aurora-scheduler-kerberos.conf 0a809e8e0301fdb825d0d50ab2c636522fea9163
src/main/python/apache/aurora/admin/BUILD c51a90b08efa39e517c1ae06fe53daa013c94971
src/main/python/apache/aurora/admin/aurora_admin.py f9e8f3d19a2d861cd20aaba88455579cd8fd22ee
src/main/python/apache/aurora/client/api/__init__.py a81329f6f947bbea4001c3a521c1923410a51eab
src/main/python/apache/aurora/client/api/scheduler_client.py 95e553427492407743dcac31d70f392a7c1bbc02
src/main/python/apache/aurora/client/cli/BUILD 3ab41cc26b04371e7df09983ff4c4d003988cd28
src/main/python/apache/aurora/client/cli/client.py 24516d114db1743cdf600c542a27fcf5b68053a0
src/main/python/apache/aurora/common/auth/BUILD 966484627dab90e7606f1fc638cd0e159aee3317
src/main/python/apache/aurora/common/auth/__init__.py 3119fd63d3dfa28f93f219b23030059580fed098
src/main/python/apache/aurora/common/auth/auth_module.py 5f4116ef4cfbc407e0c50dc938870fb14e2299b4
src/main/python/apache/aurora/common/auth/auth_module_manager.py 73a8e5cd51edf694b971cd2c298ff406aff8c6d7
src/main/python/apache/aurora/common/auth/kerberos.py PRE-CREATION
src/main/python/apache/aurora/common/transport.py 395f8a94d9a27aad00166a17f2528a8c0833ffdd
src/test/python/apache/aurora/client/api/test_scheduler_client.py 0a6194831c332a96eab62b869c4e05cfa9def058
src/test/python/apache/aurora/common/test_transport.py b78e0b3badfbbeecefff7b5954f3796cef4da9d8
src/test/sh/org/apache/aurora/e2e/test_kerberos_end_to_end.sh 47d22eeacef06c999dda984f6d1ed22e5ab0c417
Diff: https://reviews.apache.org/r/32541/diff/
Testing
-------
./pants test.pytest --no-fast src/test/python:all
./src/test/sh/org/apache/aurora/e2e/test_end_to_end.sh
Thanks,
Maxim Khutornenko
Re: Review Request 32541: Adding client Kerberos support.
Posted by Aurora ReviewBot <wf...@apache.org>.
-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/32541/#review79765
-----------------------------------------------------------
This patch does not apply cleanly on master (084a622), do you need to rebase?
I will refresh this build result if you post a review containing "@ReviewBot retry"
- Aurora ReviewBot
On April 10, 2015, 10:38 p.m., Maxim Khutornenko wrote:
>
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/32541/
> -----------------------------------------------------------
>
> (Updated April 10, 2015, 10:38 p.m.)
>
>
> Review request for Aurora, Kevin Sweeney and Brian Wickman.
>
>
> Bugs: AURORA-813
> https://issues.apache.org/jira/browse/AURORA-813
>
>
> Repository: aurora
>
>
> Description
> -------
>
> First take on client kerberos support. The idea is to repurpose the existing auth_module system to support both legacy and kerberos during the deprecation period. This way the 0.8.0 client will be able to talk to pre-0.8.0 scheduler and use SessionKey-based authorization. Later (in 0.9.0), the payload() will be removed along with SessionKey (AURORA-1229). That will let us get rid of SchedulerProxy (or reduce it substantially). The auth_module might stay though to support other auth plugins (e.g. requests-ntlm or requests-oauthlib).
>
> TODO: integration e2e tests once scheduler side lands.
>
>
> Diffs
> -----
>
> 3rdparty/python/requirements.txt 11a307cdb476ebcc25ab5c6b555bed29241ea988
> examples/vagrant/aurorabuild.sh 7dc9777c054a8f8a98059f263c49ba2e3e6d7207
> examples/vagrant/clusters_kerberos.json PRE-CREATION
> examples/vagrant/upstart/aurora-scheduler-kerberos.conf 0a809e8e0301fdb825d0d50ab2c636522fea9163
> src/main/python/apache/aurora/admin/BUILD 84305f92a34564e9e8abec9250addb85141bde67
> src/main/python/apache/aurora/admin/aurora_admin.py f9e8f3d19a2d861cd20aaba88455579cd8fd22ee
> src/main/python/apache/aurora/client/api/__init__.py a81329f6f947bbea4001c3a521c1923410a51eab
> src/main/python/apache/aurora/client/api/scheduler_client.py 95e553427492407743dcac31d70f392a7c1bbc02
> src/main/python/apache/aurora/client/cli/BUILD c6b4e8a09d1315cf5defee2155a6e0c697892a30
> src/main/python/apache/aurora/client/cli/client.py 24516d114db1743cdf600c542a27fcf5b68053a0
> src/main/python/apache/aurora/common/auth/BUILD 966484627dab90e7606f1fc638cd0e159aee3317
> src/main/python/apache/aurora/common/auth/__init__.py 3119fd63d3dfa28f93f219b23030059580fed098
> src/main/python/apache/aurora/common/auth/auth_module.py 5f4116ef4cfbc407e0c50dc938870fb14e2299b4
> src/main/python/apache/aurora/common/auth/auth_module_manager.py 73a8e5cd51edf694b971cd2c298ff406aff8c6d7
> src/main/python/apache/aurora/common/auth/kerberos.py PRE-CREATION
> src/main/python/apache/aurora/common/transport.py 395f8a94d9a27aad00166a17f2528a8c0833ffdd
> src/test/python/apache/aurora/client/api/test_scheduler_client.py 0a6194831c332a96eab62b869c4e05cfa9def058
> src/test/python/apache/aurora/common/test_transport.py b78e0b3badfbbeecefff7b5954f3796cef4da9d8
> src/test/sh/org/apache/aurora/e2e/test_kerberos_end_to_end.sh 47d22eeacef06c999dda984f6d1ed22e5ab0c417
>
> Diff: https://reviews.apache.org/r/32541/diff/
>
>
> Testing
> -------
>
> ./pants test.pytest --no-fast src/test/python:all
> ./src/test/sh/org/apache/aurora/e2e/test_end_to_end.sh
>
>
> Thanks,
>
> Maxim Khutornenko
>
>
Re: Review Request 32541: Adding client Kerberos support.
Posted by Maxim Khutornenko <ma...@apache.org>.
-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/32541/
-----------------------------------------------------------
(Updated April 10, 2015, 10:38 p.m.)
Review request for Aurora, Kevin Sweeney and Brian Wickman.
Changes
-------
Adding e2e tests. Also, realized admin needs to be "kerberized" as well.
Bugs: AURORA-813
https://issues.apache.org/jira/browse/AURORA-813
Repository: aurora
Description
-------
First take on client kerberos support. The idea is to repurpose the existing auth_module system to support both legacy and kerberos during the deprecation period. This way the 0.8.0 client will be able to talk to pre-0.8.0 scheduler and use SessionKey-based authorization. Later (in 0.9.0), the payload() will be removed along with SessionKey (AURORA-1229). That will let us get rid of SchedulerProxy (or reduce it substantially). The auth_module might stay though to support other auth plugins (e.g. requests-ntlm or requests-oauthlib).
TODO: integration e2e tests once scheduler side lands.
Diffs (updated)
-----
3rdparty/python/requirements.txt 11a307cdb476ebcc25ab5c6b555bed29241ea988
examples/vagrant/aurorabuild.sh 7dc9777c054a8f8a98059f263c49ba2e3e6d7207
examples/vagrant/clusters_kerberos.json PRE-CREATION
examples/vagrant/upstart/aurora-scheduler-kerberos.conf 0a809e8e0301fdb825d0d50ab2c636522fea9163
src/main/python/apache/aurora/admin/BUILD 84305f92a34564e9e8abec9250addb85141bde67
src/main/python/apache/aurora/admin/aurora_admin.py f9e8f3d19a2d861cd20aaba88455579cd8fd22ee
src/main/python/apache/aurora/client/api/__init__.py a81329f6f947bbea4001c3a521c1923410a51eab
src/main/python/apache/aurora/client/api/scheduler_client.py 95e553427492407743dcac31d70f392a7c1bbc02
src/main/python/apache/aurora/client/cli/BUILD c6b4e8a09d1315cf5defee2155a6e0c697892a30
src/main/python/apache/aurora/client/cli/client.py 24516d114db1743cdf600c542a27fcf5b68053a0
src/main/python/apache/aurora/common/auth/BUILD 966484627dab90e7606f1fc638cd0e159aee3317
src/main/python/apache/aurora/common/auth/__init__.py 3119fd63d3dfa28f93f219b23030059580fed098
src/main/python/apache/aurora/common/auth/auth_module.py 5f4116ef4cfbc407e0c50dc938870fb14e2299b4
src/main/python/apache/aurora/common/auth/auth_module_manager.py 73a8e5cd51edf694b971cd2c298ff406aff8c6d7
src/main/python/apache/aurora/common/auth/kerberos.py PRE-CREATION
src/main/python/apache/aurora/common/transport.py 395f8a94d9a27aad00166a17f2528a8c0833ffdd
src/test/python/apache/aurora/client/api/test_scheduler_client.py 0a6194831c332a96eab62b869c4e05cfa9def058
src/test/python/apache/aurora/common/test_transport.py b78e0b3badfbbeecefff7b5954f3796cef4da9d8
src/test/sh/org/apache/aurora/e2e/test_kerberos_end_to_end.sh 47d22eeacef06c999dda984f6d1ed22e5ab0c417
Diff: https://reviews.apache.org/r/32541/diff/
Testing
-------
./pants test.pytest --no-fast src/test/python:all
./src/test/sh/org/apache/aurora/e2e/test_end_to_end.sh
Thanks,
Maxim Khutornenko
Re: Review Request 32541: Adding client Kerberos support.
Posted by Maxim Khutornenko <ma...@apache.org>.
-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/32541/#review78951
-----------------------------------------------------------
Ping Brian.
- Maxim Khutornenko
On April 2, 2015, 5:33 p.m., Maxim Khutornenko wrote:
>
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/32541/
> -----------------------------------------------------------
>
> (Updated April 2, 2015, 5:33 p.m.)
>
>
> Review request for Aurora, Kevin Sweeney and Brian Wickman.
>
>
> Bugs: AURORA-813
> https://issues.apache.org/jira/browse/AURORA-813
>
>
> Repository: aurora
>
>
> Description
> -------
>
> First take on client kerberos support. The idea is to repurpose the existing auth_module system to support both legacy and kerberos during the deprecation period. This way the 0.8.0 client will be able to talk to pre-0.8.0 scheduler and use SessionKey-based authorization. Later (in 0.9.0), the payload() will be removed along with SessionKey (AURORA-1229). That will let us get rid of SchedulerProxy (or reduce it substantially). The auth_module might stay though to support other auth plugins (e.g. requests-ntlm or requests-oauthlib).
>
> TODO: integration e2e tests once scheduler side lands.
>
>
> Diffs
> -----
>
> 3rdparty/python/requirements.txt 11a307cdb476ebcc25ab5c6b555bed29241ea988
> src/main/python/apache/aurora/client/api/__init__.py a81329f6f947bbea4001c3a521c1923410a51eab
> src/main/python/apache/aurora/client/api/scheduler_client.py 95e553427492407743dcac31d70f392a7c1bbc02
> src/main/python/apache/aurora/client/cli/BUILD c6b4e8a09d1315cf5defee2155a6e0c697892a30
> src/main/python/apache/aurora/client/cli/client.py 24516d114db1743cdf600c542a27fcf5b68053a0
> src/main/python/apache/aurora/common/auth/BUILD 966484627dab90e7606f1fc638cd0e159aee3317
> src/main/python/apache/aurora/common/auth/__init__.py 3119fd63d3dfa28f93f219b23030059580fed098
> src/main/python/apache/aurora/common/auth/auth_module.py 5f4116ef4cfbc407e0c50dc938870fb14e2299b4
> src/main/python/apache/aurora/common/auth/auth_module_manager.py 73a8e5cd51edf694b971cd2c298ff406aff8c6d7
> src/main/python/apache/aurora/common/auth/kerberos.py PRE-CREATION
> src/main/python/apache/aurora/common/transport.py 395f8a94d9a27aad00166a17f2528a8c0833ffdd
> src/test/python/apache/aurora/client/api/test_scheduler_client.py 0a6194831c332a96eab62b869c4e05cfa9def058
> src/test/python/apache/aurora/common/test_transport.py b78e0b3badfbbeecefff7b5954f3796cef4da9d8
>
> Diff: https://reviews.apache.org/r/32541/diff/
>
>
> Testing
> -------
>
> ./pants test.pytest --no-fast src/test/python:all
> ./src/test/sh/org/apache/aurora/e2e/test_end_to_end.sh
>
>
> Thanks,
>
> Maxim Khutornenko
>
>
Re: Review Request 32541: Adding client Kerberos support.
Posted by Brian Wickman <wi...@apache.org>.
-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/32541/#review79200
-----------------------------------------------------------
Ship it!
- Brian Wickman
On April 2, 2015, 5:33 p.m., Maxim Khutornenko wrote:
>
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/32541/
> -----------------------------------------------------------
>
> (Updated April 2, 2015, 5:33 p.m.)
>
>
> Review request for Aurora, Kevin Sweeney and Brian Wickman.
>
>
> Bugs: AURORA-813
> https://issues.apache.org/jira/browse/AURORA-813
>
>
> Repository: aurora
>
>
> Description
> -------
>
> First take on client kerberos support. The idea is to repurpose the existing auth_module system to support both legacy and kerberos during the deprecation period. This way the 0.8.0 client will be able to talk to pre-0.8.0 scheduler and use SessionKey-based authorization. Later (in 0.9.0), the payload() will be removed along with SessionKey (AURORA-1229). That will let us get rid of SchedulerProxy (or reduce it substantially). The auth_module might stay though to support other auth plugins (e.g. requests-ntlm or requests-oauthlib).
>
> TODO: integration e2e tests once scheduler side lands.
>
>
> Diffs
> -----
>
> 3rdparty/python/requirements.txt 11a307cdb476ebcc25ab5c6b555bed29241ea988
> src/main/python/apache/aurora/client/api/__init__.py a81329f6f947bbea4001c3a521c1923410a51eab
> src/main/python/apache/aurora/client/api/scheduler_client.py 95e553427492407743dcac31d70f392a7c1bbc02
> src/main/python/apache/aurora/client/cli/BUILD c6b4e8a09d1315cf5defee2155a6e0c697892a30
> src/main/python/apache/aurora/client/cli/client.py 24516d114db1743cdf600c542a27fcf5b68053a0
> src/main/python/apache/aurora/common/auth/BUILD 966484627dab90e7606f1fc638cd0e159aee3317
> src/main/python/apache/aurora/common/auth/__init__.py 3119fd63d3dfa28f93f219b23030059580fed098
> src/main/python/apache/aurora/common/auth/auth_module.py 5f4116ef4cfbc407e0c50dc938870fb14e2299b4
> src/main/python/apache/aurora/common/auth/auth_module_manager.py 73a8e5cd51edf694b971cd2c298ff406aff8c6d7
> src/main/python/apache/aurora/common/auth/kerberos.py PRE-CREATION
> src/main/python/apache/aurora/common/transport.py 395f8a94d9a27aad00166a17f2528a8c0833ffdd
> src/test/python/apache/aurora/client/api/test_scheduler_client.py 0a6194831c332a96eab62b869c4e05cfa9def058
> src/test/python/apache/aurora/common/test_transport.py b78e0b3badfbbeecefff7b5954f3796cef4da9d8
>
> Diff: https://reviews.apache.org/r/32541/diff/
>
>
> Testing
> -------
>
> ./pants test.pytest --no-fast src/test/python:all
> ./src/test/sh/org/apache/aurora/e2e/test_end_to_end.sh
>
>
> Thanks,
>
> Maxim Khutornenko
>
>
Re: Review Request 32541: Adding client Kerberos support.
Posted by Maxim Khutornenko <ma...@apache.org>.
-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/32541/
-----------------------------------------------------------
(Updated April 2, 2015, 5:33 p.m.)
Review request for Aurora, Kevin Sweeney and Brian Wickman.
Changes
-------
Modified BUILD target to exclude kerberos module from a non-secure client.
Bugs: AURORA-813
https://issues.apache.org/jira/browse/AURORA-813
Repository: aurora
Description
-------
First take on client kerberos support. The idea is to repurpose the existing auth_module system to support both legacy and kerberos during the deprecation period. This way the 0.8.0 client will be able to talk to pre-0.8.0 scheduler and use SessionKey-based authorization. Later (in 0.9.0), the payload() will be removed along with SessionKey (AURORA-1229). That will let us get rid of SchedulerProxy (or reduce it substantially). The auth_module might stay though to support other auth plugins (e.g. requests-ntlm or requests-oauthlib).
TODO: integration e2e tests once scheduler side lands.
Diffs (updated)
-----
3rdparty/python/requirements.txt 11a307cdb476ebcc25ab5c6b555bed29241ea988
src/main/python/apache/aurora/client/api/__init__.py a81329f6f947bbea4001c3a521c1923410a51eab
src/main/python/apache/aurora/client/api/scheduler_client.py 95e553427492407743dcac31d70f392a7c1bbc02
src/main/python/apache/aurora/client/cli/BUILD c6b4e8a09d1315cf5defee2155a6e0c697892a30
src/main/python/apache/aurora/client/cli/client.py 24516d114db1743cdf600c542a27fcf5b68053a0
src/main/python/apache/aurora/common/auth/BUILD 966484627dab90e7606f1fc638cd0e159aee3317
src/main/python/apache/aurora/common/auth/__init__.py 3119fd63d3dfa28f93f219b23030059580fed098
src/main/python/apache/aurora/common/auth/auth_module.py 5f4116ef4cfbc407e0c50dc938870fb14e2299b4
src/main/python/apache/aurora/common/auth/auth_module_manager.py 73a8e5cd51edf694b971cd2c298ff406aff8c6d7
src/main/python/apache/aurora/common/auth/kerberos.py PRE-CREATION
src/main/python/apache/aurora/common/transport.py 395f8a94d9a27aad00166a17f2528a8c0833ffdd
src/test/python/apache/aurora/client/api/test_scheduler_client.py 0a6194831c332a96eab62b869c4e05cfa9def058
src/test/python/apache/aurora/common/test_transport.py b78e0b3badfbbeecefff7b5954f3796cef4da9d8
Diff: https://reviews.apache.org/r/32541/diff/
Testing
-------
./pants test.pytest --no-fast src/test/python:all
./src/test/sh/org/apache/aurora/e2e/test_end_to_end.sh
Thanks,
Maxim Khutornenko
Re: Review Request 32541: Adding client Kerberos support.
Posted by Aurora ReviewBot <wf...@apache.org>.
-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/32541/#review78629
-----------------------------------------------------------
Master (4b9c759) is red with this patch.
./build-support/jenkins/build.sh
:check
:build
:api:assemble
:api:compileTestJava UP-TO-DATE
:api:processTestResources UP-TO-DATE
:api:testClasses UP-TO-DATE
:api:test UP-TO-DATE
:api:check UP-TO-DATE
:api:build
:buildSrc:compileJava UP-TO-DATE
:buildSrc:processResources UP-TO-DATE
:buildSrc:classes UP-TO-DATE
:buildSrc:jar
:buildSrc:assemble
:buildSrc:compileTestJava UP-TO-DATE
:buildSrc:processTestResources UP-TO-DATE
:buildSrc:testClasses UP-TO-DATE
:buildSrc:test UP-TO-DATE
:buildSrc:check UP-TO-DATE
:buildSrc:build
BUILD SUCCESSFUL
Total time: 4 mins 1.382 secs
+ export PIP_DEFAULT_TIMEOUT=60
+ PIP_DEFAULT_TIMEOUT=60
+ mkdir -p third_party
+ pip install -d third_party -r /dev/fd/63
++ grep -v mesos.native 3rdparty/python/requirements.txt
Downloading/unpacking bottle==0.11.6 (from -r /dev/fd/63 (line 1))
Saved ./third_party/bottle-0.11.6-py2.py3-none-any.whl
Downloading/unpacking CherryPy==3.6.0 (from -r /dev/fd/63 (line 2))
pip can't proceed with requirement 'CherryPy==3.6.0 (from -r /dev/fd/63 (line 2))' due to a pre-existing build directory.
location: /tmp/user/2395/pip_build_jenkins/CherryPy
This is likely due to a previous installation that failed.
pip is being responsible and not assuming it can delete this.
Please delete it and try again.
Storing debug log for failure in /home/jenkins/.pip/pip.log
I will refresh this build result if you post a review containing "@ReviewBot retry"
- Aurora ReviewBot
On April 2, 2015, 1:10 a.m., Maxim Khutornenko wrote:
>
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/32541/
> -----------------------------------------------------------
>
> (Updated April 2, 2015, 1:10 a.m.)
>
>
> Review request for Aurora, Kevin Sweeney and Brian Wickman.
>
>
> Bugs: AURORA-813
> https://issues.apache.org/jira/browse/AURORA-813
>
>
> Repository: aurora
>
>
> Description
> -------
>
> First take on client kerberos support. The idea is to repurpose the existing auth_module system to support both legacy and kerberos during the deprecation period. This way the 0.8.0 client will be able to talk to pre-0.8.0 scheduler and use SessionKey-based authorization. Later (in 0.9.0), the payload() will be removed along with SessionKey (AURORA-1229). That will let us get rid of SchedulerProxy (or reduce it substantially). The auth_module might stay though to support other auth plugins (e.g. requests-ntlm or requests-oauthlib).
>
> TODO: integration e2e tests once scheduler side lands.
>
>
> Diffs
> -----
>
> 3rdparty/python/requirements.txt 11a307cdb476ebcc25ab5c6b555bed29241ea988
> src/main/python/apache/aurora/client/api/__init__.py a81329f6f947bbea4001c3a521c1923410a51eab
> src/main/python/apache/aurora/client/api/scheduler_client.py 95e553427492407743dcac31d70f392a7c1bbc02
> src/main/python/apache/aurora/client/cli/BUILD c6b4e8a09d1315cf5defee2155a6e0c697892a30
> src/main/python/apache/aurora/client/cli/client.py 24516d114db1743cdf600c542a27fcf5b68053a0
> src/main/python/apache/aurora/common/auth/BUILD 966484627dab90e7606f1fc638cd0e159aee3317
> src/main/python/apache/aurora/common/auth/__init__.py 3119fd63d3dfa28f93f219b23030059580fed098
> src/main/python/apache/aurora/common/auth/auth_module.py 5f4116ef4cfbc407e0c50dc938870fb14e2299b4
> src/main/python/apache/aurora/common/auth/auth_module_manager.py 73a8e5cd51edf694b971cd2c298ff406aff8c6d7
> src/main/python/apache/aurora/common/auth/kerberos.py PRE-CREATION
> src/main/python/apache/aurora/common/transport.py 395f8a94d9a27aad00166a17f2528a8c0833ffdd
> src/test/python/apache/aurora/client/api/test_scheduler_client.py 0a6194831c332a96eab62b869c4e05cfa9def058
> src/test/python/apache/aurora/common/test_transport.py b78e0b3badfbbeecefff7b5954f3796cef4da9d8
>
> Diff: https://reviews.apache.org/r/32541/diff/
>
>
> Testing
> -------
>
> ./pants test.pytest --no-fast src/test/python:all
> ./src/test/sh/org/apache/aurora/e2e/test_end_to_end.sh
>
>
> Thanks,
>
> Maxim Khutornenko
>
>
Re: Review Request 32541: Adding client Kerberos support.
Posted by Maxim Khutornenko <ma...@apache.org>.
-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/32541/
-----------------------------------------------------------
(Updated April 2, 2015, 1:10 a.m.)
Review request for Aurora, Kevin Sweeney and Brian Wickman.
Changes
-------
Kevin's comments.
Bugs: AURORA-813
https://issues.apache.org/jira/browse/AURORA-813
Repository: aurora
Description
-------
First take on client kerberos support. The idea is to repurpose the existing auth_module system to support both legacy and kerberos during the deprecation period. This way the 0.8.0 client will be able to talk to pre-0.8.0 scheduler and use SessionKey-based authorization. Later (in 0.9.0), the payload() will be removed along with SessionKey (AURORA-1229). That will let us get rid of SchedulerProxy (or reduce it substantially). The auth_module might stay though to support other auth plugins (e.g. requests-ntlm or requests-oauthlib).
TODO: integration e2e tests once scheduler side lands.
Diffs (updated)
-----
3rdparty/python/requirements.txt 11a307cdb476ebcc25ab5c6b555bed29241ea988
src/main/python/apache/aurora/client/api/__init__.py a81329f6f947bbea4001c3a521c1923410a51eab
src/main/python/apache/aurora/client/api/scheduler_client.py 95e553427492407743dcac31d70f392a7c1bbc02
src/main/python/apache/aurora/client/cli/BUILD c6b4e8a09d1315cf5defee2155a6e0c697892a30
src/main/python/apache/aurora/client/cli/client.py 24516d114db1743cdf600c542a27fcf5b68053a0
src/main/python/apache/aurora/common/auth/BUILD 966484627dab90e7606f1fc638cd0e159aee3317
src/main/python/apache/aurora/common/auth/__init__.py 3119fd63d3dfa28f93f219b23030059580fed098
src/main/python/apache/aurora/common/auth/auth_module.py 5f4116ef4cfbc407e0c50dc938870fb14e2299b4
src/main/python/apache/aurora/common/auth/auth_module_manager.py 73a8e5cd51edf694b971cd2c298ff406aff8c6d7
src/main/python/apache/aurora/common/auth/kerberos.py PRE-CREATION
src/main/python/apache/aurora/common/transport.py 395f8a94d9a27aad00166a17f2528a8c0833ffdd
src/test/python/apache/aurora/client/api/test_scheduler_client.py 0a6194831c332a96eab62b869c4e05cfa9def058
src/test/python/apache/aurora/common/test_transport.py b78e0b3badfbbeecefff7b5954f3796cef4da9d8
Diff: https://reviews.apache.org/r/32541/diff/
Testing
-------
./pants test.pytest --no-fast src/test/python:all
./src/test/sh/org/apache/aurora/e2e/test_end_to_end.sh
Thanks,
Maxim Khutornenko
Re: Review Request 32541: Adding client Kerberos support.
Posted by Aurora ReviewBot <wf...@apache.org>.
-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/32541/#review78583
-----------------------------------------------------------
Ship it!
Master (4b9c759) is green with this patch.
./build-support/jenkins/build.sh
I will refresh this build result if you post a review containing "@ReviewBot retry"
- Aurora ReviewBot
On April 1, 2015, 7:53 p.m., Maxim Khutornenko wrote:
>
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/32541/
> -----------------------------------------------------------
>
> (Updated April 1, 2015, 7:53 p.m.)
>
>
> Review request for Aurora, Kevin Sweeney and Brian Wickman.
>
>
> Bugs: AURORA-813
> https://issues.apache.org/jira/browse/AURORA-813
>
>
> Repository: aurora
>
>
> Description
> -------
>
> First take on client kerberos support. The idea is to repurpose the existing auth_module system to support both legacy and kerberos during the deprecation period. This way the 0.8.0 client will be able to talk to pre-0.8.0 scheduler and use SessionKey-based authorization. Later (in 0.9.0), the payload() will be removed along with SessionKey (AURORA-1229). That will let us get rid of SchedulerProxy (or reduce it substantially). The auth_module might stay though to support other auth plugins (e.g. requests-ntlm or requests-oauthlib).
>
> TODO: integration e2e tests once scheduler side lands.
>
>
> Diffs
> -----
>
> 3rdparty/python/requirements.txt 11a307cdb476ebcc25ab5c6b555bed29241ea988
> src/main/python/apache/aurora/client/api/__init__.py a81329f6f947bbea4001c3a521c1923410a51eab
> src/main/python/apache/aurora/client/api/scheduler_client.py 95e553427492407743dcac31d70f392a7c1bbc02
> src/main/python/apache/aurora/client/cli/BUILD c6b4e8a09d1315cf5defee2155a6e0c697892a30
> src/main/python/apache/aurora/client/cli/client.py 24516d114db1743cdf600c542a27fcf5b68053a0
> src/main/python/apache/aurora/common/auth/BUILD 966484627dab90e7606f1fc638cd0e159aee3317
> src/main/python/apache/aurora/common/auth/__init__.py 3119fd63d3dfa28f93f219b23030059580fed098
> src/main/python/apache/aurora/common/auth/auth_kerberos.py PRE-CREATION
> src/main/python/apache/aurora/common/auth/auth_module.py 5f4116ef4cfbc407e0c50dc938870fb14e2299b4
> src/main/python/apache/aurora/common/auth/auth_module_manager.py 73a8e5cd51edf694b971cd2c298ff406aff8c6d7
> src/main/python/apache/aurora/common/transport.py 395f8a94d9a27aad00166a17f2528a8c0833ffdd
> src/test/python/apache/aurora/client/api/test_scheduler_client.py 0a6194831c332a96eab62b869c4e05cfa9def058
> src/test/python/apache/aurora/common/test_transport.py b78e0b3badfbbeecefff7b5954f3796cef4da9d8
>
> Diff: https://reviews.apache.org/r/32541/diff/
>
>
> Testing
> -------
>
> ./pants test.pytest --no-fast src/test/python:all
> ./src/test/sh/org/apache/aurora/e2e/test_end_to_end.sh
>
>
> Thanks,
>
> Maxim Khutornenko
>
>
Re: Review Request 32541: Adding client Kerberos support.
Posted by Maxim Khutornenko <ma...@apache.org>.
-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/32541/
-----------------------------------------------------------
(Updated April 1, 2015, 7:53 p.m.)
Review request for Aurora, Kevin Sweeney and Brian Wickman.
Changes
-------
Kevin's comments.
Bugs: AURORA-813
https://issues.apache.org/jira/browse/AURORA-813
Repository: aurora
Description
-------
First take on client kerberos support. The idea is to repurpose the existing auth_module system to support both legacy and kerberos during the deprecation period. This way the 0.8.0 client will be able to talk to pre-0.8.0 scheduler and use SessionKey-based authorization. Later (in 0.9.0), the payload() will be removed along with SessionKey (AURORA-1229). That will let us get rid of SchedulerProxy (or reduce it substantially). The auth_module might stay though to support other auth plugins (e.g. requests-ntlm or requests-oauthlib).
TODO: integration e2e tests once scheduler side lands.
Diffs (updated)
-----
3rdparty/python/requirements.txt 11a307cdb476ebcc25ab5c6b555bed29241ea988
src/main/python/apache/aurora/client/api/__init__.py a81329f6f947bbea4001c3a521c1923410a51eab
src/main/python/apache/aurora/client/api/scheduler_client.py 95e553427492407743dcac31d70f392a7c1bbc02
src/main/python/apache/aurora/client/cli/BUILD c6b4e8a09d1315cf5defee2155a6e0c697892a30
src/main/python/apache/aurora/client/cli/client.py 24516d114db1743cdf600c542a27fcf5b68053a0
src/main/python/apache/aurora/common/auth/BUILD 966484627dab90e7606f1fc638cd0e159aee3317
src/main/python/apache/aurora/common/auth/__init__.py 3119fd63d3dfa28f93f219b23030059580fed098
src/main/python/apache/aurora/common/auth/auth_kerberos.py PRE-CREATION
src/main/python/apache/aurora/common/auth/auth_module.py 5f4116ef4cfbc407e0c50dc938870fb14e2299b4
src/main/python/apache/aurora/common/auth/auth_module_manager.py 73a8e5cd51edf694b971cd2c298ff406aff8c6d7
src/main/python/apache/aurora/common/transport.py 395f8a94d9a27aad00166a17f2528a8c0833ffdd
src/test/python/apache/aurora/client/api/test_scheduler_client.py 0a6194831c332a96eab62b869c4e05cfa9def058
src/test/python/apache/aurora/common/test_transport.py b78e0b3badfbbeecefff7b5954f3796cef4da9d8
Diff: https://reviews.apache.org/r/32541/diff/
Testing
-------
./pants test.pytest --no-fast src/test/python:all
./src/test/sh/org/apache/aurora/e2e/test_end_to_end.sh
Thanks,
Maxim Khutornenko
Re: Review Request 32541: Adding client Kerberos support.
Posted by Aurora ReviewBot <wf...@apache.org>.
-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/32541/#review78260
-----------------------------------------------------------
Master (3ab8a9e) is red with this patch.
./build-support/jenkins/build.sh
:check
:build
:api:assemble
:api:compileTestJava UP-TO-DATE
:api:processTestResources UP-TO-DATE
:api:testClasses UP-TO-DATE
:api:test UP-TO-DATE
:api:check UP-TO-DATE
:api:build
:buildSrc:compileJava UP-TO-DATE
:buildSrc:processResources UP-TO-DATE
:buildSrc:classes UP-TO-DATE
:buildSrc:jar
:buildSrc:assemble
:buildSrc:compileTestJava UP-TO-DATE
:buildSrc:processTestResources UP-TO-DATE
:buildSrc:testClasses UP-TO-DATE
:buildSrc:test UP-TO-DATE
:buildSrc:check UP-TO-DATE
:buildSrc:build
BUILD SUCCESSFUL
Total time: 4 mins 2.359 secs
+ export PIP_DEFAULT_TIMEOUT=60
+ PIP_DEFAULT_TIMEOUT=60
+ mkdir -p third_party
+ pip install -d third_party -r /dev/fd/63
++ grep -v mesos.native 3rdparty/python/requirements.txt
Downloading/unpacking bottle==0.11.6 (from -r /dev/fd/63 (line 1))
Saved ./third_party/bottle-0.11.6-py2.py3-none-any.whl
Downloading/unpacking CherryPy==3.6.0 (from -r /dev/fd/63 (line 2))
pip can't proceed with requirement 'CherryPy==3.6.0 (from -r /dev/fd/63 (line 2))' due to a pre-existing build directory.
location: /tmp/user/2395/pip_build_jenkins/CherryPy
This is likely due to a previous installation that failed.
pip is being responsible and not assuming it can delete this.
Please delete it and try again.
Storing debug log for failure in /home/jenkins/.pip/pip.log
I will refresh this build result if you post a review containing "@ReviewBot retry"
- Aurora ReviewBot
On March 30, 2015, 9:09 p.m., Maxim Khutornenko wrote:
>
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/32541/
> -----------------------------------------------------------
>
> (Updated March 30, 2015, 9:09 p.m.)
>
>
> Review request for Aurora, Kevin Sweeney and Brian Wickman.
>
>
> Bugs: AURORA-813
> https://issues.apache.org/jira/browse/AURORA-813
>
>
> Repository: aurora
>
>
> Description
> -------
>
> First take on client kerberos support. The idea is to repurpose the existing auth_module system to support both legacy and kerberos during the deprecation period. This way the 0.8.0 client will be able to talk to pre-0.8.0 scheduler and use SessionKey-based authorization. Later (in 0.9.0), the payload() will be removed along with SessionKey (AURORA-1229). That will let us get rid of SchedulerProxy (or reduce it substantially). The auth_module might stay though to support other auth plugins (e.g. requests-ntlm or requests-oauthlib).
>
> TODO: integration e2e tests once scheduler side lands.
>
>
> Diffs
> -----
>
> 3rdparty/python/requirements.txt 11a307cdb476ebcc25ab5c6b555bed29241ea988
> src/main/python/apache/aurora/client/api/__init__.py a81329f6f947bbea4001c3a521c1923410a51eab
> src/main/python/apache/aurora/client/api/scheduler_client.py 95e553427492407743dcac31d70f392a7c1bbc02
> src/main/python/apache/aurora/client/cli/BUILD c6b4e8a09d1315cf5defee2155a6e0c697892a30
> src/main/python/apache/aurora/client/cli/client.py 24516d114db1743cdf600c542a27fcf5b68053a0
> src/main/python/apache/aurora/common/auth/BUILD 966484627dab90e7606f1fc638cd0e159aee3317
> src/main/python/apache/aurora/common/auth/__init__.py 3119fd63d3dfa28f93f219b23030059580fed098
> src/main/python/apache/aurora/common/auth/auth_kerberos.py PRE-CREATION
> src/main/python/apache/aurora/common/auth/auth_module.py 5f4116ef4cfbc407e0c50dc938870fb14e2299b4
> src/main/python/apache/aurora/common/auth/auth_module_manager.py 73a8e5cd51edf694b971cd2c298ff406aff8c6d7
> src/test/python/apache/aurora/client/api/test_scheduler_client.py 0a6194831c332a96eab62b869c4e05cfa9def058
>
> Diff: https://reviews.apache.org/r/32541/diff/
>
>
> Testing
> -------
>
> ./pants test.pytest --no-fast src/test/python:all
> ./src/test/sh/org/apache/aurora/e2e/test_end_to_end.sh
>
>
> Thanks,
>
> Maxim Khutornenko
>
>
Re: Review Request 32541: Adding client Kerberos support.
Posted by Maxim Khutornenko <ma...@apache.org>.
> On March 31, 2015, 7:30 p.m., Kevin Sweeney wrote:
> > src/main/python/apache/aurora/common/auth/__init__.py, line 14
> > <https://reviews.apache.org/r/32541/diff/2/?file=909512#file909512line14>
> >
> > I see red here but I don't see any corresponding changes to import lines - were these completely unused?
> >
> > This change will require changing lines of the form
> >
> > ```py
> > from apache.aurora.common.auth import AuthModule
> > ```
> >
> > to
> >
> > ```py
> > from apache.aurora.common.auth.auth_module import AuthModule
> > ```
Correct, nothing was actually referencing AuthModule. The only adjustment I had to make was for the auth_module_manager.
> On March 31, 2015, 7:30 p.m., Kevin Sweeney wrote:
> > src/main/python/apache/aurora/common/auth/auth_kerberos.py, line 25
> > <https://reviews.apache.org/r/32541/diff/2/?file=909513#file909513line25>
> >
> > does mechanism also need to be overridden?
Does not have to as long as the prod module is still using the same auth mechanism.
> On March 31, 2015, 7:30 p.m., Kevin Sweeney wrote:
> > src/main/python/apache/aurora/common/auth/auth_module_manager.py, line 65
> > <https://reviews.apache.org/r/32541/diff/2/?file=909515#file909515line65>
> >
> > nit: rather than abbreviate as auth we should be explicit that that this references authentication (as opposed to authorization).
I think "auth" is quite commonly used for "authentication". I'll defer the full use for authorization (or "authz") instead.
> On March 31, 2015, 7:30 p.m., Kevin Sweeney wrote:
> > src/main/python/apache/aurora/common/auth/auth_module.py, line 38
> > <https://reviews.apache.org/r/32541/diff/2/?file=909514#file909514line38>
> >
> > This should reference
> >
> > ```py
> > """
> > :rtype: requests.auth.AuthBase
> > """
> > ```
Good idea. Added type validation into transport.py.
> On March 31, 2015, 7:30 p.m., Kevin Sweeney wrote:
> > src/test/python/apache/aurora/client/api/test_scheduler_client.py, line 391
> > <https://reviews.apache.org/r/32541/diff/2/?file=909516#file909516line391>
> >
> > this should fail - the argument should subclass requests.auth.AuthBase.
This still passes, I have added type validation in transport.py.
- Maxim
-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/32541/#review78390
-----------------------------------------------------------
On March 30, 2015, 9:09 p.m., Maxim Khutornenko wrote:
>
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/32541/
> -----------------------------------------------------------
>
> (Updated March 30, 2015, 9:09 p.m.)
>
>
> Review request for Aurora, Kevin Sweeney and Brian Wickman.
>
>
> Bugs: AURORA-813
> https://issues.apache.org/jira/browse/AURORA-813
>
>
> Repository: aurora
>
>
> Description
> -------
>
> First take on client kerberos support. The idea is to repurpose the existing auth_module system to support both legacy and kerberos during the deprecation period. This way the 0.8.0 client will be able to talk to pre-0.8.0 scheduler and use SessionKey-based authorization. Later (in 0.9.0), the payload() will be removed along with SessionKey (AURORA-1229). That will let us get rid of SchedulerProxy (or reduce it substantially). The auth_module might stay though to support other auth plugins (e.g. requests-ntlm or requests-oauthlib).
>
> TODO: integration e2e tests once scheduler side lands.
>
>
> Diffs
> -----
>
> 3rdparty/python/requirements.txt 11a307cdb476ebcc25ab5c6b555bed29241ea988
> src/main/python/apache/aurora/client/api/__init__.py a81329f6f947bbea4001c3a521c1923410a51eab
> src/main/python/apache/aurora/client/api/scheduler_client.py 95e553427492407743dcac31d70f392a7c1bbc02
> src/main/python/apache/aurora/client/cli/BUILD c6b4e8a09d1315cf5defee2155a6e0c697892a30
> src/main/python/apache/aurora/client/cli/client.py 24516d114db1743cdf600c542a27fcf5b68053a0
> src/main/python/apache/aurora/common/auth/BUILD 966484627dab90e7606f1fc638cd0e159aee3317
> src/main/python/apache/aurora/common/auth/__init__.py 3119fd63d3dfa28f93f219b23030059580fed098
> src/main/python/apache/aurora/common/auth/auth_kerberos.py PRE-CREATION
> src/main/python/apache/aurora/common/auth/auth_module.py 5f4116ef4cfbc407e0c50dc938870fb14e2299b4
> src/main/python/apache/aurora/common/auth/auth_module_manager.py 73a8e5cd51edf694b971cd2c298ff406aff8c6d7
> src/test/python/apache/aurora/client/api/test_scheduler_client.py 0a6194831c332a96eab62b869c4e05cfa9def058
>
> Diff: https://reviews.apache.org/r/32541/diff/
>
>
> Testing
> -------
>
> ./pants test.pytest --no-fast src/test/python:all
> ./src/test/sh/org/apache/aurora/e2e/test_end_to_end.sh
>
>
> Thanks,
>
> Maxim Khutornenko
>
>
Re: Review Request 32541: Adding client Kerberos support.
Posted by Kevin Sweeney <ke...@apache.org>.
-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/32541/#review78390
-----------------------------------------------------------
src/main/python/apache/aurora/common/auth/__init__.py
<https://reviews.apache.org/r/32541/#comment127004>
I see red here but I don't see any corresponding changes to import lines - were these completely unused?
This change will require changing lines of the form
```py
from apache.aurora.common.auth import AuthModule
```
to
```py
from apache.aurora.common.auth.auth_module import AuthModule
```
src/main/python/apache/aurora/common/auth/auth_kerberos.py
<https://reviews.apache.org/r/32541/#comment127008>
does mechanism also need to be overridden?
src/main/python/apache/aurora/common/auth/auth_module.py
<https://reviews.apache.org/r/32541/#comment127005>
This should reference
```py
"""
:rtype: requests.auth.AuthBase
"""
```
src/main/python/apache/aurora/common/auth/auth_module_manager.py
<https://reviews.apache.org/r/32541/#comment127006>
nit: rather than abbreviate as auth we should be explicit that that this references authentication (as opposed to authorization).
src/test/python/apache/aurora/client/api/test_scheduler_client.py
<https://reviews.apache.org/r/32541/#comment127007>
this should fail - the argument should subclass requests.auth.AuthBase.
- Kevin Sweeney
On March 30, 2015, 2:09 p.m., Maxim Khutornenko wrote:
>
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/32541/
> -----------------------------------------------------------
>
> (Updated March 30, 2015, 2:09 p.m.)
>
>
> Review request for Aurora, Kevin Sweeney and Brian Wickman.
>
>
> Bugs: AURORA-813
> https://issues.apache.org/jira/browse/AURORA-813
>
>
> Repository: aurora
>
>
> Description
> -------
>
> First take on client kerberos support. The idea is to repurpose the existing auth_module system to support both legacy and kerberos during the deprecation period. This way the 0.8.0 client will be able to talk to pre-0.8.0 scheduler and use SessionKey-based authorization. Later (in 0.9.0), the payload() will be removed along with SessionKey (AURORA-1229). That will let us get rid of SchedulerProxy (or reduce it substantially). The auth_module might stay though to support other auth plugins (e.g. requests-ntlm or requests-oauthlib).
>
> TODO: integration e2e tests once scheduler side lands.
>
>
> Diffs
> -----
>
> 3rdparty/python/requirements.txt 11a307cdb476ebcc25ab5c6b555bed29241ea988
> src/main/python/apache/aurora/client/api/__init__.py a81329f6f947bbea4001c3a521c1923410a51eab
> src/main/python/apache/aurora/client/api/scheduler_client.py 95e553427492407743dcac31d70f392a7c1bbc02
> src/main/python/apache/aurora/client/cli/BUILD c6b4e8a09d1315cf5defee2155a6e0c697892a30
> src/main/python/apache/aurora/client/cli/client.py 24516d114db1743cdf600c542a27fcf5b68053a0
> src/main/python/apache/aurora/common/auth/BUILD 966484627dab90e7606f1fc638cd0e159aee3317
> src/main/python/apache/aurora/common/auth/__init__.py 3119fd63d3dfa28f93f219b23030059580fed098
> src/main/python/apache/aurora/common/auth/auth_kerberos.py PRE-CREATION
> src/main/python/apache/aurora/common/auth/auth_module.py 5f4116ef4cfbc407e0c50dc938870fb14e2299b4
> src/main/python/apache/aurora/common/auth/auth_module_manager.py 73a8e5cd51edf694b971cd2c298ff406aff8c6d7
> src/test/python/apache/aurora/client/api/test_scheduler_client.py 0a6194831c332a96eab62b869c4e05cfa9def058
>
> Diff: https://reviews.apache.org/r/32541/diff/
>
>
> Testing
> -------
>
> ./pants test.pytest --no-fast src/test/python:all
> ./src/test/sh/org/apache/aurora/e2e/test_end_to_end.sh
>
>
> Thanks,
>
> Maxim Khutornenko
>
>