Skip to content

Commit

Permalink
Bump Spring, Tomcat, Jackson and other dependencies to Remove Vulnera…
Browse files Browse the repository at this point in the history
…bilities in Agent (#777)

* Bump Spring, Tomcat, Jackson and other dependencies to Remove Vulnerabilities in Agent

* Fix pmd fails
  • Loading branch information
VictorCavichioli authored Nov 26, 2024
1 parent c0cc636 commit f53e813
Show file tree
Hide file tree
Showing 10 changed files with 148 additions and 107 deletions.
9 changes: 5 additions & 4 deletions CHANGES.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,20 +2,21 @@

## Version 1.0.0 (Not yet Released)

* Bump Spring, Tomcat, Jackson and other dependencies to Remove Vulnerabilities in Agent - Issue #776
* Add Locks In SchedulerManager - Issue #768
* Cassandra-Based Distributed Locks - Issue #741
* Create New Repair Type Called "VNODE" - Issue #755
* Create ReplicaRepairGroup Class for Grouping Replicas and Token Ranges - Issue #721
* Hot Reload of Nodes List - Issue #699
* Investigate Creation of RepairScheduler and ScheduleManager #714
* Investigate Creation of RepairScheduler and ScheduleManager - Issue #714
* Implement ScheduledJobQueue for Prioritized Job Management and Execution - Issue #740
* Implement RepairGroup Class for Managing and Executing Repair Tasks - Issue #738
* Create IncrementalRepairTask Class - Issue #736
* Implement ScheduledRepairJob, ScheduledJob and ScheduledTask for Automated Recurring Task Scheduling in Cassandra - Issue #737
* Create RepairTask Abstract Class to Handle Repair Operations - Issue #717
* Create ReplicationState and ReplicationStateImpl Class for Managing Token-to-Replicas Mapping - Issue #722
* Create a RepairHistory to Store Information on Repair Operations Performed by ecChronos Agent #730
* Generate Unique EcChronos ID #678
* Create a RepairHistory to Store Information on Repair Operations Performed by ecChronos Agent - Issue #730
* Generate Unique EcChronos ID - Issue #678
* Create RepairConfiguration class for repair configurations - Issue #716
* Create DistributedJmxProxy and DistributedJmxProxyFactory - Issue #715
* Create a New Maven Module "utils" for Common Code Reuse - Issue #720
Expand All @@ -31,4 +32,4 @@
* Create JMXAgentConfig to add Hosts in JMX Session Through ecc.yml - Issue #675
* Expose AgentNativeConnectionProvider on Connection and Application Module - Issue #673
* Create DatacenterAwareConfig to add Hosts in CQL Session Through ecc.yml - Issue #671
* Create Initial project Structure for Agent - Issue #695
* Create Initial project Structure for Agent - Issue #695
33 changes: 29 additions & 4 deletions application/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -93,12 +93,12 @@

<dependency>
<groupId>org.springdoc</groupId>
<artifactId>springdoc-openapi-ui</artifactId>
<artifactId>springdoc-openapi-starter-webmvc-ui</artifactId>
</dependency>

<!-- Cassandra driver -->
<dependency>
<groupId>com.datastax.oss</groupId>
<groupId>org.apache.cassandra</groupId>
<artifactId>java-driver-core</artifactId>
</dependency>

Expand Down Expand Up @@ -129,6 +129,16 @@
<artifactId>jackson-databind</artifactId>
</dependency>

<dependency>
<groupId>jakarta.servlet</groupId>
<artifactId>jakarta.servlet-api</artifactId>
</dependency>

<dependency>
<groupId>org.apache.httpcomponents.client5</groupId>
<artifactId>httpclient5</artifactId>
</dependency>

<!-- Test -->
<dependency>
<groupId>org.junit.vintage</groupId>
Expand Down Expand Up @@ -178,10 +188,25 @@
</dependency>
<dependency>
<groupId>org.bouncycastle</groupId>
<artifactId>bcpkix-jdk15on</artifactId>
<version>1.64</version>
<artifactId>bcpkix-jdk18on</artifactId>
<scope>test</scope>
</dependency>
</dependencies>

<!--
This rule has been added temporarily to allow the build to proceed.
The missing JavaDocs will be fixed in a separate pull request.
-->
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-javadoc-plugin</artifactId>
<configuration>
<failOnError>false</failOnError>
</configuration>
</plugin>
</plugins>
</build>

</project>
Original file line number Diff line number Diff line change
Expand Up @@ -70,9 +70,9 @@ public class CertUtils
{
public static final String RSA_ALGORITHM_NAME = "RSA";
public static final String EC_ALGORITHM_NAME = "ECDSA";
//When changing keysize make sure you know what you are doing.
//Too big keysize will slow keypair generation by ALOT.
//2048 for RSA is not secure enough in real world, but since this is only for tests it's perfectly fine.
// When changing key sizes, make sure you know what you are doing.
// Too big key sizes will slow down key pair generation by A LOT.
// 2048 for RSA is not secure enough in the real world, but since this is only for tests it's perfectly fine.
private static final int RSA_KEY_SIZE = 2048;
private static final int EC_KEY_SIZE = 384;
private static final int PEM_ENCODED_LINE_LENGTH = 64;
Expand Down
2 changes: 1 addition & 1 deletion cassandra-test-image/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@

<!-- Cassandra driver -->
<dependency>
<groupId>com.datastax.oss</groupId>
<groupId>org.apache.cassandra</groupId>
<artifactId>java-driver-core</artifactId>
</dependency>

Expand Down
26 changes: 3 additions & 23 deletions connection.impl/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -54,12 +54,12 @@

<!-- Cassandra driver -->
<dependency>
<groupId>com.datastax.oss</groupId>
<groupId>org.apache.cassandra</groupId>
<artifactId>java-driver-core</artifactId>
</dependency>

<dependency>
<groupId>com.datastax.oss</groupId>
<groupId>org.apache.cassandra</groupId>
<artifactId>java-driver-metrics-micrometer</artifactId>
</dependency>

Expand Down Expand Up @@ -90,26 +90,6 @@

<build>
<plugins>
<!-- We shade com.datastax.oss:java-driver-metrics-micrometer to make it work in OSGi -->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-shade-plugin</artifactId>
<executions>
<execution>
<phase>package</phase>
<goals>
<goal>shade</goal>
</goals>
<configuration>
<artifactSet>
<includes>
<include>com.datastax.oss:java-driver-metrics-micrometer</include>
</includes>
</artifactSet>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.felix</groupId>
<artifactId>maven-bundle-plugin</artifactId>
Expand All @@ -124,7 +104,7 @@
</Import-Package>
<Export-Package>
com.ericsson.bss.cassandra.ecchronos.connection.impl.*,
com.datastax.oss.driver.internal.metrics.micrometer.*
org.apache.cassandra.driver.internal.metrics.micrometer.*
</Export-Package>
</instructions>
</configuration>
Expand Down
2 changes: 1 addition & 1 deletion connection/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@

<!-- Cassandra driver -->
<dependency>
<groupId>com.datastax.oss</groupId>
<groupId>org.apache.cassandra</groupId>
<artifactId>java-driver-core</artifactId>
</dependency>

Expand Down
4 changes: 2 additions & 2 deletions core.impl/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -55,12 +55,12 @@

<!-- Cassandra driver -->
<dependency>
<groupId>com.datastax.oss</groupId>
<groupId>org.apache.cassandra</groupId>
<artifactId>java-driver-core</artifactId>
</dependency>

<dependency>
<groupId>com.datastax.oss</groupId>
<groupId>org.apache.cassandra</groupId>
<artifactId>java-driver-query-builder</artifactId>
</dependency>

Expand Down
4 changes: 2 additions & 2 deletions core/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -37,12 +37,12 @@

<!-- Cassandra driver -->
<dependency>
<groupId>com.datastax.oss</groupId>
<groupId>org.apache.cassandra</groupId>
<artifactId>java-driver-core</artifactId>
</dependency>

<dependency>
<groupId>com.datastax.oss</groupId>
<groupId>org.apache.cassandra</groupId>
<artifactId>java-driver-query-builder</artifactId>
</dependency>

Expand Down
4 changes: 2 additions & 2 deletions data/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -60,12 +60,12 @@

<!-- Cassandra driver -->
<dependency>
<groupId>com.datastax.oss</groupId>
<groupId>org.apache.cassandra</groupId>
<artifactId>java-driver-core</artifactId>
</dependency>

<dependency>
<groupId>com.datastax.oss</groupId>
<groupId>org.apache.cassandra</groupId>
<artifactId>java-driver-query-builder</artifactId>
</dependency>

Expand Down
Loading

0 comments on commit f53e813

Please sign in to comment.