]> git.ipfire.org Git - thirdparty/ipxe.git/commit
[cloud] Support creation of a censorship bypass role for Alibaba Cloud master
authorMichael Brown <mcb30@ipxe.org>
Tue, 14 Apr 2026 12:59:38 +0000 (13:59 +0100)
committerMichael Brown <mcb30@ipxe.org>
Tue, 14 Apr 2026 13:22:21 +0000 (14:22 +0100)
commit09c17f76c3611e24c74cd83a8d65297f256fdc0e
tree2e2c51396675d1584d7bb155ed47abdccbb68470
parent0e70ad18835ff4f56c9614ce6afa6d17993d7f13
[cloud] Support creation of a censorship bypass role for Alibaba Cloud

Importing images into Alibaba Cloud currently relies upon using a
temporary Function Compute function to work around Chinese state
censorship laws that prevent direct access to OSS bucket contents in
mainland China regions.

Unfortunately, Alibaba Cloud regions are extremely asymmetric in terms
of feature support.  (For example, some regions do not even support
IPv6 networking.)  Several mainland China regions do not support
Function Compute, and so this workaround is not available for those
regions.

A possible alternative censorship workaround is to create temporary
ECS virtual machine instances instead of temporary Function Compute
functions.  This requires the existence of a role that can be used by
ECS instances to access OSS.  We cannot use the AliyunFcDefaultRole
that is currently used by Function Compute, since this role cannot be
assumed by ECS instances.

Creating roles is a privileged operation, and it would be sensible to
assume that the image importer (which may be running as part of a
GitHub Actions workflow) may not have permission to itself create a
suitable temporary role.  The censorship bypass role must therefore be
set up once in advance by a suitably privileged user.

Add the ability to create a suitable censorship bypass role to the
Alibaba Cloud setup utility.

Signed-off-by: Michael Brown <mcb30@ipxe.org>
contrib/cloud/ali-setup