mirror of
https://github.com/floci-io/floci.git
synced 2026-11-24 06:20:24 -05:00
* fix(ssm): validate SettingValue and require an account list on ModifyDocumentPermission UpdateServiceSetting.SettingValue was read with plain asText(), so an absent or blank value silently stored an empty customized setting, and botocore's ServiceSettingValue max (4096) was never enforced. ModifyDocumentPermission accepted a request with neither AccountIdsToAdd nor AccountIdsToRemove and returned success having shared/unshared nothing, when botocore documents at least one of the two as required. * fix(ssm): review comments — whitespace SettingValue, non-list AccountIds, message format Greptile: isBlank() rejected a whitespace-only SettingValue even though botocore's ServiceSettingValue constraint is length-only (min 1); switched to isEmpty(). Copilot: a non-list AccountIdsToAdd/AccountIdsToRemove payload was silently treated as an empty list because forEach() on a scalar/object node yields no elements, so the new "neither list specified" guard could pass a malformed request. Reject a present-but-non-array field explicitly, and reworded that guard's message to match this file's "1 validation error detected:" prefix.