Add image query resolver class to container-scanning
Description
Create an image query resolver class that can match and retrieve container images from remote registries based on user-provided image names and versions.
Requirements
- Accept image name and version specifiers from customers
- Query remote registries to find matching images
- Initially support GitLab Container Registry
- Support both SaaS and self-managed instances
- Implement minimal authentication configuration for HTTP requests
- Handle multiple image matches
- Cache HTTP responses to ensure that we keep the scans fast
Technical Considerations
- Design a flexible resolver interface that can be extended for other registry types
- Implement secure authentication handling
- Consider rate limiting and error handling for registry requests
- Support pattern matching for image names and versions
Acceptance Criteria
- Resolver class can accept image name and version parameters
- Successfully authenticates with GitLab Container Registry
- Returns matching images from the registry
- Handles both GitLab SaaS and self-managed instances
- Includes proper error handling and logging
- Documentation for implementation and usage
Out of Scope
- Support for other container registries besides GitLab
- Image pulling/downloading functionality
- Image validation or security scanning
Description was generated using AI
This page may contain information related to upcoming products, features and functionality. It is important to note that the information presented is for informational purposes only, so please do not rely on the information for purchasing or planning purposes. Just like with all projects, the items mentioned on the page are subject to change or delay, and the development, release, and timing of any products, features, or functionality remain at the sole discretion of GitLab Inc.
Edited by 🤖 GitLab Bot 🤖