ceramicnetwork / ceramicnetwork/rust-ceramic

Reject unsigned init events with data for MID/model stream types

Open
#655 0 comments 1 reaction 0 assignees View on GitHub
Dominant language
Rust
Stars
51
Forks
20
PR merge metrics
No merged PRs in 30d

Description

# Description

Currently, an unsigned init event with data will be successfully store and validate. This should be rejected as MID and Model stream types require init events with data are signed. We actually have a test for one of these explicitly, as it was found in the wild (see #404), but it must have been created at a strange time as it would no longer be accepted by js-ceramic.

# Technical Information

The event builder should prevent creating these types of events, but the HTTP/recon APIs are currently less strict.

Not entirely sure where this should live, we could enforce it in `decode_car`, or in the initial (signature/history) validation logic, or in the pipeline (schema validation).

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.