mirror of
https://github.com/siderolabs/image-factory.git
synced 2026-05-05 12:26:17 +02:00
Move ownership/auth checks from scattered frontend handlers into schematic.Factory.Get, which now accepts an OwnershipChecker. This eliminates duplicated checkOwnership methods across http and spdx frontends and ensures anonymous callers cannot probe schematic existence when auth is enabled. Also guard PXE credential embedding behind AuthProvider != nil so credentials are never propagated when auth is disabled. Signed-off-by: Mateusz Urbanek <mateusz.urbanek@siderolabs.com>