All Products
Search
Document Center

Edge Security Acceleration:How do I configure cross-account back-to-origin for a private OSS bucket?

Last Updated:Mar 06, 2026

This document explains how to use STS temporary security tokens to enable cross-account back-to-origin for a private OSS bucket. Compared with the complex configuration of permanent AccessKey credentials, STS provides a more flexible and secure alternative. It helps you simplify permission management and improve the security of resource access.

By default, ESA uses STS to support back-to-origin only for private OSS buckets in the same Alibaba Cloud account. To enable cross-account back-to-origin for a private OSS bucket using STS, you can manually add a bucket authorization policy in OSS. Follow these steps:

  1. Log on to the Alibaba Cloud account that owns the private bucket. Then open the OSS console.

  2. In the left navigation pane, click Buckets > Target Bucket > Permission Control > Bucket Policy. On the Permission Control Bucket Policy tab, click Authorize.

    image

  3. For Authorized User, select Other Account. Enter arn:sts:uid, where uid is the account ID of the Alibaba Cloud account that hosts ES. For Authorized Operation, choose Quick Setup > Read-Only (excluding ListObject). Then click OK.

    image

  4. After you successfully add the policy, view the authorization details on the Bucket Policy tab.

    image