Skip to content

Commit b54f5b8

Browse files
fhoueto-amzdougtoppinDoug Toppin
authored
Update to version v1.0.1 (#26)
Co-authored-by: Doug Toppin <[email protected]> Co-authored-by: Doug Toppin <[email protected]>
1 parent ccb372b commit b54f5b8

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

53 files changed

+441
-496
lines changed

.github/ISSUE_TEMPLATE/bug_report.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ Steps to reproduce the behavior.
1717
A clear and concise description of what you expected to happen.
1818

1919
**Please complete the following information about the solution:**
20-
- [ ] Version: [e.g. v1.0.0]
20+
- [ ] Version: [e.g. v1.0.1]
2121

2222
To get the version of the solution, you can look at the description of the created CloudFormation stack. For example, "_(SO0021) - Video On Demand workflow with AWS Step Functions, MediaConvert, MediaPackage, S3, CloudFront and DynamoDB. Version **v5.0.0**_". If the description does not contain the version information, you can look at the mappings section of the template:
2323

CHANGELOG.md

+36
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,45 @@
11
# Change Log
2+
23
All notable changes to this project will be documented in this file.
34

45
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
56
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
67

8+
## [1.0.1] - 2024-07-01
9+
10+
### Fixed
11+
12+
- Fix the outdated segmentCache selection strategy runtime config [#11](https://github.com/aws-solutions/scalable-analytics-using-apache-druid-on-aws/pull/11)
13+
- Fix log/metrics endpoints when fips enabled [#14](https://github.com/aws-solutions/scalable-analytics-using-apache-druid-on-aws/pull/14)
14+
15+
### Added
16+
17+
- allow solution to config internal system [#7](https://github.com/aws-solutions/scalable-analytics-using-apache-druid-on-aws/pull/7)
18+
- Update zk netplan render to handle docker bridge network interface[#8](https://github.com/aws-solutions/scalable-analytics-using-apache-druid-on-aws/pull/8)
19+
- add support to define custom oidc scopes [#9](https://github.com/aws-solutions/scalable-analytics-using-apache-druid-on-aws/pull/9)
20+
- Bump CloudWatch Synthetics runtime version [#10](https://github.com/aws-solutions/scalable-analytics-using-apache-druid-on-aws/pull/10)
21+
- Add vpc to all lambdas, allow users to self manage install bucket assets [#15](https://github.com/aws-solutions/scalable-analytics-using-apache-druid-on-aws/pull/15)
22+
- setup nvme disk for data/historical/middlemanager [#16](https://github.com/aws-solutions/scalable-analytics-using-apache-druid-on-aws/pull/16)
23+
- Use proper cfn endpoint, update name tag to include tier [#22](https://github.com/aws-solutions/scalable-analytics-using-apache-druid-on-aws/pull/22)
24+
- adding graceful shutdown for druid process [#23](https://github.com/aws-solutions/scalable-analytics-using-apache-druid-on-aws/pull/23)
25+
26+
### Changed
27+
28+
- for pac4j version change: OidcAuthenticator.java, OidcConfig.java, OidcFilter.java, OidcSessionStore.java
29+
- ec2 user data for provisioning changes
30+
- deprecated RDS certificate name changed from RDS_CA_RDS2048_G1 to RDS_CA_RSA2048_G1
31+
- deprecated CloudWatch VPC endpoint name changed from CLOUDWATCH to CLOUDWATCH_MONITORING
32+
- README instructions
33+
- cdk version updated to 2.146.0
34+
- Druid release to 29.0.1
35+
- braces package to 3.0.3 due to CVE-2024-4068
36+
- unit test improvements
37+
- pac4j package to 4.5.7 due to CVE-2021-44878
38+
- druid-oidc to 29.0.1
39+
- guava to 32.0.0-jre due to CVE-2023-2976
40+
741
## [1.0.0] - 2024-01-09
42+
843
### Added
44+
945
- All files, initial version

LICENSE

-175
This file was deleted.

NOTICE

-1
This file was deleted.

NOTICE.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ This software includes third party software subject to the following copyrights:
1313

1414
./source
1515
==========
16-
@aws-cdk/lambda-layer-kubectl-v23@2.0.8 Apache-2.0
16+
@aws-cdk/lambda-layer-kubectl-v29@2.0.0 Apache-2.0
1717
@aws-cdk/[email protected] Apache-2.0
1818
@aws-sdk/[email protected] Apache-2.0
1919
@aws-sdk/[email protected] Apache-2.0

deployment/build-s3-dist.sh

+3-3
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
# Parameters:
2222
# - source-bucket-base-name: Name for the S3 bucket location where the template will source the Lambda
2323
# code from. The template will append '-[region_name]' to this bucket name.
24-
# For example: ./build-s3-dist.sh solutions v1.0.0
24+
# For example: ./build-s3-dist.sh solutions v1.0.1
2525
# The template will then expect the source code to be located in the solutions-[region_name] bucket
2626
# - solution-name: name of the solution for consistency
2727
# - version-code: version of the package
@@ -33,7 +33,7 @@ normal=$(tput sgr0)
3333
# SETTINGS
3434
#------------------------------------------------------------------------------
3535
# Important: CDK global version number
36-
cdk_version=2.115.0
36+
cdk_version=2.140.0
3737
# Note: should match package.json
3838
template_format="json"
3939
run_helper="false"
@@ -60,7 +60,7 @@ usage()
6060
{
6161
echo "Usage: $0 bucket solution-name version"
6262
echo "Please provide the base source bucket name, trademarked solution name, and version."
63-
echo "For example: ./build-s3-dist.sh mybucket my-solution v1.0.0"
63+
echo "For example: ./build-s3-dist.sh mybucket my-solution v1.0.1"
6464
exit 1
6565
}
6666

source/DruidCloudwatchExtension/pom.xml

+3-3
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
<dependency>
2727
<groupId>org.projectlombok</groupId>
2828
<artifactId>lombok</artifactId>
29-
<version>1.18.20</version>
29+
<version>1.18.30</version>
3030
</dependency>
3131
<!-- https://mvnrepository.com/artifact/com.amazonaws/aws-java-sdk-cloudwatch -->
3232
<dependency>
@@ -37,7 +37,7 @@
3737
<dependency>
3838
<groupId>junit</groupId>
3939
<artifactId>junit</artifactId>
40-
<version>4.12</version>
40+
<version>4.13.1</version>
4141
<scope>test</scope>
4242
</dependency>
4343
<dependency>
@@ -157,4 +157,4 @@
157157
</plugin>
158158
</plugins>
159159
</build>
160-
</project>
160+
</project>

source/DruidCloudwatchExtension/src/main/java/com/amazon/solutions/druid/cloudwatch/CloudwatchEmitter.java

+2-1
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,8 @@ public class CloudwatchEmitter implements Emitter {
8181

8282
private final ObjectMapper jsonMapper;
8383

84-
private final CloudwatchEmitterConfig config;
84+
// set to nosonar because it causes a false positive
85+
private final CloudwatchEmitterConfig config; // NOSONAR
8586

8687
private final DruidMonitoringMetricsFactory druidMonitoringMetricsFactory;
8788

source/DruidCloudwatchExtension/src/main/java/com/amazon/solutions/druid/cloudwatch/CloudwatchEmitterConfig.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
@Data
2525
public class CloudwatchEmitterConfig {
2626
static final int CLOUDWATCH_METRICS_MEMORY_LIMIT = 100000000;
27-
static final String SOLUTION_VERSION = "v1.0.0";
27+
static final String SOLUTION_VERSION = "v1.0.1";
2828

2929
@JsonProperty("batchSize")
3030
@Nullable

source/DruidCloudwatchExtension/src/test/java/com/amazon/solutions/druid/cloudwatch/CloudwatchEmitterConfigTest.java

+2-2
Original file line numberDiff line numberDiff line change
@@ -57,15 +57,15 @@ public void testGetBatchSize_withDefaultBatchSize() {
5757
@Test
5858
public void testToString_withValidConfig() {
5959
// arrange
60-
CloudwatchEmitterConfig config = new CloudwatchEmitterConfig("test-cluster", 200, "v1.0.0");
60+
CloudwatchEmitterConfig config = new CloudwatchEmitterConfig("test-cluster", 200, "v1.0.1");
6161

6262
// act
6363
String actual = config.toString();
6464

6565
// assert
6666
Assert.assertTrue(actual.contains("test-cluster"));
6767
Assert.assertTrue(actual.contains("200"));
68-
Assert.assertTrue(actual.contains("v1.0.0"));
68+
Assert.assertTrue(actual.contains("v1.0.1"));
6969
Assert.assertTrue(actual.contains("CloudwatchEmitterConfig"));
7070
}
7171

source/DruidCloudwatchExtension/src/test/java/com/amazon/solutions/druid/cloudwatch/CloudwatchEmitterTest.java

+22-2
Original file line numberDiff line numberDiff line change
@@ -30,13 +30,17 @@
3030
import org.mockito.Mock;
3131
import org.mockito.MockitoAnnotations;
3232
import org.mockito.Spy;
33+
34+
import java.util.ArrayList;
3335
import java.util.List;
3436
import java.util.concurrent.ScheduledExecutorService;
3537
import java.util.concurrent.TimeUnit;
3638
import java.util.concurrent.atomic.AtomicLong;
3739
import com.amazonaws.services.cloudwatch.model.PutMetricDataRequest;
3840
import com.amazonaws.services.cloudwatch.model.StandardUnit;
3941
import static org.junit.Assert.*;
42+
import static org.mockito.ArgumentMatchers.any;
43+
import static org.mockito.ArgumentMatchers.anyLong;
4044
import static org.mockito.Mockito.*;
4145

4246
public class CloudwatchEmitterTest {
@@ -95,8 +99,17 @@ public void testSendMetricToCloudwatch() throws InterruptedException {
9599
eventMetricDatum.setMetricName("event-metric");
96100
eventMetricDatum.setValue(1.0);
97101
eventMetricDatum.setUnit(StandardUnit.Count);
102+
103+
Dimension dimensionEventMetric = new Dimension();
104+
dimensionEventMetric.setName("test-dimension");
105+
dimensionEventMetric.setValue("test-value");
106+
List<Dimension> dimensionsEventMetric = new ArrayList<>();
107+
dimensionsEventMetric.add(dimensionEventMetric);
108+
98109
eventMetricDatum.setDimensions(
99-
List.of(new Dimension().withName("test-dimension").withValue("test-value")));
110+
dimensionsEventMetric
111+
);
112+
100113
ObjectContainer<MetricDatum> eventMetricContainer =
101114
emitter.getObjectContainer(eventMetricDatum);
102115
metricQueue.offer(eventMetricContainer);
@@ -105,8 +118,15 @@ public void testSendMetricToCloudwatch() throws InterruptedException {
105118
alertMetricDatum.setMetricName("alert-metric");
106119
alertMetricDatum.setValue(1.0);
107120
alertMetricDatum.setUnit(StandardUnit.Count);
121+
122+
Dimension dimensionAlertMetric = new Dimension();
123+
dimensionAlertMetric.setName("test-dimension");
124+
dimensionAlertMetric.setValue("test-value");
125+
List<Dimension> dimensionsAlertMetric = new ArrayList<>();
126+
dimensionsAlertMetric.add(dimensionEventMetric);
127+
108128
alertMetricDatum.setDimensions(
109-
List.of(new Dimension().withName("test-dimension").withValue("test-value")));
129+
dimensionsAlertMetric);
110130
ObjectContainer<MetricDatum> alertMetricContainer =
111131
emitter.getObjectContainer(alertMetricDatum);
112132
alertQueue.offer(alertMetricContainer);

0 commit comments

Comments
 (0)