Skip to content

Reject a host request that names an image and a template - #53

Merged
czpython merged 1 commit into
mainfrom
reject-image-with-template
Sep 19, 2026
Merged

czpython merged 1 commit into
mainfrom
reject-image-with-template

Conversation

@czpython

Copy link
Copy Markdown
Owner

A host request that named both an image and a template kept the image and silently dropped the template. Druks sent its installation image with every template, so its templated sandboxes booted the plain image without their setup (czpython/druks#646).

HostCreate now rejects a request that names both, with 422. A request that names a template always boots the template's image. The architecture doc states the rule, and the test that pinned the old precedence now checks the rejection.

Merge after czpython/druks#646 is deployed. Until then, Druks sends both, and its templated hosts would fail with 422.

@czpython
czpython merged commit 781a5c3 into main Sep 19, 2026
6 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.

1 participant