Skip to content

Commit

Permalink
Add snakeyaml 1.x to banned dependencies
Browse files Browse the repository at this point in the history
Allow it only temporary for Tempto and benchto usages
  • Loading branch information
wendigo authored and hashhar committed Apr 7, 2023
1 parent 30c2fe2 commit 54a0b0b
Show file tree
Hide file tree
Showing 4 changed files with 51 additions and 0 deletions.
8 changes: 8 additions & 0 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2149,7 +2149,15 @@
<excludes combine.children="append">
<!-- We don't use log4j2, additionally versions < 2.15.0 are vulnerable to the RCE Log4Shell (CVE-2021-44228) -->
<exclude>org.apache.logging.log4j:log4j-core</exclude>
<!-- 1.x versions are banned due to https://www.cve.org/CVERecord?id=CVE-2022-1471 -->
<exclude>org.yaml:snakeyaml</exclude>
</excludes>
<includes combine.children="append">
<!-- 2.x versions are not affected by CVE-2022-1471 -->
<include>org.yaml:snakeyaml:2.0</include>
<!-- allow in test scope (tempto and benchto are using old versions) -->
<include>org.yaml:snakeyaml:*:jar:test</include>
</includes>
</bannedDependencies>
</rules>
</configuration>
Expand Down
14 changes: 14 additions & 0 deletions testing/trino-benchto-benchmarks/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,20 @@
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-enforcer-plugin</artifactId>
<configuration>
<rules>
<bannedDependencies>
<includes combine.children="append">
<!-- allow vulnerable snakeyaml version until benchto is updated -->
<include>org.yaml:snakeyaml:1.33</include>
</includes>
</bannedDependencies>
</rules>
</configuration>
</plugin>
</plugins>
</build>
</project>
15 changes: 15 additions & 0 deletions testing/trino-product-tests-launcher/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -262,6 +262,21 @@
</execution>
</executions>
</plugin>

<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-enforcer-plugin</artifactId>
<configuration>
<rules>
<bannedDependencies>
<includes combine.children="append">
<!-- allow vulnerable snakeyaml version until tempto is updated -->
<include>org.yaml:snakeyaml</include>
</includes>
</bannedDependencies>
</rules>
</configuration>
</plugin>
</plugins>
</build>
</project>
14 changes: 14 additions & 0 deletions testing/trino-product-tests/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -375,6 +375,20 @@
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-enforcer-plugin</artifactId>
<configuration>
<rules>
<bannedDependencies>
<includes combine.children="append">
<!-- allow vulnerable snakeyaml version until tempto is updated -->
<include>org.yaml:snakeyaml</include>
</includes>
</bannedDependencies>
</rules>
</configuration>
</plugin>
</plugins>
</build>
</project>

0 comments on commit 54a0b0b

Please sign in to comment.