Updated on 2026-01-12 GMT+08:00

Private Access Overview

Scenarios

When using CodeArts, some users have the following network isolation requirements:

  • Isolate a private network from the public network and access CodeArts on the public cloud through Virtual Private Cloud (VPC) endpoints.
  • Shield CodeArts access from the Internet, preventing employees from obtaining R&D assets at home or in other environments after leaving the enterprise intranet.

To address these isolation requirements, CodeArts provides the private access feature with the following key capabilities. The figure below shows a typical scenario of this feature.

  • Use VPC endpoints to securely access CodeArts through Virtual Private Network (VPN) or Direct Connect.
  • Prevent public access to CodeArts web page and open APIs, and allow only access from specified VPC endpoint IDs.
  • Prevent public download from and upload to CodeArts Repo and CodeArts Artifact, and allow only access using specified VPC endpoint IDs.
Figure 1 Overview

Constraints

  • Currently, private access is available in the following regions:
    • AP-Singapore
    • LA-Sao Paulo1
  • Ensure that you have a Huawei Cloud account or an IAM user with the Tenant Administrator role.

    For details about how an administrator grants the Tenant Administrator role to an IAM user, see Creating a User Group and Assigning Permissions.

  • After configuring private access, you can only use the custom executors in your VPC to execute tasks in CodeArts Build, CodeArts Deploy, and CodeArts Pipeline. For details about how to configure custom executors in CodeArts, see Managing Agent Pools.

Procedure

The following figure shows the process of configuring private access to CodeArts.

Figure 2 Procedure

Table 1 Procedure

Step

Description

Step 1: Configure private access

  1. Create a proxy VPC and VPC endpoint with your tenant to connect to CodeArts services.
    • If you do not have a proxy VPC, perform 1 to 7.
    • If you already have a proxy VPC, perform 5.
    CAUTION:

    After the VPCEP is created, it will be billed on a pay-per-use basis. For details, see VPCEP Price Calculator.

  2. Configure a VPN to connect your on-premises network to the proxy VPC.

Step 2: Block public access

Configure ACLs to limit CodeArts access only to specified VPC endpoints.

Step 3: Configure local access to CodeArts

Configure the private access address of CodeArts in your local hosts file. This enables you to access CodeArts through your private network after public access is disabled.