AWS cli: Tighten input validation pattern for put-agent-recommendation-feedback
Summary
Changes the documented validation pattern for a string parameter from `[\P{C}]+` to `(?:(?!\$\{[a-zA-Z]+:)[\P{C}\r\n])+`, additionally rejecting newlines and `${name:`-style template sequences; also updates prev/next navigation links and the CLI version reference to 2.40.4.
Security assessment
The new regex is a concrete input-validation hardening: it blocks carriage-return/line-feed characters (log/response splitting, header injection) and explicitly forbids `${identifier:` sequences, which are the syntax used for template/variable interpolation and are a classic vector for template or expression injection. This is evidence of tightening validation to prevent injection-style abuse of the feedback input, though it is a schema-level constraint rather than a disclosed CVE fix.
Evidence
> * pattern: `(?:(?!\$\{[a-zA-Z]+:)[\P{C}\r\n])+`
Diff
diff --git a/cli/latest/reference/wellarchitected/put-agent-recommendation-feedback.md b/cli/latest/reference/wellarchitected/put-agent-recommendation-feedback.md index b7c8e79..ded16e3 100644 --- a//cli/latest/reference/wellarchitected/put-agent-recommendation-feedback.md +++ b//cli/latest/reference/wellarchitected/put-agent-recommendation-feedback.md @@ -13,3 +13,3 @@ - * [next](start-agent-recommendation-generation.html "start-agent-recommendation-generation") | - * [previous](list-workloads.html "list-workloads") | - * [AWS CLI 2.40.3 Command Reference](../../index.html) » + * [next](put-agent-recommendation-policy.html "put-agent-recommendation-policy") | + * [previous](put-agent-profile-policy.html "put-agent-profile-policy") | + * [AWS CLI 2.40.4 Command Reference](../../index.html) » @@ -22,2 +22,2 @@ - * [← list-workloads](list-workloads.html "previous chapter \(use the left arrow\)") / - * [start-agent-recommendation-generation →](start-agent-recommendation-generation.html "next chapter \(use the right arrow\)") + * [← put-agent-profile-policy](put-agent-profile-policy.html "previous chapter \(use the left arrow\)") / + * [put-agent-recommendation-policy →](put-agent-recommendation-policy.html "next chapter \(use the right arrow\)") @@ -142 +142 @@ See also: [AWS API Documentation](https://docs.aws.amazon.com/goto/WebAPI/wellar -> * pattern: `[\P{C}]+` +> * pattern: `(?:(?!\$\{[a-zA-Z]+:)[\P{C}\r\n])+` @@ -265,2 +265,2 @@ None - * [← list-workloads](list-workloads.html "previous chapter \(use the left arrow\)") / - * [start-agent-recommendation-generation →](start-agent-recommendation-generation.html "next chapter \(use the right arrow\)") + * [← put-agent-profile-policy](put-agent-profile-policy.html "previous chapter \(use the left arrow\)") / + * [put-agent-recommendation-policy →](put-agent-recommendation-policy.html "next chapter \(use the right arrow\)") @@ -273,3 +273,3 @@ None - * [next](start-agent-recommendation-generation.html "start-agent-recommendation-generation") | - * [previous](list-workloads.html "list-workloads") | - * [AWS CLI 2.40.3 Command Reference](../../index.html) » + * [next](put-agent-recommendation-policy.html "put-agent-recommendation-policy") | + * [previous](put-agent-profile-policy.html "put-agent-profile-policy") | + * [AWS CLI 2.40.4 Command Reference](../../index.html) »