AWS cli medium security documentation change
Summary
Updated CLI version reference, modified pattern validation, and added AllowAndroidApps/AllowAppleApps parameters to update command
Security assessment
Enabled updating API keys with app-specific restrictions (Android package/certificate fingerprint and Apple BundleID validation) to enforce origin controls. Pattern validation changes align with list-keys.md security improvements. These changes enhance security by allowing granular control over authorized apps.
Diff
diff --git a/cli/latest/reference/location/update-key.md b/cli/latest/reference/location/update-key.md index aa42d7247..9f7572cc6 100644 --- a//cli/latest/reference/location/update-key.md +++ b//cli/latest/reference/location/update-key.md @@ -15 +15 @@ - * [AWS CLI 2.31.21 Command Reference](../../index.html) » + * [AWS CLI 2.31.23 Command Reference](../../index.html) » @@ -244 +244 @@ See also: [AWS API Documentation](https://docs.aws.amazon.com/goto/WebAPI/locati ->> * min: `1` +>> * min: `0` @@ -255 +255,32 @@ 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_]*` +>>>> + +>>> +>>> CertificateFingerprint -> (string) [required] @@ -256,0 +288,35 @@ See also: [AWS API Documentation](https://docs.aws.amazon.com/goto/WebAPI/locati +>>>> 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\-]+)+` +>>>> @@ -262 +328 @@ 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}] @@ -271 +337,14 @@ JSON Syntax: - "AllowReferers": ["string", ...] + "AllowReferers": ["string", ...], + "AllowAndroidApps": [ + { + "Package": "string", + "CertificateFingerprint": "string" + } + ... + ], + "AllowAppleApps": [ + { + "BundleId": "string" + } + ... + ] @@ -416 +495 @@ UpdateTime -> (timestamp) - * [AWS CLI 2.31.21 Command Reference](../../index.html) » + * [AWS CLI 2.31.23 Command Reference](../../index.html) »