If you need to assign different permissions to personnel in your enterprise to access your VPN resources created on the cloud service platform, Identity and Access Management (IAM) is a good choice for fine-grained permissions management. IAM provides identity authentication, permissions management, and access control, helping you securely manage access to your resources.
With IAM, you can use your account to create IAM users, and assign permissions to the users to control their access to specific cloud resources. For example, some software developers in your enterprise need to use VPN resources but should not be allowed to delete them or perform any high-risk operations. In this scenario, you can create IAM users for the software developers and grant them only the permissions required for using VPN resources.
If your account does not need individual IAM users for permissions management, skip this section, which has no impact on using functions of VPN.
IAM is a free service. You only pay for the resources in your account.
For more information about IAM, see IAM Service Overview.
New IAM users do not have any permissions assigned by default. You need to first add them to one or more groups and attach policies or roles to these groups. The users then inherit permissions from the groups and can perform specified operations on cloud services based on the permissions they have been assigned.
VPN is a project-level service deployed for specific regions. When you set Scope to Region-specific projects and select the specified projects in the specified regions, the users only have permissions for VPN in the selected projects. If you set Scope to All resources, users have permissions for VPN in all region-specific projects. When accessing VPN, the users need to switch to the authorized region.
You can grant permissions by using roles or policies.
Table 1 lists all system-defined permissions for VPN.
System Role/Policy Name | Description | Dependency |
|---|---|---|
VPN Administrator (not recommended) | Administrator permissions for VPN. Users with these permissions can perform all operations on VPN. This role must be used together with the Tenant Guest and VPC Administrator roles in the same project.
| - |
VPN FullAccess (recommended) | Full permissions for VPN. NOTE: All actions that are used to query list information do not support authorization based on enterprise projects. You need to configure actions in the IAM view separately. | The actions of global services and the region-level actions cannot be configured in the same policy. As such, the following global actions are added:
|
VPN ReadOnlyAccess | Read-only permissions on VPN resources. Users who have these permissions can only view information about VPN resources. NOTE: All actions that are used to query list information do not support authorization based on enterprise projects. You need to configure actions in the IAM view separately. | The actions of global services and the region-level actions cannot be configured in the same policy. As such, the following global actions are added:
|
Table 2 lists the common operations supported by system-defined permissions for S2C VPN.
Operation | VPN Administrator (Not Recommended) | VPN FullAccess (Recommended) | VPN ReadOnlyAccess |
|---|---|---|---|
Creating a VPN gateway | √ |
| × |
Viewing a VPN gateway | √ | √ | √ |
Querying the VPN gateway list | √ | √ | √ |
Updating a VPN gateway | √ |
| × |
Deleting a VPN gateway | √ |
| × |
Creating a VPN connection | √ |
| × |
Viewing a VPN connection | √ | √ | √ |
Querying the VPN connection list | √ | √ | √ |
Updating a VPN connection | √ |
| × |
Deleting a VPN connection | √ |
| × |
Creating a customer gateway | √ |
| × |
Viewing a customer gateway | √ |
| √ |
Querying the customer gateway list | √ |
| √ |
Updating a customer gateway | √ |
| × |
Deleting a customer gateway | √ |
| × |
Creating a VPN connection monitor | √ |
| × |
Querying a VPN connection monitor | √ |
| √ |
Querying the VPN connection monitor list | √ |
| √ |
Deleting a VPN connection monitor | √ |
| × |
Querying VPN connection logs | √ |
| √ |
Querying the route table of a VPN gateway | √ |
| √ |
Resetting a VPN connection | √ |
| × |
Upgrading an S2C VPN gateway | √ |
| × |