mpa: add custom_payload and PayloadProvider hook - #623
Open
sfc-gh-ikryvanos wants to merge 3 commits into
Open
Conversation
Extend Action with an optional google.protobuf.Any custom_payload included in the action hash, and add a registerable PayloadProvider callback that can populate Store requests before they are persisted. Co-authored-by: Cursor <cursoragent@cursor.com>
Clarifies that the context flag bypasses MPA client interceptors only, not server-side approval enforcement.
custom_payload is set by the requesting client, so bound its serialized size (16 KiB) to keep a single Store call from bloating the in-memory action store.
There was a problem hiding this comment.
Snowflake Security Review
Security grade: A — Passed ✅
No security findings after adjudication. This PR passes the Snowflake Security Review.
📊 6 of 9 files (3 tests skipped) · 2,208 lines reviewed · 11 candidates → 1 kept · 1 duplicate collapsed · retrieval: on
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Extend Action with an optional google.protobuf.Any custom_payload included in the action hash, and add a registerable PayloadProvider callback that can populate Store requests before they are persisted.