Skip to content

support plugins from an OCI registry #4480

Closed as not planned
Closed as not planned

Description

@kindermoumoute

What do you want to change?

Proposal: support to pull wasm plugins from an OCI registry.

oci://registryfoo.com/my/plugin?tag=v1.5.6

Similar work was done with opentofu plugins: https://opentofu.org/docs/cli/oci_registries

What database engines need to be changed?

No response

What programming language backends need to be changed?

No response

Activity

  1. kyleconroy commented on Aug 18, 2026

    @kyleconroy
    Collaborator

    I think HTTPS support is fine for now. No plans to add OCI support.

  2. bobdoah commented on Oct 19, 2026

    @bobdoah

    Apologies for not searching adequately, or adding any kind of justification.

    For my use case, HTTPS not great. I think HTTPS is sufficient for public plugins but there is a gap for private plugins.

    In my case, the repository requires authentication. As far as I can tell, sqlc's WASM plugin configuration doesn't support authentication headers or environment variable interpolation in URLs.

    This makes private plugin distribution difficult. In particular, a GitHub Actions workflow cannot download a release asset from another private repository using its default GITHUB_TOKEN.

    At the moment, this means, for me, a two-step process. I have to first download the plugin using a manually generated PAT.

    OCI support and docker/login-action would, in my opinion, make it easier for private plugins to be shared across repositories.

    It doesn't have to be OCI, environment variable or .netrc would make this workable. OCI just seemed like a good fit, looking at other examples I'd found such as Istio and wasmCloud

  3. danielloader commented on Oct 19, 2026

    @danielloader

    That's a fair point - in a private setting you often have a handful of permitted repositories for such things; AWS ECR, ghcr.io, Github self hosted enterprise etc.

    Would be extra useful for me to use in Github Actions CI jobs where the plugins are in other private repositories in the same organization and not accessible easily without some laborious steps:

    • hosting a HTTPS server with valid certificates
    • publishing bundles to it (and removing them for ephemeral builds) like a hand spun CDN
    • securing it and making it only accessible to Github Actions via something like tailscale

    Where as having ghcr.io OCI as an intermediate shared package transport makes it trivial and easier to justify to security teams seeking to review (and block) any external access to potentially untrusted executables in CI jobs.

    I appreciate this might not be what sqlc concerns itself with, so just thought I'd throw my two cents in on this as it's something I've just stumbled on myself.

  4. kyleconroy commented on Oct 19, 2026

    @kyleconroy
    Collaborator

    @bobdoah what OCI registry / repository are you using?

    @danielloader do you also need this? Or are you just speculating how it would be useful.

  5. danielloader commented on Oct 20, 2026

    @danielloader

    Found the issue looking for oci support for the above github actions testing using plugins. It's not critical but would be helpful!

  6. bobdoah commented on Oct 20, 2026

    @bobdoah

    7. @bobdoah what OCI registry / repository are you using?
    @danielloader do you also need this? Or are you just speculating how it would be useful.

    At the moment, Jfrog Artifactory

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions