Skip to content

Conversation

wojcik91
Copy link
Contributor

@wojcik91 wojcik91 commented Oct 20, 2025

This adds the ability to trigger the enrollment process for uninitialized clients by providing the enrollment config through a file.

A client is assumed to be uninitialized if there are no instances configured in the DB. Only then do we check for the existence of the enrollment config.

Partially resolves #598

@wojcik91 wojcik91 self-assigned this Oct 20, 2025
@wojcik91 wojcik91 changed the title WIP client provisioning client auto-provisioning Oct 21, 2025
@wojcik91 wojcik91 marked this pull request as ready for review October 21, 2025 07:40
moubctez
moubctez previously approved these changes Oct 21, 2025
filipslezaklab
filipslezaklab previously approved these changes Oct 21, 2025
enrollment: { start, networkInfo },
} = useEnrollmentApi();

const handleAddInstance = async (payload: AddInstancePayload, rawLink?: string) => {
Copy link
Contributor

Choose a reason for hiding this comment

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

this is exposed outside via hook so should be in useCallback

refetchOnWindowFocus: false,
});

const handleProvisioning = async (config: ProvisioningConfig) => {
Copy link
Contributor

Choose a reason for hiding this comment

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

Maybe move this new logic to an component so it will be incapsulated on it's own rather then in ClientPage

@wojcik91 wojcik91 dismissed stale reviews from filipslezaklab and moubctez via 306e3b3 October 21, 2025 09:22
@wojcik91 wojcik91 merged commit c42f074 into dev Oct 21, 2025
3 checks passed
@wojcik91 wojcik91 deleted the client_initialization_mode branch October 21, 2025 10:07
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.

3 participants