Skip to content

feat(hyperv): implement kerberos session auth - #431

Merged
DuckBoss merged 2 commits into
feat-kerberos-authfrom
jlocash/wire-kerberos-config
Aug 6, 2026
Merged

feat(hyperv): implement kerberos session auth #431
DuckBoss merged 2 commits into
feat-kerberos-authfrom
jlocash/wire-kerberos-config

Conversation

@jlocash

@jlocash jlocash commented Aug 4, 2026

Copy link
Copy Markdown

This PR is a follow-up to #430 and wires up the new kerberos configuration options.

First, these changes add python3-requests-gssapi as a required dependency in the spec file. This package provides the HTTPSPNEGOAuth session auth used to authenticate via kerberos to HyperV.

As for configuring kerberos auth, there are a few different ways:

  • When auth_method is set to kerberos, virt-who will try and construct an HTTPSPNEGOAuth object. Otherwise, basic auth will be used
  • If kerberos_princpal is unset, then the default principal will be used from the given keytab
  • If kerberos_keytab (file path) is unset, the default credential cache will be used
  • The two above values are used to construct a gssapi.Credentials object used by HTTPSPNEGOAuth.

Card ID: CCT-2189

@jlocash
jlocash force-pushed the jlocash/wire-kerberos-config branch from f0b8a96 to a77ccbb Compare August 4, 2026 15:00
@jlocash jlocash changed the title Jlocash/wire kerberos config feat(hyperv): implement kerberos session auth Aug 4, 2026
@jlocash
jlocash force-pushed the jlocash/wire-kerberos-config branch from 54fd21a to 18fea0c Compare August 4, 2026 17:37
- Added a copr_build job triggered on pull requests, targeting
centos-stream-10

Signed-off-by: Joshua Locash <jlocash@redhat.com>
@jlocash
jlocash force-pushed the jlocash/wire-kerberos-config branch 2 times, most recently from 405b795 to cd2e97b Compare August 4, 2026 17:49
- Card ID: CCT-2189
- When `auth_method` is configured to `kerberos`, configures an HTTPSNEGOAuth object for kerberos auth when connecting to HyperV

Signed-off-by: Joshua Locash <jlocash@redhat.com>
Assisted-by: Claude Sonnet 5 <noreply@anthropic.com>
@jlocash
jlocash force-pushed the jlocash/wire-kerberos-config branch from cd2e97b to e671565 Compare August 4, 2026 18:33
@jlocash
jlocash marked this pull request as ready for review August 4, 2026 18:41
@jlocash
jlocash requested a review from cnsnyder August 4, 2026 18:42

@DuckBoss DuckBoss left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, pytest failures are pre-existing and should be resolved in a separate PR.

@DuckBoss
DuckBoss merged commit 5bf201c into feat-kerberos-auth Aug 6, 2026
8 of 9 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants