Service Mesh (ASM) of V1.16.4.5 or later allows you to log on to Mesh Topology with an Alibaba Cloud account or as a Resource Access Management (RAM) user. This topic describes how to log on to Mesh Topology with an Alibaba Cloud account or as a RAM user.
Prerequisites
An ASM instance whose version is 1.16.4.5 or later is created. For more information, see Create an ASM instance or Update an ASM instance.
A Container Service for Kubernetes (ACK) cluster is added to the ASM instance. For more information, see Create an ACK managed cluster and Add a cluster to an ASM instance.
Mesh Topology is enabled and the logon page of Mesh Topology is accessible. For more information, see Step 1 and Step 2 in Enable Mesh Topology to observe an ASM instance in the ASM console.
Step 1: Create and configure an OAuth application in the RAM console
Create an Open Authorization (OAuth) application in the RAM console . For more information, see Create an application.
Parameter
Description
Application Type
Select WebApp.
Callback URL
If you log on to Mesh Topology by using the Classic Load Balancer (CLB) instance associated with your ASM instance, enter the IP address of the CLB instance. If you log on to Mesh Topology by using an ingress gateway, enter the IP address of the ingress gateway. The following configurations are examples:
If you use a CLB instance to log on to Mesh Topology and the IP address of the CLB instance is
xxx.xxx.xxx.xxx
, set the Callback URL parameter tohttp://xxx.xxx.xxx.xxx:20001
without forward slashes (/) following 20001. For example, 20001/xxx, 20001/, 20001/xxx/, and 20001/xxx/yyy are not allowed.If you use an ingress gateway to log on to Mesh Topology and the IP address of the ingress gateway is
yyy.yyy.yyy.yyy
, set the Callback URL parameter tohttp://yyy.yyy.yyy.yyy:20001
without forward slashes (/) following 20001. For example, 20001/xxx, 20001/, 20001/xxx/, and 20001/xxx/yyy are not allowed.
On the Enterprise Applications tab, save the ID of the OAuth application shown in the Application ID column.
Create an application secret for the OAuth application in the RAM console and save the application secret. For more information, see Create an application secret.
NoteThe application secret is visible only when you create it and cannot be queried. Therefore, you must save the secret when you create it.
Step 2: Configure Mesh Topology in the ASM console to connect to the OAuth application
ASM Mesh Topology allows you to use the OpenID Connect (OIDC) protocol to connect to an OAuth application.
Log on to the ASM console. In the left-side navigation pane, choose .
On the Mesh Management page, click the name of the ASM instance. In the left-side navigation pane, choose .
In the Authentication section of the Mesh Topology page, select Login with OIDC, configure parameters as required, and then click Save configuration of Mesh Topology.
Parameter
Description
Client ID
The application ID that is saved in Step 1.
Client Secret
The application secret that is saved in Step 1.
OIDC Issuer URL
Enter https://oauth.aliyun.com.
OAuth Scope
Select only Basic Information.
Step 3: Log on to ASM Mesh Topology with an Alibaba Cloud account or as a RAM user
Method 1: Use a CLB instance to log on to ASM Mesh Topology
Log on to the ASM console. In the left-side navigation pane, choose .
On the Mesh Management page, click the name of the ASM instance. In the left-side navigation pane, choose .
In the Access section of the Mesh Topology page, click Click here to access ASM Mesh Topology next to Access ASM Mesh Topology.
On the logon page of ASM Mesh Topology, click Log In With OpenID to go to the ASM Mesh Topology console.
NoteIf you have not logged on to the Alibaba Cloud Management Console with an Alibaba Cloud account or as a RAM user, you are redirected to the Alibaba Cloud RAM User Logon page after you click Log In With OpenID. You can log on to the Alibaba Cloud Management Console with an Alibaba Cloud account or as a RAM user. Then, click Next to go to the ASM Mesh Topology console.
Method 2: Use an ingress gateway to log on to ASM Mesh Topology
Log on to the ASM console. In the left-side navigation pane, choose .
On the Mesh Management page, click the name of the ASM instance. In the left-side navigation pane, choose .
In the Config Info section of the Base Information page, click Access from Ingress Gateway next to Enable ASM Mesh Topology.
On the logon page of ASM Mesh Topology, click Log In With OpenID to go to the ASM Mesh Topology console.
NoteIf you have not logged on to the Alibaba Cloud Management Console with an Alibaba Cloud account or as a RAM user, you are redirected to the Alibaba Cloud RAM User Logon page after you click Log In With OpenID. You can log on to the Alibaba Cloud Management Console with an Alibaba Cloud account or as a RAM user. Then, click Next to go to the ASM Mesh Topology console.