真狠,為了干掉 HTTP ,Spring團(tuán)隊(duì)又開源nohttp了!
Spring 團(tuán)隊(duì)開源 nohttp 項(xiàng)目,用以查找、替換和阻止 http:// 的使用。
項(xiàng)目是為了在可能使用 https:// 的情況下不使用到 http://,確保不會發(fā)生中間人攻擊。
但是有些情況下確實(shí)無法使用 HTTPS,例如,Spring 鏈接的某些站點(diǎn)不支持 HTTPS、XML 命名空間標(biāo)識符必須與文檔中的標(biāo)識符匹配等。
Spring Framework 目前已經(jīng)更新,以解析通過類路徑使用 HTTPS 位置的 XML 位置。以往這僅適用于使用 HTTP 的 URL。
<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://www.springframework.org/schema/beans"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.springframework.org/schema/beans
https://www.springframework.org/schema/beans/spring-beans.xsd">上邊 https://www.springframework.org/schema/beans/spring-beans.xsd URL 通過類路徑解析,而不需要網(wǎng)絡(luò)連接。 這里 XML 命名空間名稱(標(biāo)識符)無法更改為使用 HTTPS。從安全控制的角度來看,這其實(shí)并不理想,但因?yàn)椴煌ㄟ^網(wǎng)絡(luò)請求,所以對用戶幾乎沒有任何傷害。
另一方面,ROB 表示 Spring 團(tuán)隊(duì)已更新所有主機(jī)以確保使用 HTTPS,每個站點(diǎn)都支持 HTTPS、重定向到 HTTPS,并使用 Strict Transport Security。
這些安全措施是很重要的,但是 ROB 表示安全控制措施到位也很重要,這可以確保問題不再發(fā)生。于是團(tuán)隊(duì)更新了構(gòu)建箱以阻止 HTTP 流量,同時為了保護(hù)開發(fā)人員和用戶,創(chuàng)建了 nohttp 項(xiàng)目。 nohttp 可用于查找、替換和阻止 http:// 的使用 項(xiàng)目庫包含了幾大模塊: nohttp - 核心,允許查找和替換 http:// URL
nohttp-cli - 輕量的 nohttp 封裝,用于命令行運(yùn)行
nohttp-checkstyle - nohttp 與 checkstyle 集成
nohttp-gradle - nohttp 與 Gradle 集成
詳情查看項(xiàng)目介紹: https://github.com/spring-io/nohttp
評論
圖片
表情
