Skip to main content

The plugin provides GSSAPI Kerberos authentication on data job startup. The plugin also adds Kerberos/GSSAPI support for HTTP requests.

Usage

To install the plugin, run:

pip install vdk-kerberos-auth

The plugin dependency requests-kerberos==0.12.0 may fail to install on Ubuntu with the following error:

  src/kerberosbasic.h:17:10: fatal error: gssapi/gssapi.h: No such file or directory
     17 | #include <gssapi/gssapi.h>
        |          ^~~~~~~~~~~~~~~~~
  compilation terminated.

If this is the case, install libkrb5-dev with the command below and try reinstalling the plugin:

sudo apt-get install -y libkrb5-dev

The following environment variables can be used to configure this plugin:

name description
VDK_KRB_AUTH Specifies the Kerberos authentication type to use. Possible values are 'minikerberos' and 'kinit'. If left empty, the authentication is disabled.
VDK_KEYTAB_FILENAME Specifies the name of the keytab file. If left empty, the name of the keytab file is assumed to be the same as the name of the data job with '.keytab' suffix.
KEYTAB_FOLDER Specifies the folder containing the keytab file. If left empty, the keytab file is expected to be located inside the data job folder.
VDK_KEYTAB_PRINCIPAL Specifies the Kerberos principal. If left empty, the principal will be the job name prepended with 'pa__view_'.
VDK_KEYTAB_REALM Specifies the Kerberos realm. This value is used only with the 'minikerberos' authentication type. The default value is 'default_realm'.
VDK_KERBEROS_KDC_HOST Specifies the name of the Kerberos KDC (Key Distribution Center) host. This value is used only with the 'minikerberos' authentication type.

Testing

In order to run the tests you need pytest and docker and kerberos client (kadmin).

You can use helper script ../build-plugin.sh to build and test locally.

On Mac OS kadmin may miss some options needed. In this case you can use kadmin in docker to run the tests

export VDK_TEST_USE_KADMIN_DOCKER=true
cd /source/projects/vdk-plugins/vdk-kerberos-auth
../build-plugin.sh

Metadata

Release files for vdk-kerberos-auth 0.3.520417292

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for vdk-kerberos-auth 0.3.520417292
File Size Uploaded
vdk-kerberos-auth-0.3.520417292.tar.gz 9.7 kB Details

Release files / vdk-kerberos-auth-0.3.520417292.tar.gz

Download URL vdk-kerberos-auth-0.3.520417292.tar.gz
Size 9.7 kB
Tags Source
SHA-256 checksum
How to use checksums
65a433394fded2f6359a3768ff3d044de60efd0e5885a5bd8c0e6c11960d5846
BLAKE2b-256 checksum
How to use checksums
d444e85e08e1ede2387ca354cec72f775411d1b7cf65444069244d3f3390a3b3
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.0 CPython/3.7.13
Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page