Async validate public container image URLs - #675
Open
czhu12 wants to merge 6 commits into
Open
Conversation
Adds a backend endpoint that checks if a public container image exists by querying the registry's v2 manifest API. Includes a Stimulus controller that debounces input and shows live validation feedback.
Skip async check when the input has a registry host (contains a dot) but no path yet, e.g. "docker.io" or "ghcr.io/". Only fires once a repository path is present.
Extracts image validation into its own namespaced controller at POST /projects/image_validation instead of a collection action on ProjectsController.
Works across all registries without manual auth handling.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
ContainerRegistry::ImageCheckerservice that validates public images against the registry v2 manifest API (supports Docker Hub auth tokens)POST /projects/validate_imageendpoint returning{ valid, error }image-validationStimulus controller with 500ms debounce, loading spinner, and success/error feedbackTest plan
nginx:latest) and verify the green checkmark appearsdocker.io/nonexistent/image123:v1) and verify the error message