Authorization
ShardingSphere-Proxy uses the global rule, Authority Rule (identified as !AUTHORITY), to configure user and authorization information.
- : grant all authorities by default without authentication.
DATABASE_PERMITTED
: grant users the authority to specify a logical database, mapped throughuser-database-mappings
.
The administrator can choose which authority provider to use as needed when configuring the Authority Rule.
- The user
root
can connect to Proxy only through localhost, and the password isroot
. - The
provider
type isALL_PERMITTED
, which indicates that users are granted all authorities by default without authentication.
DATABASE_PERMITTED
The above configuration indicates:
- The
provider
type is , which indicates that users are granted database-level authority and configuration is needed. - The user
root
can connect to Proxy only through localhost and can accesssharding_db
andtest_db
. - The user
my_user
can connect to Proxy through any host and can access .