Documentation

esc
    Move to Pantech / Connect Huawei Cloud

    Connect Huawei Cloud

    Give Pantech read-only access to your Huawei Cloud projects with an OpenID Connect identity provider and a custom policy, without creating an access key, and keep its signing keys up to date.

    Pantech reads your Huawei Cloud projects through an IAM identity provider that trusts Pantech's issuer, with a mapping rule that admits only your connection into a read-only user group. No access key is created or shared: Pantech signs a token for this connection, and Huawei Cloud swaps it for read-only access to the region projects you choose.

    You need permission in Huawei Cloud IAM to create user groups, custom policies and identity providers. On Pantech you need to be an Owner or Admin of your organization.

    Create the connection

    Terminal
    $ curl -X POST https://api.pantechdynamics.com/public/v1/cloud-connections \    -H "Authorization: Bearer $PANTECH_API_KEY" \    -H "Idempotency-Key: $(uuidgen)" \    -H "Content-Type: application/json" \    -d '{"provider": "huawei", "name": "Production Huawei Cloud"}'

    The connection is awaiting role. Its setup holds the steps (template, in Markdown) and three files to paste:

    File in setup.filesWhat it is
    pantech-migrate-readonly-policy.jsonThe custom policy: the read actions below and nothing else
    openid-connect-config.jsonThe identity provider's configuration: access type programmatic, Pantech's issuer as the identity provider URL, client ID pantech-migrate, and a place for the signing key
    mapping.jsonThe mapping rule: only the subject that is this connection's id becomes the user pantech-migrate, in the group pantech-migrate-readonly

    Set it up in Huawei Cloud

    1. IAM › User Groups. Create the group pantech-migrate-readonly. Create a custom policy from pantech-migrate-readonly-policy.json, and grant it to the group on each region project you want scanned.
    2. IAM › Identity Providers. Create an identity provider named as the setup steps say (pantech-migrate-…), protocol OpenID Connect, access type Programmatic access. Configure it from openid-connect-config.json: the identity provider URL is your connection's setup.issuer_url, the client ID is pantech-migrate, and the signing key is the whole content of <issuer_url>/jwks.json.
    3. Mapping rules. Edit the identity provider's mapping rules and paste mapping.json. It admits only this connection's subject.
    4. Send Pantech the identity provider's name and the region projects to scan (1 to 20):
    Terminal
    $ curl -X PATCH https://api.pantechdynamics.com/public/v1/cloud-connections/ccn_06gk3x9tq7m2v8r4y1c5d0zp8w \    -H "Authorization: Bearer $PANTECH_API_KEY" \    -H "Idempotency-Key: $(uuidgen)" \    -H "Content-Type: application/json" \    -d '{"huawei": {"identity_provider_id": "pantech-migrate-…", "projects": [{"region": "<region>", "id": "<project-id>"}]}}'

    The connection moves to verifying while Pantech signs in once, then to connected, or to failed with a reason.

    Keep the signing keys current

    Huawei Cloud is the one cloud that does not fetch Pantech's public keys by itself: they are pasted into the identity provider as its signing key. When Pantech rotates the keys it signs these tokens with, it publishes the new key next to the old one for a notice period and tells you. During that period, paste the new content of <issuer_url>/jwks.json into the identity provider's signing key: a key set holding both keys works with either.

    If you miss it, the next check or scan fails with assume_role_denied until you paste the current key set and retry.

    Every permission the policy holds

    ActionWhat for
    ecs:cloudServers:list, ecs:cloudServerFlavors:getServers, and their sizes
    evs:volumes:listDisks
    vpc:vpcs:list, vpc:subnets:listNetworks and subnets
    vpc:securityGroups:get, vpc:securityGroupRules:getSecurity groups and their rules
    vpc:publicIps:listElastic IPs
    elb:loadbalancers:listLoad balancers
    rds:instance:listRDS databases
    iam:users:listUsersPeople
    billing:bill:viewMonthly bills, for the price comparison

    What a scan reads

    Servers, disks, VPCs and subnets, security groups, Elastic IPs, load balancers and RDS databases in each project you listed; IAM users with their email; and the monthly summary bills for spend. Huawei Cloud's people are always suggested as Members on Pantech, since their groups are not read: make someone an Admin on the plan before you invite them.

    If the check fails

    CodeWhat it meansWhat to do
    assume_role_deniedHuawei Cloud would not let Pantech inCheck the identity provider's URL, client ID and mapping rule against the setup files, and that its signing key is the current content of <issuer_url>/jwks.json. Then retry
    permission_missingThe group's policy is missing an action, or is not granted on a projectRecreate the policy from the latest file and grant it on every project you listed, then retry
    provider_unavailableHuawei Cloud did not answer in timeRetry in a few minutes
    internalSomething went wrong on Pantech's sideRetry; if it keeps happening, contact support

    Retry with PATCH /cloud-connections/{connection_id} and {"retry": true}. Troubleshooting has every code.

    The agent, for copies

    Pantech scans this cloud itself, so a scan needs nothing installed. The copy steps that read from inside your network use the Pantech Migrate agent, which this connection can have too: copying a server from the server itself, importing a database and moving a Kubernetes cluster. Enroll it with POST /cloud-connections/{connection_id}/agent-enrollments or pantech migrate agent enroll <connection id>. Here it never scans and needs no Huawei Cloud credential: only what each copy step needs, in its configuration.

    Disconnect

    1. In Pantech, disconnect the connection: DELETE /cloud-connections/{connection_id}, or ask your AI app.
    2. In Huawei Cloud, delete the identity provider. That alone cuts access; delete the group and its policy too if you no longer need them.

    Was this page helpful?

    Updated