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
$ 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.files | What it is |
|---|---|
pantech-migrate-readonly-policy.json | The custom policy: the read actions below and nothing else |
openid-connect-config.json | The 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.json | The 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
- IAM › User Groups. Create the group
pantech-migrate-readonly. Create a custom policy frompantech-migrate-readonly-policy.json, and grant it to the group on each region project you want scanned. - IAM › Identity Providers. Create an identity provider named as the setup steps say (
pantech-migrate-…), protocol OpenID Connect, access type Programmatic access. Configure it fromopenid-connect-config.json: the identity provider URL is your connection'ssetup.issuer_url, the client ID ispantech-migrate, and the signing key is the whole content of<issuer_url>/jwks.json. - Mapping rules. Edit the identity provider's mapping rules and paste
mapping.json. It admits only this connection's subject. - Send Pantech the identity provider's name and the region projects to scan (1 to 20):
$ 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
| Action | What for |
|---|---|
ecs:cloudServers:list, ecs:cloudServerFlavors:get | Servers, and their sizes |
evs:volumes:list | Disks |
vpc:vpcs:list, vpc:subnets:list | Networks and subnets |
vpc:securityGroups:get, vpc:securityGroupRules:get | Security groups and their rules |
vpc:publicIps:list | Elastic IPs |
elb:loadbalancers:list | Load balancers |
rds:instance:list | RDS databases |
iam:users:listUsers | People |
billing:bill:view | Monthly 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
| Code | What it means | What to do |
|---|---|---|
assume_role_denied | Huawei Cloud would not let Pantech in | Check 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_missing | The group's policy is missing an action, or is not granted on a project | Recreate the policy from the latest file and grant it on every project you listed, then retry |
provider_unavailable | Huawei Cloud did not answer in time | Retry in a few minutes |
internal | Something went wrong on Pantech's side | Retry; 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
- In Pantech, disconnect the connection:
DELETE /cloud-connections/{connection_id}, or ask your AI app. - In Huawei Cloud, delete the identity provider. That alone cuts access; delete the group and its policy too if you no longer need them.