OceanProtocolEnterprise / ocean-node

Apache License 2.0
0 stars 1 forks source link

Secure fallback defaults for `publisherTrustedAlgorithmPublishers` and `publisherTrustedAlgorithms` #24

Open Abrom8 opened 3 months ago

Abrom8 commented 3 months ago

Secure Default Configuration for publisherTrustedAlgorithmPublishers and publisherTrustedAlgorithms

Current Configuration Definition

Issue

The current configuration allows any published algorithm to be executed if the publisherTrustedAlgorithmPublishers field is not defined. This default behavior poses a significant security risk, potentially allowing untrusted or malicious algorithms.

Proposed Change

Modify the default behavior to enhance security:

This change will ensure that in the absence of an explicit configuration, the system defaults to the most secure state by not allowing the execution of any algorithms.