Skip to content

IVAAP Kerberos Setup with IVAAP Binary



IVAAP Deployment Operations Guide
Kerberos Setup with the `ivaap` Binary




IVAAP 2026.2

Introduction

On installer-managed single-node k3s hosts, ivaap kerberos setup validates Active Directory credentials, generates krb5.conf, wires it into the running deployment, and optionally enables the self-service registration page for AD users who need a Petrel Studio (Kerberos) connector.

Optional — only for Kerberos connectors

Run this command only when Studio connectors in the admin client use the Kerberos authentication scheme (per-user AD credentials to SQL Server). If connectors use Password authentication with a shared SQL Server login, enable petrelstudiodbnode and configure the connector in the admin UI — no ivaap kerberos step is required. See Kerberos for the Studio Connector for the two schemes.

For admin UI steps (connector properties, Test Connector), refer to the quickstart on your deployment once it is running: https://<IVAAP_FQDN>/admin/usermanual/gettingstarted/quickstart.html.

This is the recommended Kerberos path when ivaap install has completed on the host. For GitOps-managed clusters or hand-edited values files, use Manual Kerberos configuration instead.

Shared prerequisites, verification, and troubleshooting: Kerberos for the Studio Connector.

Kerberos is not IVAAP login

ivaap kerberos setup configures SQL Server authentication for the Studio connector only. It does not configure how users sign in to the IVAAP web application. IVAAP login remains local authentication or external OIDC as described in IVAAP Authentication.

Prerequisites

  • IVAAP install complete on this host (ivaap status shows a finished install).
  • petrelstudiodbnode enabled:
ivaap enable petrelstudiodbnode
  • This host can reach the AD domain controllers (corporate network or VPN).
  • Items in the shared prerequisites checklist confirmed with your AD/SQL administrator.

Enable Kerberos

ivaap kerberos setup

Interactive flow:

  1. AD domain — prompted; auto-detected from /etc/resolv.conf when possible.
  2. AD username and password — validated through the embedded ivaap-installer helper. Enter the plain AD account name (jdoe) or DOMAIN\jdoe. If you enter a UPN (jdoe@ad.example.com), the installer normalizes it to the account name for Kerberos — the Petrel Studio JDBC driver does not accept UPN as the Kerberos principal.
  3. krb5.conf generation — realm and KDC list written from discovered domain controllers.
  4. Configmap — krb5-conf created or updated in namespace ivaap (carriage returns stripped).
  5. Values + Helm — /opt/ivaap/ivaap.values.yaml re-rendered from install state, helm upgrade, backend pod rolled so the new mount and JVM options take effect.
  6. Registration phase (unless --skip-registration) — verifies the Petrel Studio database, enables the self-service registration page, and registers the AD user authenticated in step 2. See Registration phase below.

Wiring is state-driven (stored under install state and emitted by the values renderer), so it survives later ivaap tls setup, ivaap enable / ivaap disable, and ivaap install --upgrade runs. Hand-edited Kerberos blocks in ivaap.values.yaml would be dropped by those commands.

Non-interactive example

ivaap kerberos setup \
  --domain ad.example.com \
  --user 'DOMAIN\svc-ivaap' \
  --password '<password>'

--password is visible in the process list on shared hosts — prefer the interactive prompt when possible.

Other flags:

Flag Purpose
--ldap-server <host\|url> Override LDAP server used for AD credential validation
--skip-registration Kerberos only — do not enable the registration page or register a user
--resume Skip the Kerberos half (already configured) and re-enter the registration phase
--studio-db-host, --studio-db-port, --studio-db-name Pre-fill Studio DB prompts (still verified in-cluster)

If Kerberos is already wired, setup offers to skip straight to the registration phase. --resume is the non-interactive form of that choice.

Registration phase

The final phase of ivaap kerberos setup (unless skipped) does the following:

  1. Image preflight — confirms the ivaap/frontend/registration image is imported. If it is missing, the phase is skipped with a warning and Kerberos wiring is left intact.
  2. Studio DB test — prompts for SQL Server hostname, database name (default master), and port (default 1433), then runs the connector's own tester (PetrelStudioDbTester) inside the live petrelstudiodbnode container. This exercises the exact JVM and krb5.conf the connector uses at runtime. Failures re-prompt until you answer n to stop retrying.
  3. Enable registration — sets ivaapRegistration.enabled, proxy route toggle, and registration configmap in state, then re-renders values and runs helm upgrade.
  4. Proxy rollout — rolls the proxy so it picks up the registration route.
  5. Register user — calls /registration/validate and /registration/register with the AD credentials. Missing profile fields (first name, last name, email) are prompted. A non-200 response is a warning — register manually at https://<fqdn>/registration/ if needed.

Pre-fill Studio DB prompts:

ivaap kerberos setup \
  --studio-db-host studio-db.corp.local \
  --studio-db-port 1433 \
  --studio-db-name master

Skip the whole phase:

ivaap kerberos setup --skip-registration

If the Studio DB test never passes

Answer n to the retry prompt. The registration page may still be enabled for later use, but AD user registration is skipped because it would fail against an unreachable database.

Do not hand-edit IVAAP_REG_CONNECTOR_DB_HOST in /opt/ivaap/ivaap.values.yaml — that file is regenerated from install state on every re-render (ivaap tls setup, node enable/disable, ivaap install --upgrade). Once you have the correct details:

ivaap kerberos setup --resume

--resume re-enters the registration phase only: AD credentials, Studio DB prompts (pre-filled from the last attempt), in-cluster test, render, helm upgrade, proxy roll, register. No krb5.conf regeneration and no backend restart for Kerberos.

Status

ivaap kerberos status

Shows whether Kerberos is enabled, domain, realm, authenticated user, whether the krb5-conf configmap exists, registration-page state, Studio DB coordinates, and whether the last run verified the database connection.

Rotate or update krb5.conf

Re-run ivaap kerberos setup when KDCs or realm settings change. Answer n when asked whether to skip to registration. The configmap is updated in place and the backend is rolled — a subPath configmap mount never refreshes in a live pod.

Disable

ivaap kerberos disable

Turns Kerberos off in install state, re-renders values (drops the mount, JVM options, and registration wiring), runs helm upgrade, and deletes the krb5-conf configmap. Disabling Kerberos also removes the registration page and service if they were enabled through setup.

Verify

Follow Verification in the hub guide. On k3s with ivaap-helpers installed:

kubectl -n ivaap exec deploy/ivaap-backend-deployment -c petrelstudiodbnode -- cat /etc/krb5.conf
kubectl -n ivaap exec deploy/ivaap-backend-deployment -c petrelstudiodbnode -- printenv IVAAP_NODE_JAVA_OPTS
Command When
ivaap enable petrelstudiodbnode Required before Kerberos — deploys the Studio connector
ivaap tls setup Independent of Kerberos; both can be active (TLS private-CA and krb5 mounts merge)
ivaap install --upgrade Preserves Kerberos wiring when state-driven setup was used

For command-line reference of all ivaap subcommands, see IVAAP All-in-one Binary.