You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@shardingsphere.apache.org by GitBox <gi...@apache.org> on 2021/11/25 11:35:28 UTC

[GitHub] [shardingsphere] yx9o opened a new pull request #13799: Update change history of ShardingSphere-Proxy.

yx9o opened a new pull request #13799:
URL: https://github.com/apache/shardingsphere/pull/13799


   Update change history of ShardingSphere-Proxy.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@shardingsphere.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [shardingsphere] RaigorJiang commented on a change in pull request #13799: Update change history of ShardingSphere-Proxy.

Posted by GitBox <gi...@apache.org>.
RaigorJiang commented on a change in pull request #13799:
URL: https://github.com/apache/shardingsphere/pull/13799#discussion_r756897613



##########
File path: docs/document/content/reference/api-change-history/shardingsphere-proxy/_index.en.md
##########
@@ -4,6 +4,62 @@ weight = 1
 chapter = true
 +++
 
+## 5.0.0-beta
+
+### Data Source Configuration Item Explanation
+
+```yaml
+schemaName: # Logic schema name.
+
+dataSources: # Data sources configuration, multiple <data-source-name> available.
+  <data-source-name>: # Different from ShardingSphere-JDBC configuration, it does not need to be configured with database connection pool.
+    url: # Database URL.
+    username: # Database username.
+    password: # Database password.
+    connectionTimeoutMilliseconds: # Connection timeout milliseconds.
+    idleTimeoutMilliseconds: # Idle timeout milliseconds.
+    maxLifetimeMilliseconds: # Maximum life milliseconds.
+    maxPoolSize: 50 # Maximum connection count in the pool.
+    minPoolSize: 1  # Minimum connection count in the pool.        
+
+rules: # Keep consist with ShardingSphere-JDBC configuration.
+# ...
+```
+
+#### Authentication
+
+It is used to verify the authentication to log in ShardingSphere-Proxy, which must use correct user name and password after the configuration of them.
+
+```yaml
+rules:
+  - !AUTHORITY
+    users:
+      - root@localhost:root # <username>@<hostname>:<password>
+      - sharding@:sharding
+    provider:
+      type: NATIVE # Must be explicitly specified.
+ ```
+
+If the hostname is % or empty, it means no restrict to the user’s host.
+
+The type of the provider must be explicitly specified. Refer to [5.11 Proxy](https://shardingsphere.apache.org/document/current/en/dev-manual/proxy/) for more implementations.

Review comment:
       The link should no related to `current` version.




-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@shardingsphere.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [shardingsphere] RaigorJiang commented on pull request #13799: Update change history of ShardingSphere-Proxy.

Posted by GitBox <gi...@apache.org>.
RaigorJiang commented on pull request #13799:
URL: https://github.com/apache/shardingsphere/pull/13799#issuecomment-979281892


   @yx9o  Thank you~


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@shardingsphere.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [shardingsphere] RaigorJiang merged pull request #13799: Update change history of ShardingSphere-Proxy.

Posted by GitBox <gi...@apache.org>.
RaigorJiang merged pull request #13799:
URL: https://github.com/apache/shardingsphere/pull/13799


   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@shardingsphere.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [shardingsphere] RaigorJiang commented on a change in pull request #13799: Update change history of ShardingSphere-Proxy.

Posted by GitBox <gi...@apache.org>.
RaigorJiang commented on a change in pull request #13799:
URL: https://github.com/apache/shardingsphere/pull/13799#discussion_r756898112



##########
File path: docs/document/content/reference/api-change-history/shardingsphere-proxy/_index.cn.md
##########
@@ -4,6 +4,62 @@ weight = 1
 chapter = true
 +++
 
+## 5.0.0-beta
+
+### 数据源配置项说明
+
+```yaml
+schemaName: # 逻辑数据源名称
+
+dataSources: # 数据源配置,可配置多个 <data-source-name>
+  <data-source-name>: # 与 ShardingSphere-JDBC 配置不同,无需配置数据库连接池
+    url: #数据库 URL 连接
+    username: # 数据库用户名
+    password: # 数据库密码
+    connectionTimeoutMilliseconds: # 连接超时毫秒数
+    idleTimeoutMilliseconds: # 空闲连接回收超时毫秒数
+    maxLifetimeMilliseconds: # 连接最大存活时间毫秒数
+    maxPoolSize: 50 # 最大连接数
+    minPoolSize: 1  # 最小连接数     
+
+rules: # 与 ShardingSphere-JDBC 配置一致
+  # ...
+```
+
+### 权限配置
+
+用于执行登录 Sharding Proxy 的权限验证。 配置用户名、密码、可访问的数据库后,必须使用正确的用户名、密码才可登录。
+
+```yaml
+rules:
+  - !AUTHORITY
+    users:
+      - root@localhost:root  # <username>@<hostname>:<password>,hostname 为 % 或空字符串,则代表不限制 host。
+      - sharding@:sharding
+    provider:
+      type: NATIVE  # 必须显式指定
+```
+
+hostname 为 % 或空字符串,则代表不限制 host。
+
+provider 的 type 必须显式指定,具体实现可以参考 [5.11 Proxy](https://shardingsphere.apache.org/document/current/cn/dev-manual/proxy/)

Review comment:
       The link should no related to current version.




-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@shardingsphere.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [shardingsphere] yx9o commented on a change in pull request #13799: Update change history of ShardingSphere-Proxy.

Posted by GitBox <gi...@apache.org>.
yx9o commented on a change in pull request #13799:
URL: https://github.com/apache/shardingsphere/pull/13799#discussion_r756921429



##########
File path: docs/document/content/reference/api-change-history/shardingsphere-proxy/_index.en.md
##########
@@ -4,6 +4,62 @@ weight = 1
 chapter = true
 +++
 
+## 5.0.0-beta
+
+### Data Source Configuration Item Explanation
+
+```yaml
+schemaName: # Logic schema name.
+
+dataSources: # Data sources configuration, multiple <data-source-name> available.
+  <data-source-name>: # Different from ShardingSphere-JDBC configuration, it does not need to be configured with database connection pool.
+    url: # Database URL.
+    username: # Database username.
+    password: # Database password.
+    connectionTimeoutMilliseconds: # Connection timeout milliseconds.
+    idleTimeoutMilliseconds: # Idle timeout milliseconds.
+    maxLifetimeMilliseconds: # Maximum life milliseconds.
+    maxPoolSize: 50 # Maximum connection count in the pool.
+    minPoolSize: 1  # Minimum connection count in the pool.        
+
+rules: # Keep consist with ShardingSphere-JDBC configuration.
+# ...
+```
+
+#### Authentication
+
+It is used to verify the authentication to log in ShardingSphere-Proxy, which must use correct user name and password after the configuration of them.
+
+```yaml
+rules:
+  - !AUTHORITY
+    users:
+      - root@localhost:root # <username>@<hostname>:<password>
+      - sharding@:sharding
+    provider:
+      type: NATIVE # Must be explicitly specified.
+ ```
+
+If the hostname is % or empty, it means no restrict to the user’s host.
+
+The type of the provider must be explicitly specified. Refer to [5.11 Proxy](https://shardingsphere.apache.org/document/current/en/dev-manual/proxy/) for more implementations.

Review comment:
       > 
   
   Done.




-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@shardingsphere.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org