Open
Conversation
|
when zk with kerberos security enabled,it will fail. |
|
@tsuna We've already verified this code in a real online environment that it's real and valid, and hopefully merge this code |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
While this code works, this is not yet a fully baked solution. Creating a PR for discussion on the approach and how Kerberos support should best be integrated into gohbase.
Kerberos support has been requested several times on this project - #71 #95 #141 - I needed it as well, so I took a shot at it.
First, what IS here:
kinit.What's NOT here:
krb5.confor other configuration filesWhat's here, but maybe shouldn't be:
-tags kerberosto make things workOpen questions (not by any means an exhaustive list):
Would love any feedback or thoughts from the team or community!
Finally, to test it -
Assumptions:
kinitto the KDC with a user with HBase permissions)gosasl:To add Kerberos support gosasl requires header files to build against the GSSAPI C library. They can be installed with:
Ubuntu:
sudo apt-get install libkrb5-devMacOS:
brew install homebrew/dupes/heimdal --without-x11Debian:
yum install -y krb5-develFirst, pull in the fork's branch so your app can use it:
Everything else is the same as a standard gohbase application, with the addition of the auth option and ensuring the effective user is set to the Kerberos principle you will authenticate as:
Ensure you you have
kinitas the EffectiveUser set above before running your application.Finally, due to the dependencies in
gosaslyou must currently run with-tags kerberos:or