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.conf
or other configuration filesWhat's here, but maybe shouldn't be:
-tags kerberos
to 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:
kinit
to 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-dev
MacOS:
brew install homebrew/dupes/heimdal --without-x11
Debian:
yum install -y krb5-devel
First, 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
kinit
as the EffectiveUser set above before running your application.Finally, due to the dependencies in
gosasl
you must currently run with-tags kerberos
:or