<#7673 Add max_len validation to ConditionAction p...
# flyte-github
a
#7673 Add max_len validation to ConditionAction prompt and description Pull request opened by SVilgelm Tracking issue Related to unionai/cloud#16949 Why are the changes needed?
ConditionAction.prompt
and
description
are user-supplied free text rendered in the console, emails, and Slack. Without a length cap a user can embed multi-MB payloads (e.g. base64 images in markdown) that end up stored in the actions service memory and type-spec blobs. Requested in unionai/cloud#16949 review. What changes were proposed in this pull request? Add
buf.validate
max_len
constraints to `ConditionAction`: • `prompt`: 4096 characters (matches the 4000-char tier used for notification template values) • `description`: 2048 characters (matches
DocumentationEntity.long_description
) Regenerated Go/Python/TS code (descriptor-only changes). How was this patch tested? Descriptor/annotation-only change; regenerated code compiles. Enforcement is covered by existing protovalidate integration. Labels • changed: For changes in existing functionality. Check all the applicable boxes • I updated the documentation accordingly. • All new and existing tests passed. • All commits are signed-off. flyteorg/flyte