Няма описание

config-encrypt.yaml 3.4KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120
  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. #databaseName: 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. # rc4_encryptor:
  54. # type: RC4
  55. # props:
  56. # rc4-key-value: 123456abc
  57. # tables:
  58. # t_encrypt:
  59. # columns:
  60. # user_id:
  61. # cipher:
  62. # name: user_cipher
  63. # encryptorName: aes_encryptor
  64. # order_id:
  65. # cipher:
  66. # name: order_encrypt
  67. # encryptorName: rc4_encryptor
  68. ######################################################################################################
  69. #
  70. # If you want to connect to MySQL, you should manually copy MySQL driver to lib directory.
  71. #
  72. ######################################################################################################
  73. #
  74. #databaseName: encrypt_db
  75. #
  76. #dataSources:
  77. # ds_0:
  78. # url: jdbc:mysql://127.0.0.1:3306/demo_ds_0?serverTimezone=UTC&useSSL=false
  79. # username: root
  80. # password:
  81. # connectionTimeoutMilliseconds: 30000
  82. # idleTimeoutMilliseconds: 60000
  83. # maxLifetimeMilliseconds: 1800000
  84. # maxPoolSize: 50
  85. # minPoolSize: 1
  86. # ds_1:
  87. # url: jdbc:mysql://127.0.0.1:3306/demo_ds_1?serverTimezone=UTC&useSSL=false
  88. # username: root
  89. # password:
  90. # connectionTimeoutMilliseconds: 30000
  91. # idleTimeoutMilliseconds: 60000
  92. # maxLifetimeMilliseconds: 1800000
  93. # maxPoolSize: 50
  94. # minPoolSize: 1
  95. #
  96. #rules:
  97. #- !ENCRYPT
  98. # encryptors:
  99. # aes_encryptor:
  100. # type: AES
  101. # props:
  102. # aes-key-value: 123456abc
  103. # rc4_encryptor:
  104. # type: RC4
  105. # props:
  106. # rc4-key-value: 123456abc
  107. # tables:
  108. # t_encrypt:
  109. # columns:
  110. # user_id:
  111. # cipher:
  112. # name: user_cipher
  113. # encryptorName: aes_encryptor
  114. # order_id:
  115. # cipher:
  116. # name: order_encrypt
  117. # encryptorName: rc4_encryptor