config-encrypt.yaml 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113
  1. #
  2. # Licensed to the Apache Software Foundation (ASF) under one or more
  3. # contributor license agreements. See the NOTICE file distributed with
  4. # this work for additional information regarding copyright ownership.
  5. # The ASF licenses this file to You under the Apache License, Version 2.0
  6. # (the "License"); you may not use this file except in compliance with
  7. # the License. You may obtain a copy of the License at
  8. #
  9. # http://www.apache.org/licenses/LICENSE-2.0
  10. #
  11. # Unless required by applicable law or agreed to in writing, software
  12. # distributed under the License is distributed on an "AS IS" BASIS,
  13. # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  14. # See the License for the specific language governing permissions and
  15. # limitations under the License.
  16. #
  17. ######################################################################################################
  18. #
  19. # Here you can configure the rules for the proxy.
  20. # This example is configuration of encrypt rule.
  21. #
  22. ######################################################################################################
  23. #
  24. #schemaName: encrypt_db
  25. #
  26. #dataSources:
  27. # ds_0:
  28. # url: jdbc:postgresql://127.0.0.1:5432/demo_ds_0
  29. # username: postgres
  30. # password: postgres
  31. # connectionTimeoutMilliseconds: 30000
  32. # idleTimeoutMilliseconds: 60000
  33. # maxLifetimeMilliseconds: 1800000
  34. # maxPoolSize: 50
  35. # minPoolSize: 1
  36. # ds_1:
  37. # url: jdbc:postgresql://127.0.0.1:5432/demo_ds_1
  38. # username: postgres
  39. # password: postgres
  40. # connectionTimeoutMilliseconds: 30000
  41. # idleTimeoutMilliseconds: 60000
  42. # maxLifetimeMilliseconds: 1800000
  43. # maxPoolSize: 50
  44. # minPoolSize: 1
  45. #
  46. #rules:
  47. #- !ENCRYPT
  48. # encryptors:
  49. # aes_encryptor:
  50. # type: AES
  51. # props:
  52. # aes-key-value: 123456abc
  53. # md5_encryptor:
  54. # type: MD5
  55. # tables:
  56. # t_encrypt:
  57. # columns:
  58. # user_id:
  59. # plainColumn: user_plain
  60. # cipherColumn: user_cipher
  61. # encryptorName: aes_encryptor
  62. # order_id:
  63. # cipherColumn: order_encrypt
  64. # encryptorName: md5_encryptor
  65. ######################################################################################################
  66. #
  67. # If you want to connect to MySQL, you should manually copy MySQL driver to lib directory.
  68. #
  69. ######################################################################################################
  70. #
  71. #schemaName: encrypt_db
  72. #
  73. #dataSources:
  74. # ds_0:
  75. # url: jdbc:mysql://127.0.0.1:3306/demo_ds_0?serverTimezone=UTC&useSSL=false
  76. # username: root
  77. # password:
  78. # connectionTimeoutMilliseconds: 30000
  79. # idleTimeoutMilliseconds: 60000
  80. # maxLifetimeMilliseconds: 1800000
  81. # maxPoolSize: 50
  82. # minPoolSize: 1
  83. # ds_1:
  84. # url: jdbc:mysql://127.0.0.1:3306/demo_ds_1?serverTimezone=UTC&useSSL=false
  85. # username: root
  86. # password:
  87. # connectionTimeoutMilliseconds: 30000
  88. # idleTimeoutMilliseconds: 60000
  89. # maxLifetimeMilliseconds: 1800000
  90. # maxPoolSize: 50
  91. # minPoolSize: 1
  92. #
  93. #rules:
  94. #- !ENCRYPT
  95. # encryptors:
  96. # aes_encryptor:
  97. # type: AES
  98. # props:
  99. # aes-key-value: 123456abc
  100. # md5_encryptor:
  101. # type: MD5
  102. # tables:
  103. # t_encrypt:
  104. # columns:
  105. # user_id:
  106. # plainColumn: user_plain
  107. # cipherColumn: user_cipher
  108. # encryptorName: aes_encryptor
  109. # order_id:
  110. # cipherColumn: order_cipher
  111. # encryptorName: md5_encryptor