All Products
Search
Document Center

Key Management Service:Access KMS instance keys over the Internet

Last Updated:Mar 31, 2026

By default, KMS instance keys are accessible only over a virtual private cloud (VPC) network. If your application runs outside a VPC, enable Internet access through the KMS console to call cryptographic operation APIs from the Internet.

Secrets in a KMS instance are accessible over both the Internet and the VPC network by default. If your application only accesses secrets, you do not need to enable Internet access.

Limitations

LimitationDetails
Enablement methodInternet access can only be enabled through the console, not through OpenAPI.
QPS capCryptographic operations over the Internet cannot exceed 1,000 queries per second (QPS), regardless of the QPS tier purchased. For high-performance workloads, use the VPC network. For QPS benchmarks, see Performance data.
Multi-account permissionWhen a KMS instance is shared across multiple Alibaba Cloud accounts, only the instance owner can enable Internet access. Instance users cannot perform this action.
Important

If you are an instance user rather than the instance owner, you cannot enable Internet access. Contact the instance owner to complete this configuration before proceeding.

Prerequisites

Before you begin, ensure that you have:

  • A KMS instance

  • Instance owner permissions

Enable Internet access

  1. Log in to the KMS console. In the top navigation bar, select a region. In the left-side navigation pane, choose Resource > Instances.

  2. In the instance list, click the target instance ID. On the instance details page, go to the Share Resources tab and enable Internet access. When a KMS instance is shared with multiple Alibaba Cloud accounts, you can configure Internet access permissions for each account individually.

    Share Resources tab with Internet access toggle

  3. Switch to the Instance tab and view the public endpoint displayed on the page.

    Instance tab showing the public endpoint

What's next

Use the public endpoint with the Alibaba Cloud SDK to perform cryptographic operations over the Internet. For SDK setup and usage, see Alibaba Cloud SDK.