如何快速部署DongTai IAST?3种本地化方案全解析

【免费下载链接】DongTai Dongtai IAST is an open-source Interactive Application Security Testing (IAST) tool that enables real-time detection of common vulnerabilities in Java applications and third-party components through passive instrumentation. It is particularly suitable for use in the testing phase of the development pipeline. 【免费下载链接】DongTai 项目地址: https://gitcode.com/gh_mirrors/do/DongTai

DongTai IAST是一款开源的交互式应用安全测试工具,通过被动插桩技术实时检测Java应用及第三方组件中的常见漏洞,特别适合开发 pipeline 的测试阶段使用。本文将详细介绍三种本地化部署方案,帮助新手用户快速上手这款强大的安全测试工具。

方案一:Docker Compose一键部署(推荐新手)

Docker Compose部署方式适合单机环境,操作简单,只需几步即可完成部署。

准备工作

首先确保已安装Docker和Docker Compose,可以通过docker-compose -version命令检查是否安装。如果未安装,需先进行安装。

部署步骤

  1. 克隆仓库
git clone https://gitcode.com/gh_mirrors/do/DongTai
cd DongTai/deploy/docker-compose
  1. 自定义配置(可选) 如需修改mysql和redis的配置,可手动编辑config-tutorial.ini文件内的[mysql][redis]部分配置。修改完成后,在部署过程中选择skip相应的组件。

  2. 执行安装

./dtctl install

如需指定版本,可使用:

./dtctl install -v <version_id>

其中s参数可用于跳过mysql或redis组件,如s=mysqls=mysql,redis

  1. 访问服务 环境启动成功后,通过安装过程中指定的web service port访问即可。

升级与卸载

  • 升级
git pull
./dtctl upgrade

如需更新到指定版本:

./dtctl upgrade -t <version_id>
  • 卸载
./dtctl rm -d

-d选项会删除数据和服务。

方案二:Kubernetes集群部署(适合企业级应用)

Kubernetes部署方式适合需要高可用性和扩展性的企业级环境。

提前准备

  • Kubernetes版本:1.9+
  • 客户端已安装kubectl
  • 具备相关操作授权,可使用kubectl auth can-i验证

使用Helm安装

  1. 添加、更新仓库
helm repo add dongtai https://charts.dongtai.io/iast
helm repo update
  1. 准备存储 需要准备一个storageclass,或者一个可公共写的pvc
--set storage.storageClassName=storageclass
# 或
--set storage.persistentVolumeClaim=pvc(默认会启用)
# 或不使用存储类(会影响部分功能)
--set storage.persistentVolumeClaim=null
  1. 执行安装
helm install project --create-namespace -n dongtai dongtai/dongtai-iast --set storage.persistentVolumeClaim=null

自定义配置

可通过自定义values文件或使用--set参数覆盖默认配置。例如,切换访问类型为NodePort:

helm install project --create-namespace -n dongtai dongtai/dongtai-iast \
--set storage.persistentVolumeClaim=null \
--set accessType=NodePort --set NodePort=30080 \
--set tag=1.8.5

卸载与扩缩容

  • 卸载
helm uninstall project -n dongtai
  • 扩缩容
kubectl scale deployments ${deployment-names} --replicas=${count} -n ${your-namespace}

方案三:手动部署(适合定制化需求)

手动部署方式适合有特殊定制需求的用户,需要手动配置各个组件。

部署步骤

  1. 准备环境 确保已安装Java、MySQL、Redis等依赖组件。

  2. 配置应用服务器 以WebLogic为例,需要修改启动配置文件,添加JavaAgent参数:

WebLogic服务器配置

  1. 重启服务器 配置完成后,重启服务器使配置生效:

重启WebLogic服务器

  1. 配置WebSphere服务器 对于WebSphere服务器,需要在管理界面中配置JVM启动参数:

WebSphere JVM配置

总结

本文介绍了三种DongTai IAST的本地化部署方案,Docker Compose适合新手快速部署,Kubernetes适合企业级应用,手动部署适合有定制化需求的用户。根据实际需求选择合适的部署方案,可以快速体验DongTai IAST带来的安全测试能力。

部署完成后,即可开始使用DongTai IAST进行应用安全测试,及时发现并修复潜在的安全漏洞,提高应用的安全性。

【免费下载链接】DongTai Dongtai IAST is an open-source Interactive Application Security Testing (IAST) tool that enables real-time detection of common vulnerabilities in Java applications and third-party components through passive instrumentation. It is particularly suitable for use in the testing phase of the development pipeline. 【免费下载链接】DongTai 项目地址: https://gitcode.com/gh_mirrors/do/DongTai

Logo

腾讯云面向开发者汇聚海量精品云计算使用和开发经验,营造开放的云计算技术生态圈。

更多推荐