Skip to content

Remove deprecated OBO enterprise hooks and sentinels #7200

Open

Description

@tgrunnagle

Summary

Placeholder: remove the deprecated OBO "enterprise overlay" hooks and sentinels once nothing uses them anymore.

Why

#7199 makes Entra OBO a built-in OSS strategy. It keeps the old extension hooks exported but // Deprecated: so the private enterprise overlay still compiles until it is deleted. When the overlay is gone, the hooks are dead surface area: indirection, mutex-guarded globals, and stale "requires an enterprise build" error paths.

Deprecated code to remove

  • controllerutil.OBOHandler, RegisterOBOHandler, OBOValidate, OBOSecretEnvVars, OBOApplyRunConfig, and the oboMu / oboHandler globals (cmd/thv-operator/pkg/controllerutil/tokenexchange.go)
  • obo.RegisterFactory, obo.DefaultFactory, and the currentFactory / factoryMu indirection (pkg/auth/obo/middleware.go)
  • auth.RegisterOBOStrategy / NewOBOStrategy and their globals (pkg/vmcp/auth/obo.go)
  • obo.ErrEnterpriseRequired and any remaining errors.Is(..., ErrEnterpriseRequired) branches (controllers, AddOBOSecretEnvVars, the vMCP condition mirroring)
  • ConditionReasonEnterpriseRequired: this follows the one-release deprecation window, because the constant was documented as a user-facing contract
  • Leftover comments that mention out-of-tree or enterprise builds for OBO

Blocked by

Acceptance criteria

  • None of the symbols above exist in the codebase.
  • git grep -i "EnterpriseRequired\|RegisterOBO\|obo.RegisterFactory" returns nothing outside the changelog or release notes.
  • task lint and task test pass.
  • The release notes call out removal of the deprecated exported symbols and the condition reason.

Activity

  1. added
    needs-triage
    on Nov 19, 2026
  2. self-assigned this
    on Nov 19, 2026
  3. removed
    needs-triage
    on Nov 19, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions