Skip to content

Keep server image pulls on the allowed itzg repositories - #296

Merged
athNdev merged 5 commits into
mainfrom
feat/image-pull-identity
Nov 4, 2026
Merged

athNdev merged 5 commits into
mainfrom
feat/image-pull-identity

Conversation

@athNdev

@athNdev athNdev commented Oct 28, 2026

Copy link
Copy Markdown
Owner

Summary

  • A Minecraft server image is a tag on itzg/minecraft-server, or a full reference to that repository or itzg/minecraft-bedrock-server. Other repositories are rejected, and a full Java reference is stored as the tag the image picker already uses.
  • A pull is shared across concurrent callers of the same reference on one client. It counts as success only after the daemon reports the image present. An image that is already local skips the registry, including module containers.

Test plan

  • go test ./internal/docker/ covers tag, Bedrock, digest, foreign-repository rejection, a missing image after a successful pull stream, a warm cache, and one shared pull.
  • go test ./internal/blueprint/ checks the builtin Bedrock seed resolves without a doubled repository prefix.
  • go test ./internal/rpc/services/ -run TestCreateServerRejectsAnUnapprovedImage|TestCreateServerKeepsABedrockImageReference|TestCreateServerKeepsAJavaImageAsATag
  • Browser check is not required; this change has no screen.

@athNdev
athNdev merged commit 0bb56c5 into main Nov 4, 2026
10 checks passed
@athNdev
athNdev deleted the feat/image-pull-identity branch November 4, 2026 00:04
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