Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Replace Docker Client with ORAS to handle interaction with OCI registries like DockerHub #451

Open
4 tasks
Ishaanj18 opened this issue Jul 25, 2024 · 1 comment · May be fixed by #456
Open
4 tasks

Replace Docker Client with ORAS to handle interaction with OCI registries like DockerHub #451

Ishaanj18 opened this issue Jul 25, 2024 · 1 comment · May be fixed by #456
Assignees

Comments

@Ishaanj18
Copy link
Contributor

Description

The recommend command is currently responsible for fetching policies from the policy-templates repository and suggesting them according to the workloads present in the cluster. It adjusts selectors and other policy attributes to tailor the recommendations. This process involves interactions with Docker Hub, pulling images, and extracting image details using the Docker client.

Proposed Change

Replace the Docker client with ORAS (OCI Registry as Storage) to handle interaction with OCI registries like DockerHub. ORAS is a tool that supports OCI-compliant registries, providing a more flexible and standard approach. ORAS offers a client library in Go that can be used: https://oras.land/docs/client_libraries/overview

Tasks

  • Identify all locations in code with interaction with OCI registries
  • Update the Scanner struct to use ORAS for registry interactions.
  • Replace the pullImage function to use ORAS for pulling images.
  • Modify the logic to save pulled images to a tar file using ORAS.
@daemon1024
Copy link
Member

#340

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 a pull request may close this issue.

2 participants