Skip to content

Update behavior for publisherTrustedAlgorithms field processing #945

@MBadea17

Description

@MBadea17

At present, for compute type data sets, access verification for the publisherTrustedAlgorithms parameter allows unrestricted access to the dataset for the published algorithms when the array is empty. This approach needs to be revised to align with our new asset verification philosophy, ensuring access is denied unless explicitly defined.

The proposed changes address both issues listed below and consist of the following:

  1. Add a wildcard to represent all DIDs. It can look like the following structure:
    {
    "did":"*"
    }

  2. Update the node's behavior to perform the following;

  • if publisherTrustedAlgorithms array does not exist or is empty, deny access to all algorithms;
  • if publisherTrustedAlgorithms array contains an object with "did" === "*", allow access to all algorithms
  • if publisherTrustedAlgorithms array contains a list of objects, allow access only to algorithms with "did" and "filesChecksum" in the list.
  1. Update the documentation to reflect the changes.

Metadata

Metadata

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions