Skip to content

feat: create a hash command on open-component-model/cli #1227

@Skarlso

Description

@Skarlso

What would you like to be added:

Without signing we need a way to identify and generate the hash for a component version.

For example, filling the componentReference digest information like:

componentReferences:
  - name: helminput
    version: 0.0.0-main
    componentName: ocm.software/plugins/helminput
    digest:
      hashAlgorithm: algo
      normalisationAlgorithm: algo
      value: value

Hash calculation is done here: https://github.com/open-component-model/ocm/blob/a1890c261fc2a5ffb58ee1590662b04a752fa9a0/api/oci/ref.go#L72

Why is this needed:

Metadata

Metadata

Assignees

No one assigned

    Labels

    area/ipceiImportant Project of Common European Interestkind/featurenew feature, enhancement, improvement, extension

    Type

    No type
    No fields configured for issues without a type.

    Projects

    Status
    🛠️ Needs Refinement

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions