AWS cli medium security documentation change
Summary
Updated API key documentation to add AllowAndroidApps and AllowAppleApps restrictions, modified regex patterns, and updated CLI version reference
Security assessment
Added restrictions for Android/iOS app origins and tightened regex patterns for security validation. The AllowAndroidApps/AllowAppleApps restrictions directly control API key usage sources, addressing potential unauthorized access vectors.
Diff
diff --git a/cli/latest/reference/location/create-key.md b/cli/latest/reference/location/create-key.md index 5b84181c1..646533231 100644 --- a//cli/latest/reference/location/create-key.md +++ b//cli/latest/reference/location/create-key.md @@ -15 +15 @@ - * [AWS CLI 2.31.21 Command Reference](../../index.html) » + * [AWS CLI 2.31.23 Command Reference](../../index.html) » @@ -61,3 +61 @@ Creates an API key resource in your Amazon Web Services account, which lets you -### Note - -For more information, see [Using API keys](https://docs.aws.amazon.com/location/previous/developerguide/using-apikeys.html) . +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_ . @@ -227 +225 @@ See also: [AWS API Documentation](https://docs.aws.amazon.com/goto/WebAPI/locati ->> * min: `1` +>> * min: `0` @@ -238 +236,30 @@ See also: [AWS API Documentation](https://docs.aws.amazon.com/goto/WebAPI/locati ->>> * 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_]*` +>>>> + @@ -239,0 +267,37 @@ See also: [AWS API Documentation](https://docs.aws.amazon.com/goto/WebAPI/locati +>>> 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] +>>> +>>>> 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\-]+)+` +>>>> @@ -245 +309 @@ Shorthand Syntax: - AllowActions=string,string,AllowResources=string,string,AllowReferers=string,string + AllowActions=string,string,AllowResources=string,string,AllowReferers=string,string,AllowAndroidApps=[{Package=string,CertificateFingerprint=string},{Package=string,CertificateFingerprint=string}],AllowAppleApps=[{BundleId=string},{BundleId=string}] @@ -254 +318,14 @@ JSON Syntax: - "AllowReferers": ["string", ...] + "AllowReferers": ["string", ...], + "AllowAndroidApps": [ + { + "Package": "string", + "CertificateFingerprint": "string" + } + ... + ], + "AllowAppleApps": [ + { + "BundleId": "string" + } + ... + ] @@ -486 +563 @@ CreateTime -> (timestamp) - * [AWS CLI 2.31.21 Command Reference](../../index.html) » + * [AWS CLI 2.31.23 Command Reference](../../index.html) »