Skip to content

Proxy Mode doesn't work for AWS China #102

@jizusun

Description

@jizusun
❯ iamlive --mode proxy --set-ini --output-file policy.json --force-wildcard-resource --debug
POST / HTTP/1.1
Host: sts.cn-north-1.amazonaws.com.cn
User-Agent: aws-cli/2.27.45 md/awscrt#0.26.1 ua/2.1 os/linux#6.6.87.2-microsoft-standard-WSL2 md/arch#x86_64 lang/python#3.13.4 md/pyimpl#CPython m/E cfg/retry-mode#standard md/installer#exe md/distrib#arch sid/17e3ae633fc6 md/prompt#off md/command#sts.get-caller-identity
Content-Length: 43
Accept-Encoding: identity
Authorization: AWS4-HMAC-SHA256 Credential=ASIAZM36XNO7W4LNVOJG/20251107/cn-north-1/sts/aws4_request, SignedHeaders=content-type;host;x-amz-date;x-amz-security-token, Signature=38085d90cd410be4e2d4ea5980e6d507245f3b6df5f59129f71c14531ec519fa
Content-Type: application/x-www-form-urlencoded; charset=utf-8
X-Amz-Date: 20251107T164150Z
X-Amz-Security-Token: <redacted>
Action=GetCallerIdentity&Version=2011-06-15
GET / HTTP/1.1
Host: s3.cn-north-1.amazonaws.com.cn
User-Agent: aws-cli/2.27.45 md/awscrt#0.26.1 ua/2.1 os/linux#6.6.87.2-microsoft-standard-WSL2 md/arch#x86_64 lang/python#3.13.4 md/pyimpl#CPython m/C,E cfg/retry-mode#standard md/installer#exe md/distrib#arch sid/17e3ae633fc6 md/prompt#off md/command#s3.ls
Accept-Encoding: identity
Authorization: AWS4-HMAC-SHA256 Credential=ASIAZM36XNO7W4LNVOJG/20251107/cn-north-1/s3/aws4_request, SignedHeaders=host;x-amz-content-sha256;x-amz-date;x-amz-security-token, Signature=1e05da07244097ddff0017c9470669d64095643c6f8f5ddbc33bd5875511b55c
X-Amz-Content-Sha256: e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855
X-Amz-Date: 20251107T164153Z
X-Amz-Security-Token: <redacted>



^C%                                                                                                                
❯ cat policy.json
{
    "Version": "2012-10-17",
    "Statement": []
}%          
❯ aws sts get-caller-identity

❯ aws s3 ls

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions