iroha icon indicating copy to clipboard operation
iroha copied to clipboard

fix: inherit trigger authority from entrypoint authority

Open s8sato opened this issue 6 months ago • 1 comments

Context

In my latest assessment, the failure of the domain_owner_trigger_permissions test after PR #5457 is not because this PR introduced a bug, but because correctly routing trigger execution to the executor revealed a flaw in the previous implementation: by-call triggers should have sourced authority from the execution-time event.authority rather than the registration-time action.authority. This PR fixes that.

Also make data triggers inherit the entrypoint's authority, closing #5441.

s8sato avatar Jun 19 '25 21:06 s8sato

by-call triggers should have sourced authority from the execution-time event.authority rather than the registration-time action.authority.

Why? If so, what is the point of setting action.authority for the by-call triggers?

0x009922 avatar Jun 20 '25 05:06 0x009922