fission-codes / fission

Fission CLI & server
https://runfission.com/docs
119 stars 14 forks source link

Validate UCAN resource #621

Closed icidasset closed 2 years ago

icidasset commented 2 years ago

Checks the resource of the UCAN used with the append endpoint, and fixes the domain name used in the "delegated" UCAN resources.

Test plan (required)

Using a UCAN with an invalid resource, ie. a rsc that doesn't match { "app": "DOMAIN_OF_APP" }, should produce a 403 status.