@@ -47,3 +47,25 @@ CALL `cloud`.`IDEMPOTENT_ADD_COLUMN`('cloud.storage_pool', 'used_iops', 'bigint
4747
4848-- Add reason column for op_ha_work
4949CALL ` cloud` .` IDEMPOTENT_ADD_COLUMN` (' cloud.op_ha_work' , ' reason' , ' varchar(32) DEFAULT NULL COMMENT "Reason for the HA work"' );
50+
51+ -- Grant access to 2FA APIs for the "Read-Only User - Default" role
52+
53+ CALL ` cloud` .` IDEMPOTENT_UPDATE_API_PERMISSION` (' Read-Only User - Default' , ' setupUserTwoFactorAuthentication' , ' ALLOW' );
54+ CALL ` cloud` .` IDEMPOTENT_UPDATE_API_PERMISSION` (' Read-Only User - Default' , ' validateUserTwoFactorAuthenticationCode' , ' ALLOW' );
55+ CALL ` cloud` .` IDEMPOTENT_UPDATE_API_PERMISSION` (' Read-Only User - Default' , ' listUserTwoFactorAuthenticatorProviders' , ' ALLOW' );
56+
57+ -- Grant access to 2FA APIs for the "Support User - Default" role
58+
59+ CALL ` cloud` .` IDEMPOTENT_UPDATE_API_PERMISSION` (' Support User - Default' , ' setupUserTwoFactorAuthentication' , ' ALLOW' );
60+ CALL ` cloud` .` IDEMPOTENT_UPDATE_API_PERMISSION` (' Support User - Default' , ' validateUserTwoFactorAuthenticationCode' , ' ALLOW' );
61+ CALL ` cloud` .` IDEMPOTENT_UPDATE_API_PERMISSION` (' Support User - Default' , ' listUserTwoFactorAuthenticatorProviders' , ' ALLOW' );
62+
63+ -- Grant access to 2FA APIs for the "Read-Only Admin - Default" role
64+
65+ CALL ` cloud` .` IDEMPOTENT_UPDATE_API_PERMISSION` (' Read-Only Admin - Default' , ' setupUserTwoFactorAuthentication' , ' ALLOW' );
66+ CALL ` cloud` .` IDEMPOTENT_UPDATE_API_PERMISSION` (' Read-Only Admin - Default' , ' validateUserTwoFactorAuthenticationCode' , ' ALLOW' );
67+
68+ -- Grant access to 2FA APIs for the "Support Admin - Default" role
69+
70+ CALL ` cloud` .` IDEMPOTENT_UPDATE_API_PERMISSION` (' Support Admin - Default' , ' setupUserTwoFactorAuthentication' , ' ALLOW' );
71+ CALL ` cloud` .` IDEMPOTENT_UPDATE_API_PERMISSION` (' Support Admin - Default' , ' validateUserTwoFactorAuthenticationCode' , ' ALLOW' );
0 commit comments