Sen descrición

config-mask.yaml 3.7KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128
  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 mask rule.
  21. #
  22. ######################################################################################################
  23. #
  24. #databaseName: mask_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. #- !MASK
  48. # tables:
  49. # t_user:
  50. # columns:
  51. # password:
  52. # maskAlgorithm: md5_mask
  53. # email:
  54. # maskAlgorithm: mask_before_special_chars_mask
  55. # telephone:
  56. # maskAlgorithm: keep_first_n_last_m_mask
  57. #
  58. # maskAlgorithms:
  59. # md5_mask:
  60. # type: MD5
  61. # mask_before_special_chars_mask:
  62. # type: MASK_BEFORE_SPECIAL_CHARS
  63. # props:
  64. # special-chars: '@'
  65. # replace-char: '*'
  66. # keep_first_n_last_m_mask:
  67. # type: KEEP_FIRST_N_LAST_M
  68. # props:
  69. # first-n: 3
  70. # last-m: 4
  71. # replace-char: '*'
  72. ######################################################################################################
  73. #
  74. # If you want to connect to MySQL, you should manually copy MySQL driver to lib directory.
  75. #
  76. ######################################################################################################
  77. #
  78. #databaseName: mask_db
  79. #
  80. #dataSources:
  81. # ds_0:
  82. # url: jdbc:mysql://127.0.0.1:3306/demo_ds_0?serverTimezone=UTC&useSSL=false
  83. # username: root
  84. # password:
  85. # connectionTimeoutMilliseconds: 30000
  86. # idleTimeoutMilliseconds: 60000
  87. # maxLifetimeMilliseconds: 1800000
  88. # maxPoolSize: 50
  89. # minPoolSize: 1
  90. # ds_1:
  91. # url: jdbc:mysql://127.0.0.1:3306/demo_ds_1?serverTimezone=UTC&useSSL=false
  92. # username: root
  93. # password:
  94. # connectionTimeoutMilliseconds: 30000
  95. # idleTimeoutMilliseconds: 60000
  96. # maxLifetimeMilliseconds: 1800000
  97. # maxPoolSize: 50
  98. # minPoolSize: 1
  99. #
  100. #rules:
  101. #- !MASK
  102. # tables:
  103. # t_user:
  104. # columns:
  105. # password:
  106. # maskAlgorithm: md5_mask
  107. # email:
  108. # maskAlgorithm: mask_before_special_chars_mask
  109. # telephone:
  110. # maskAlgorithm: keep_first_n_last_m_mask
  111. #
  112. # maskAlgorithms:
  113. # md5_mask:
  114. # type: MD5
  115. # mask_before_special_chars_mask:
  116. # type: MASK_BEFORE_SPECIAL_CHARS
  117. # props:
  118. # special-chars: '@'
  119. # replace-char: '*'
  120. # keep_first_n_last_m_mask:
  121. # type: KEEP_FIRST_N_LAST_M
  122. # props:
  123. # first-n: 3
  124. # last-m: 4
  125. # replace-char: '*'