SQL 审核 | 支持通过 Webhook 方式通知工单状态


2.2305.0-pre3

SQLE Release Notes

SQL 审核工具 SQLE 2.2305.0-pre3 于今天发布。以下对新版本的 Release Notes 进行详细解读。

文章主要分为以下三部分内容: 

一、SQLE 项目介绍 

二、新版本主要功能介绍 

三、完整的 Release 信息

一、SQLE 项目介绍

爱可生开源社区的 SQLE 是一款面向数据库使用者和管理者,支持多场景审核,支持标准化上线流程,原生支持 MySQL 审核且数据库类型可扩展的 SQL 审核工具。

SQLE 获取

类型 地址
版本库 https://github.com/actiontech/sqle
文档 https://actiontech.github.io/sqle-docs-cn/
发布信息 https://github.com/actiontech/sqle/releases
数据审核插件开发文档 https://actiontech.github.io/sqle-docs-cn/3.modules/3.7_auditplugin/auditplugin_development.html
社区版在线体验 http://demo.sqle.actionsky.com
超级管理员:admin    密码:admin
企业版在线体验 http://demo.sqle.actionsky.com:8889
用户:admin    密码:admin


二、新版本主要功能介绍

         支持通过 Webhook 方式通知工单状态 

         当用户配置了自定义 API 服务,想要在 API 服务中实时获取工单执行状态时,可在系统设置中配置 Webhook 服务。在 SQLE 中配置回调地址后,工单状态一旦发生变更,即可在 API 服务中获取状态通知信息,无需定时登录 SQLE 平台以查询结果。 

         以下是简单的功能试用: 

         1. 以平台管理员账户登录,进入系统设置,找到 Webhook 配置后点击修改按钮。 

        <p style='color: black;font-family: Optima-Regular, Optima, PingFangSC-light, PingFangTC-light, "PingFang SC", Cambria, Cochin, Georgia, Times, "Times New Roman", serif;font-size: 16px;letter-spacing: 0.578px;margin-right: 0pt;margin-bottom: 0px;margin-left: 0pt;padding: 0pt'></p> 
        <p style='color: black;font-family: Optima-Regular, Optima, PingFangSC-light, PingFangTC-light, "PingFang SC", Cambria, Cochin, Georgia, Times, "Times New Roman", serif;font-size: 16px;letter-spacing: 0px;text-align: center'><img src="https://img.mryunwei.com/uploads/2023/10/20231013075223328.png"></p> 

         2. 选择开启 Webhook 通知,并填写以下字段内容。 

        <p style='color: black;font-family: Optima-Regular, Optima, PingFangSC-light, PingFangTC-light, "PingFang SC", Cambria, Cochin, Georgia, Times, "Times New Roman", serif;font-size: 16px;letter-spacing: 0px;text-align: center'><img src="https://img.mryunwei.com/uploads/2023/10/20231013075224797.png"></p> 
        <p style='color: black;font-family: Optima-Regular, Optima, PingFangSC-light, PingFangTC-light, "PingFang SC", Cambria, Cochin, Georgia, Times, "Times New Roman", serif;font-size: 16px;letter-spacing: 0px;text-align: left'><br></p> 
    • Webhook url:用于工单消息推送的 API 地址;

    • 最大重试字数:默认3次,取值范围 0-5。如果事件推送失败,SQLE 将重新推送通知,若重试 3 次后,仍推送失败,则不再推送本次事件;

    • 最大重试间隔:默认1秒,取值范围 1-5。如果推送失败,将以 1s 的时间间隔重新推送;

    • token:用于标识推送方,如可填写 SQLE 用以标识是从 SQLE 推送的通知。

        <p style='color: black;font-family: Optima-Regular, Optima, PingFangSC-light, PingFangTC-light, "PingFang SC", Cambria, Cochin, Georgia, Times, "Times New Roman", serif;font-size: 16px;letter-spacing: 0px;text-align: left'>3. 点击提交,保存当前 Webhook 配置。</p> 
        <p style='color: black;font-family: Optima-Regular, Optima, PingFangSC-light, PingFangTC-light, "PingFang SC", Cambria, Cochin, Georgia, Times, "Times New Roman", serif;font-size: 16px;letter-spacing: 0px;text-align: left'>4. 用户可点击测试,验证 API 服务端能正常收取推送信息。<br></p> 
        <p style='color: black;font-family: Optima-Regular, Optima, PingFangSC-light, PingFangTC-light, "PingFang SC", Cambria, Cochin, Georgia, Times, "Times New Roman", serif;font-size: 16px;letter-spacing: 0px;text-align: left'><br></p> 

        <p style='color: black;font-family: Optima-Regular, Optima, PingFangSC-light, PingFangTC-light, "PingFang SC", Cambria, Cochin, Georgia, Times, "Times New Roman", serif;font-size: 16px;letter-spacing: 0px;text-align: center'><br></p> 
        <p style='color: black;font-family: Optima-Regular, Optima, PingFangSC-light, PingFangTC-light, "PingFang SC", Cambria, Cochin, Georgia, Times, "Times New Roman", serif;font-size: 16px;letter-spacing: 0px;padding-top: 8px;padding-bottom: 8px;line-height: 26px;margin-bottom: 0px;margin-top: 16px'>Oracle 支持生成回滚语句【企业版】</p> 
        <p data-tool="mdnice编辑器" style='color: black;font-family: Optima-Regular, Optima, PingFangSC-light, PingFangTC-light, "PingFang SC", Cambria, Cochin, Georgia, Times, "Times New Roman", serif;font-size: 16px;letter-spacing: 0px;padding-top: 8px;padding-bottom: 8px;line-height: 26px'>当用户通过平台对 Oracle 数据源进行 SQL 上线操作时,如果工单上线失败,可能会导致工单内的 SQL 只执行部分而未执行其他部分。对于已经执行的 SQL,用户可能不知道如何回退操作。为此,SQLE 提供了回滚语句提示,以帮助用户回退已经执行的操作,确保数据的一致性和完整性。以下是 Oracle 数据源下的回滚语句提示效果:</p> 

        <p data-tool="mdnice编辑器" style='color: black;font-family: Optima-Regular, Optima, PingFangSC-light, PingFangTC-light, "PingFang SC", Cambria, Cochin, Georgia, Times, "Times New Roman", serif;font-size: 16px;letter-spacing: 0px;padding-top: 8px;padding-bottom: 8px;line-height: 26px'></p> 

三、完整的 Release 信息

 <p data-tool="mdnice编辑器" style='font-family: Optima-Regular, Optima, PingFangSC-light, PingFangTC-light, "PingFang SC", Cambria, Cochin, Georgia, Times, "Times New Roman", serif;font-size: 16px;letter-spacing: 0px'><br></p> 
 <p data-tool="mdnice编辑器">新特性:</p> 
 <ul data-tool="mdnice编辑器" style='font-family: Optima-Regular, Optima, PingFangSC-light, PingFangTC-light, "PingFang SC", Cambria, Cochin, Georgia, Times, "Times New Roman", serif;font-size: 16px;letter-spacing: normal;margin-top: 8px;margin-bottom: 8px;padding-left: 25px;width: 557.438px;text-align: left'> 
  • [#450] 支持通过 Webhook 方式通知工单状态;

  •  </ul> 
     <p data-tool="mdnice编辑器">Bug 修复:</p> 
    
     <ul data-tool="mdnice编辑器" style='font-family: Optima-Regular, Optima, PingFangSC-light, PingFangTC-light, "PingFang SC", Cambria, Cochin, Georgia, Times, "Times New Roman", serif;font-size: 16px;letter-spacing: 0px;margin-top: 8px;margin-bottom: 8px;padding-left: 25px'> 
  • [#1495] 修复 MySQL 审核规则 “避免使用 IN (NULL)/NOT IN (NULL) ,该用法永远非真将导致条件失效” 误触发的问题;

  • [#1499] 修复工单审核结果没有显示 SQL 语法高亮的问题。


  •  </ul> 

    往期版本:

    SQL审核 | DB2扫描任务及规则上新


    智能扫描支持从MySQL实例在线抓取慢SQL


    SQL审核 | SQLE 2.2304.0 来啦!


    SQL审核 | SQLE 2.2303.0 来啦!

    SQL审核 | 智能扫描上新,支持 MySQL processlist 审核,秒级发现问题

    推荐阅读:

    这里有 MySQL/Oracle 最常用的 SQL 开发规则

    如何快速使用 SQLE 审核各种类型的数据库

    SQLE 兼容 MySQL 8.0 测评

    如何使用 SQLE 进行开发阶段 SQL 审核

    更多关于 SQLE 的信息和交流,请加入官方QQ交流群:637150065...


    本文分享自微信公众号 - 爱可生开源社区(ActiontechOSS)。
    如有侵权,请联系 support@oschina.cn 删除。
    本文参与“OSC源创计划”,欢迎正在阅读的你也加入,一起分享。