AWS cli medium security documentation change
Summary
Updated CLI version reference, added authentication documentation, modified pattern validation, and added AllowAndroidApps/AllowAppleApps parameters with app restrictions
Security assessment
Added documentation for API key authentication and introduced app-specific restrictions (Android package/certificate fingerprint and Apple BundleID validation) to enforce origin controls. The pattern changes ([\w!$&()*+,./:;=?@\x{60}-]|%([\dA-Fa-f]{2}|[\dA-Fa-f]?\*))+) suggest stricter input validation to prevent malformed values. These changes directly relate to security controls for API key usage.
Diff
diff --git a/cli/latest/reference/location/list-keys.md b/cli/latest/reference/location/list-keys.md index f311e0311..610a784a0 100644 --- a//cli/latest/reference/location/list-keys.md +++ b//cli/latest/reference/location/list-keys.md @@ -15 +15 @@ - * [AWS CLI 2.31.21 Command Reference](../../index.html) » + * [AWS CLI 2.31.23 Command Reference](../../index.html) » @@ -60,0 +61,2 @@ Lists API key resources in your Amazon Web Services account. +For more information, see [Use API keys to authenticate](https://docs.aws.amazon.com/location/latest/developerguide/using-apikeys.html) in the _Amazon Location Service Developer Guide_ . + @@ -384 +386 @@ Entries -> (list) ->>>> * min: `1` +>>>> * min: `0` @@ -395 +397,59 @@ Entries -> (list) ->>>>> * pattern: `([$\-._+!*\x{60}(),;/?:@=&\w]|%([0-9a-fA-F?]{2}|[0-9a-fA-F?]?[*]))+` +>>>>> * pattern: `([\w!$&()*+,./:;=?@\x{60}-]|%([\dA-Fa-f]{2}|[\dA-Fa-f]?\*))+` +>>>>> + +>>> +>>> AllowAndroidApps -> (list) +>>> +>>>> An optional list of allowed Android applications for which requests must originate from. Requests using this API key from other sources will not be allowed. +>>>> +>>>> Constraints: +>>>> +>>>> * min: `0` +>>>> * max: `5` +>>>> + +>>>> +>>>> (structure) +>>>> +>>>>> Unique identifying information for an Android app. Consists of a package name and a 20 byte SHA-1 certificate fingerprint. +>>>>> +>>>>> Package -> (string) [required] +>>>>> +>>>>>> Unique package name for an Android app. +>>>>>> +>>>>>> Constraints: +>>>>>> +>>>>>> * min: `1` +>>>>>> * max: `255` +>>>>>> * pattern: `([A-Za-z][A-Za-z\d_]*\.)+[A-Za-z][A-Za-z\d_]*` +>>>>>> + +>>>>> +>>>>> CertificateFingerprint -> (string) [required] +>>>>> +>>>>>> 20 byte SHA-1 certificate fingerprint associated with the Android app signing certificate. +>>>>>> +>>>>>> Constraints: +>>>>>> +>>>>>> * min: `59` +>>>>>> * max: `59` +>>>>>> * pattern: `([A-Fa-f0-9]{2}:){19}[A-Fa-f0-9]{2}` +>>>>>> + +>>> +>>> AllowAppleApps -> (list) +>>> +>>>> An optional list of allowed Apple applications for which requests must originate from. Requests using this API key from other sources will not be allowed. +>>>> +>>>> Constraints: +>>>> +>>>> * min: `0` +>>>> * max: `5` +>>>> + +>>>> +>>>> (structure) +>>>> +>>>>> Unique identifying information for an Apple app (iOS, macOS, tvOS and watchOS). Consists of an Apple Bundle ID. +>>>>> +>>>>> BundleId -> (string) [required] @@ -396,0 +457,8 @@ Entries -> (list) +>>>>>> The unique identifier of the app across all Apple platforms (iOS, macOS, tvOS, watchOS, etc.) +>>>>>> +>>>>>> Constraints: +>>>>>> +>>>>>> * min: `1` +>>>>>> * max: `155` +>>>>>> * pattern: `[A-Za-z0-9\-]+(\.[A-Za-z0-9\-]+)+` +>>>>>> @@ -428 +496 @@ NextToken -> (string) - * [AWS CLI 2.31.21 Command Reference](../../index.html) » + * [AWS CLI 2.31.23 Command Reference](../../index.html) »