feat: add support for CNCF WASM OCI Artifact media types

What does this MR do?

Adds support for the CNCF WASM OCI Artifact media types:

  • application/vnd.wasm.config.v0+json (component configuration)
  • application/wasm (binary content layer)

Why?

The GitLab Container Registry does not currently support the CNCF WASM OCI Artifact media types defined by the CNCF TAG Runtime WASM Working Group. This prevents users from pushing WebAssembly components using standard tooling like wkg from the Bytecode Alliance.

When pushing WASM components using wkg oci push, users receive:

Error: Unable to push image
Caused by:
    Server error: code: 400,
    message: {"errors":[{"code":"MANIFEST_INVALID","message":"manifest invalid","detail":"unknown media type: application/vnd.wasm.config.v0+json"}]}

Changes

  1. Added database migration to insert the new media types
  2. Updated docs/supported-media-types.md

Closes #1869 (closed)

Similar past MRs

This follows the same pattern as:

  • Flux media types support
  • Falco media types support (GitLab 16.3)

Merge request reports

Loading