forked from jly8866/archer
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
新增DBA角色,该角色拥有审核、执行权限,去除原审核人、工程师角色的执行权限 仅审核通过状态的工单才可以交由DBA执行 优化邮件发送逻辑,通知DBA走抄送 登录失败默认也发送给DBA,不再单独配置接收人
- Loading branch information
Showing
7 changed files
with
48 additions
and
80 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -213,11 +213,11 @@ | |
'handlers': ['default'], | ||
'level': 'DEBUG', | ||
}, | ||
'django.db': { # 打印SQL语句到console,方便开发 | ||
'handlers': ['console'], | ||
'level': 'DEBUG', | ||
'propagate': True, | ||
}, | ||
# 'django.db': { # 打印SQL语句到console,方便开发 | ||
# 'handlers': ['console'], | ||
# 'level': 'DEBUG', | ||
# 'propagate': True, | ||
# }, | ||
'django.request': { # 打印SQL语句到console,方便开发 | ||
'handlers': ['console'], | ||
'level': 'DEBUG', | ||
|
@@ -238,8 +238,6 @@ | |
MAIL_REVIEW_SMTP_PORT = 25 | ||
MAIL_REVIEW_FROM_ADDR = '[email protected]' # 发件人,也是登录SMTP server需要提供的用户名 | ||
MAIL_REVIEW_FROM_PASSWORD = '' # 发件人邮箱密码,如果为空则不需要login SMTP server | ||
MAIL_REVIEW_DBA_ADDR = ['[email protected]', '[email protected]'] # DBA地址,执行完毕会发邮件给DBA,以list形式保存 | ||
MAIL_REVIEW_SECURE_ADDR = ['[email protected]', '[email protected]'] # 登录失败,等安全相关发送地址 | ||
# 是否过滤【DROP DATABASE】|【DROP TABLE】|【TRUNCATE PARTITION】|【TRUNCATE TABLE】等高危DDL操作: | ||
# on是开,会首先用正则表达式匹配sqlContent,如果匹配到高危DDL操作,则判断为“自动审核不通过”;off是关,直接将所有的SQL语句提交给inception,对于上述高危DDL操作,只备份元数据 | ||
CRITICAL_DDL_ON_OFF = 'off' | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters