Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixed Auth with v2 protocol #1805

Merged
merged 3 commits into from
Nov 11, 2018
Merged

Fixed Auth with v2 protocol #1805

merged 3 commits into from
Nov 11, 2018

Conversation

merlimat
Copy link
Contributor

Motivation

BK auth framework is currently broken when using v2 protocol.

Changes

  • Fixed auth when using V2 protocol
  • Made sure a client with authentication enabled can talk to a bookie without authentication. This is required in any case when enabling/disabling authentication on a live cluster.
  • Run all auth tests against both v2 and v3 protocol.

This should be included in 4.7.2 to give a path to upgrade.

cc/ @rdhabalia

Copy link
Contributor

@eolivelli eolivelli left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good, apart from my question on the test case.

The very interesting fact is that when I worked on auth only Yahoo had auth in place and they used v2 :)

@merlimat
Copy link
Contributor Author

The very interesting fact is that when I worked on auth only Yahoo had auth in place and they used v2 :)

@eolivelli I think this got broken (in v2) after the changes to remove the protobuf extension mechanism for the auth message. Core problem is the test was not running with v2.

@sijie sijie merged commit dc2aaaa into apache:master Nov 11, 2018
sijie pushed a commit that referenced this pull request Nov 11, 2018
### Motivation

BK auth framework is currently broken when using v2 protocol.

### Changes

 * Fixed auth when using V2 protocol
 * Made sure a client with authentication enabled can talk to a bookie without authentication. This is required in any case when enabling/disabling authentication on a live cluster.
 * Run all auth tests against both v2 and v3 protocol.

This should be included in 4.7.2 to give a path to upgrade.

cc/ rdhabalia

Reviewers: Enrico Olivelli <eolivelli@gmail.com>, Sijie Guo <sijie@apache.org>

This closes #1805 from merlimat/fix-v2-auth

(cherry picked from commit dc2aaaa)
Signed-off-by: Sijie Guo <sijie@apache.org>
sijie pushed a commit that referenced this pull request Nov 11, 2018
### Motivation

BK auth framework is currently broken when using v2 protocol.

### Changes

 * Fixed auth when using V2 protocol
 * Made sure a client with authentication enabled can talk to a bookie without authentication. This is required in any case when enabling/disabling authentication on a live cluster.
 * Run all auth tests against both v2 and v3 protocol.

This should be included in 4.7.2 to give a path to upgrade.

cc/ rdhabalia

Reviewers: Enrico Olivelli <eolivelli@gmail.com>, Sijie Guo <sijie@apache.org>

This closes #1805 from merlimat/fix-v2-auth

(cherry picked from commit dc2aaaa)
Signed-off-by: Sijie Guo <sijie@apache.org>
@sijie
Copy link
Member

sijie commented Nov 11, 2018

merged to master, branch-4.8, and branch 4.7

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants