IVAAP Kerberos Manual Configuration
IVAAP Deployment Operations Guide
Manual Kerberos Configuration
IVAAP 2026.2
Introduction¶
This guide walks through hand-configuring Kerberos for the Studio connector (petrelstudiodbnode): generate krb5.conf, create the Kubernetes configmap, patch Helm values, and recycle the backend pod.
Optional — only for Kerberos connectors
Use this guide only when Studio connectors use the Kerberos authentication scheme in the admin client. For Password authentication with a SQL service account, no krb5.conf is needed — configure the connector in the admin UI; see the quickstart on your deployment: https://<IVAAP_FQDN>/admin/usermanual/gettingstarted/quickstart.html. Overview: Kerberos for the Studio Connector.
Use this path when:
- The cluster is GitOps-managed (ArgoCD, Flux, Fleet) and you commit manifests rather than running installer subcommands on the host.
- You deployed IVAAP with
ivaap generate-yamlon AKS, EKS, or OpenShift and manage values outside/opt/ivaap/ivaap.values.yaml. - You need full control over each artifact.
For installer-managed single-node k3s hosts, prefer Kerberos setup with the ivaap binary (ivaap kerberos setup) instead.
Shared prerequisites, verification, and troubleshooting: Kerberos for the Studio Connector.
Kerberos is not IVAAP login
This configures SQL Server authentication for the Studio connector only. It does not configure how users log in to the IVAAP application. See IVAAP Authentication.
Step 1 — Generate krb5.conf¶
Using generate-krb5-conf.sh¶
The script ships in ivaap-helpers/scripts/ (on k3s hosts, /opt/ivaap/ivaap-helpers/scripts/). It has no dependencies beyond bash and a DNS lookup tool. See IVAAP Helpers for how helpers are installed.
cd /opt/ivaap/ivaap-helpers/scripts
# Discover KDCs from DNS SRV records and write ./krb5.conf
./generate-krb5-conf.sh -d ad.example.com
# KDCs supplied by the AD administrator (skips DNS discovery)
./generate-krb5-conf.sh -d ad.example.com -k dc01.ad.example.com -k dc02.ad.example.com
# Realm differs from the domain name
./generate-krb5-conf.sh -d ad.example.com -r CORP.EXAMPLE.COM -k dc01.ad.example.com
# Confirm each KDC resolves and answers on TCP 88 before writing
./generate-krb5-conf.sh -d ad.example.com --check -o /opt/ivaap/krb5.conf
| Flag | Meaning |
|---|---|
-d <domain> |
AD DNS domain. If omitted, the first search/domain entry in /etc/resolv.conf is used and reported. |
-r <realm> |
Kerberos realm. Default is the domain in upper case. |
-k <host[:port]> |
A KDC. Repeat for each domain controller. Port defaults to 88. When given, DNS discovery is skipped. |
-a <host> |
admin_server entry. Defaults to the first KDC. |
-o <file> |
Output path. Default ./krb5.conf; - writes to stdout. |
--check |
Resolve each KDC and open a TCP connection to its port. Failures are reported but the file is still written. |
Without -k, the script queries _kerberos._tcp.<domain> and then _ldap._tcp.<domain> SRV records, orders the results by SRV priority and weight, and removes duplicates. If neither lookup returns anything it exits with status 2 and does not write a file — it never guesses hostnames. Re-run with -k using hostnames from the AD administrator.
Review the output before applying it. In particular confirm the realm and that the KDC list contains the domain controllers you expect.
Writing krb5.conf by hand¶
The file the script produces is shown below for the domain ad.example.com. Replace the realm, domain and KDC hostnames with your own values.
[libdefaults]
default_realm = AD.EXAMPLE.COM
dns_lookup_realm = false
dns_lookup_kdc = true
ticket_lifetime = 24h
renew_lifetime = 7d
forwardable = true
rdns = false
default_tkt_enctypes = aes256-cts-hmac-sha1-96 aes128-cts-hmac-sha1-96 rc4-hmac
default_tgs_enctypes = aes256-cts-hmac-sha1-96 aes128-cts-hmac-sha1-96 rc4-hmac
[realms]
AD.EXAMPLE.COM = {
kdc = dc01.ad.example.com:88
kdc = dc02.ad.example.com:88
admin_server = dc01.ad.example.com
default_domain = ad.example.com
}
[domain_realm]
.ad.example.com = AD.EXAMPLE.COM
ad.example.com = AD.EXAMPLE.COM
.example.com = AD.EXAMPLE.COM
example.com = AD.EXAMPLE.COM
[logging]
default = FILE:/var/log/krb5libs.log
kdc = FILE:/var/log/krb5kdc.log
admin_server = FILE:/var/log/kadmind.log
| Setting | Purpose |
|---|---|
default_realm |
Realm used when a principal has none. Normally the AD domain in upper case. |
dns_lookup_kdc = true |
Lets the JVM find additional KDCs through DNS SRV records. Keep at least one explicit kdc line as an anchor. |
dns_lookup_realm = false |
Realm is taken from this file, not from DNS TXT records. |
rdns = false |
Do not reverse-resolve the SQL Server address when building its service principal. Avoids failures when PTR records are missing or point at a different name. |
forwardable, ticket_lifetime, renew_lifetime |
Standard ticket options. The 24h/7d values match typical AD policy. |
default_tkt_enctypes, default_tgs_enctypes |
Encryption types offered, strongest first. Drop rc4-hmac if your domain has disabled RC4; leaving a type listed that the domain does not support is harmless. |
[realms] → kdc |
One line per domain controller, host:88. |
[realms] → admin_server |
Not used by the connector; included for completeness. |
[domain_realm] |
Maps hostnames to the realm. The parent domain (example.com) is included so that a SQL Server whose hostname sits in the parent domain still resolves to the AD realm. Remove those two lines if the SQL Server is in a different realm. |
Warning
A krb5.conf edited on Windows contains carriage returns and will not parse inside the container. Strip them before creating the configmap: tr -d '\r' < krb5.conf > krb5.clean && mv krb5.clean krb5.conf. The script output never contains them.
Step 2 — Apply krb5.conf to the deployment¶
The file is delivered to the connector as a Kubernetes configmap mounted at /etc/krb5.conf, and the connector JVM is pointed at it through IVAAP_NODE_JAVA_OPTS. The examples assume namespace ivaap and the ki alias from ivaap-helpers; substitute kubectl -n <namespace> if the aliases are not installed.
1. Create the configmap. The --dry-run / apply form is idempotent, so the same command updates the configmap later.
tr -d '\r' < /opt/ivaap/krb5.conf > /tmp/krb5.conf
ki ivaap create configmap krb5-conf \
--from-file=krb5.conf=/tmp/krb5.conf \
--dry-run=client -o yaml | ki ivaap apply -f -
rm -f /tmp/krb5.conf
2. Mount it into the backend pod. Add to your deployment values file (/opt/ivaap/ivaap.values.yaml on k3s, or your GitOps values on other clusters). The mount applies to every backend node container; nodes other than the Studio connector ignore the file.
ivaapBackendNodes:
extraVolumes:
- name: krb5-conf
configMap:
name: krb5-conf
extraVolumeMounts:
- name: krb5-conf
mountPath: /etc/krb5.conf
subPath: krb5.conf
readOnly: true
If extraVolumes / extraVolumeMounts already exist — for example a root CA mounted for SQL Server TLS — add the krb5-conf entries to the existing lists. Do not create a second ivaapBackendNodes block.
3. Point the connector JVM at the file.
nodeEnvConfigMaps:
petrelstudiodbnode:
IVAAP_NODE_JAVA_OPTS: "-Djava.security.krb5.conf=/etc/krb5.conf -Djavax.security.auth.useSubjectCredsOnly=false"
java.security.krb5.conf tells the JVM where the configuration is. useSubjectCredsOnly=false allows the JDBC driver to obtain tickets with the credentials supplied by the user rather than requiring a pre-populated login context. If IVAAP_NODE_JAVA_OPTS is already set for petrelstudiodbnode, append these two flags to the existing value.
4. Upgrade the release with the standard two-values-file pattern:
helm upgrade --install ivaap /opt/ivaap/IVAAPHelmTemplate \
-f /opt/ivaap/IVAAPHelmTemplate/values.yaml \
-f /opt/ivaap/ivaap.values.yaml \
--namespace ivaap
5. Recreate the backend pod. Environment variable changes do not recreate pods on their own, and a subPath configmap mount is never refreshed in a running pod.
ki ivaap delete pod -l app=ivaap-backend
The same two steps — update the configmap, recreate the pod — apply to any later change to krb5.conf.
Installer-managed k3s without ivaap kerberos setup
If you hand-edit /opt/ivaap/ivaap.values.yaml on a host that otherwise uses the ivaap binary, ivaap enable, ivaap disable, and ivaap tls setup regenerate that file from install state and will drop Kerberos blocks you added by hand. Either use ivaap kerberos setup (state-driven, survives re-renders) or re-apply your manual blocks after each of those commands.
GitOps-managed deployments
On ArgoCD, Flux or Fleet instances, commit the krb5-conf configmap manifest and the values changes to the deployment repository instead of applying them by hand, then restart the backend deployment once the sync completes.
Step 3 — Verify¶
Follow Verification in the hub guide.
Removing Kerberos configuration¶
Remove the krb5-conf entries from extraVolumes / extraVolumeMounts, remove the two Kerberos flags from IVAAP_NODE_JAVA_OPTS, run helm upgrade, recreate the backend pod, then delete the configmap:
ki ivaap delete configmap krb5-conf
On installer-managed k3s hosts that used ivaap kerberos setup, use ivaap kerberos disable instead — it also removes the optional registration-page wiring that manual configuration does not manage.