0002-00000002

更新时间:
复制 MD 格式

Problem description

OSS cannot find the AccessKey ID in a request that uses Security Token Service (STS) temporary credentials for authentication.

Causes

  • The AccessKey ID in the request does not match the AccessKey ID issued by STS. For example, the request uses STS temporary credentials but includes the permanent AccessKey ID of a RAM user instead of the STS-issued AccessKey ID.

  • A RAM user's AccessKey ID is used for authentication, but the request also includes a security-token parameter in the signed URL or an x-oss-security-token header. When OSS detects either of these fields, it switches to STS-based authentication and finds that the RAM user's AccessKey ID does not match the STS-issued AccessKey ID.

  • The STS-issued AccessKey ID has expired.

Examples

  • STS temporary credentials are used in the request, but the AccessKey ID specified in the request is the permanent AccessKey ID of a RAM user, not the AccessKey ID obtained from STS.

  • The intent is to authenticate as a RAM user, but the security-token field is included as a parameter in the signed URL, or the x-oss-security-token field is included in the request headers. This causes OSS to authenticate the request using STS credentials instead of RAM user credentials.

  • The AccessKey ID obtained from STS is used to send a request, but the temporary credentials have since expired.

Solutions