Skip to content

Connect to Chainguard account, only suggest images that user has access to #55

@jdolitsky

Description

@jdolitsky

Currently the determination on how to provide convert FROM lines is based on naming conventions and the builtin-mappings.yaml

For example,
echo "FROM eclipse-temurin" | dfc --org=example.com -
--> FROM cgr.dev/example.com/jdk:latest-dev

However, in the example above, if the user does not have an image called "jdk" in their registry, this results in an unusable Dockerfile.

Add a flag such as --auth or --connect (or perhaps make this the default when --org is supplied), which will use the Chainguard SDK to list image repos in the account and only finalize the conversion of a FROM line if the user has access to the image.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions