[vdk-kerberos-auth] Fix keytab file in job directory #721
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.
Currently, if a
VDK_KEYTAB_FOLDER
is not specified, the kerberos pluginlooks for the keytab file in the data job directory, which causes operation
conflict between the
vdk run
andvdk deploy
commands.vdk run
looks for the keytab file in the job's directory and throws an exceptionif the file is not there, while
vdk deploy
checks that there IS NO keytab file in the job's directory, and throwsan exception if there is such a file in the directory.
This change ensures that if
VDK_KEYTAB_FOLDER
is not set, the default directory tolook for a keytab file would be the data job's parent directory.
Testing Done: moved the keytab file used in functional tests outside the test job directory.
Signed-off-by: Andon Andonov [email protected]