SimplyStaking / panic

PANIC Monitoring and Alerting For Blockchains
Apache License 2.0
82 stars 31 forks source link

API: Add deep reference checking/changes and unique source names in Config endpoints #339

Closed Cherrett closed 1 year ago

Cherrett commented 1 year ago

Technical Story

The node operator needs to be aware of an invalid reference if one is provided in an API call. Moreover, the node operator needs to be aware if a source name was already used.

Description

We must return an error if an invalid/non-existent reference is used in any of the config API calls. This is also the case for when we update any references within a config object. Moreover, we must make sure that any sources names are unique.

In this context, sources include the following: nodes, evmNodes, systems, and repositories.

This unique approach must also be between different sources. So for example, we cannot have a system name equal to another node name or a repo name equal to an evm node name.

Requirements

Blocked by

N/A

Acceptance criteria