Skip to content

Commit 3daffe1

Browse files
committed
Merge branch 'fix/security-scans' into 'develop'
Fix/security scans See merge request genaiic-reusable-assets/engagement-artifacts/genaiic-idp-accelerator!246
2 parents 8e94961 + 0926f19 commit 3daffe1

File tree

26 files changed

+272
-458
lines changed

26 files changed

+272
-458
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,3 +19,4 @@ __pycache__
1919
rvl_cdip_*
2020
notebooks/examples/data
2121
.idea/
22+
.dsr/

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ SPDX-License-Identifier: MIT-0
55

66
## [Unreleased]
77

8+
89
### Added
910

1011
- **Dynamic Cost Calculation for Metering Data**
@@ -39,6 +40,11 @@ SPDX-License-Identifier: MIT-0
3940
3. This ensures continued cost optimization by preventing unexpected LLM API calls
4041
- **Action Required**: Review your current CloudFormation parameter settings before updating and update your configuration accordingly to preserve existing behavior
4142

43+
### Fixed
44+
- **Fixed B615 "Unsafe Hugging Face Hub download without revision pinning" security finding in Pattern-3 fine-tuning module** - Added revision pinning with to prevent supply chain attacks and ensure reproducible deployments
45+
- **Fixed CloudWatch Log Group Missing Retention regression**
46+
- **Security: Cross-Site Scripting (XSS) Vulnerability in FileViewer Component** - Fixed high-risk XSS vulnerability in `src/ui/src/components/document-viewer/FileViewer.jsx` where `innerHTML` was used with user-controlled data
47+
- **Add permissions boundary support to new Lambda function roles introduced in previous releases**
4248

4349
## [0.3.11]
4450

lib/idp_common_pkg/idp_common/model_finetuning/__init__.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
# Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
2+
# SPDX-License-Identifier: MIT-0
13
"""
24
Model fine-tuning service package.
35
"""

lib/idp_common_pkg/idp_common/model_finetuning/create_provisioned_throughput.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
#!/usr/bin/env python3
2+
# Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
3+
# SPDX-License-Identifier: MIT-0
24
"""
35
Nova Provisioned Throughput Creation Script
46

lib/idp_common_pkg/idp_common/model_finetuning/inference_example.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
#!/usr/bin/env python3
2+
# Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
3+
# SPDX-License-Identifier: MIT-0
24
"""
35
Nova Fine-tuned Model Inference Example Script
46

lib/idp_common_pkg/idp_common/model_finetuning/models.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
# Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
2+
# SPDX-License-Identifier: MIT-0
13
"""
24
Data models for model fine-tuning service.
35
"""

lib/idp_common_pkg/idp_common/model_finetuning/prepare_nova_finetuning_data.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
#!/usr/bin/env python3
2+
# Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
3+
# SPDX-License-Identifier: MIT-0
24
"""
35
Nova Lite Fine-tuning Dataset Preparation Script
46

lib/idp_common_pkg/tests/unit/agents/analytics/test_tools.py

Lines changed: 0 additions & 256 deletions
This file was deleted.
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,3 @@
1+
# Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
2+
# SPDX-License-Identifier: MIT-0
13
# Unit tests for reporting module

lib/idp_common_pkg/tests/unit/reporting/test_config_pricing.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
#!/usr/bin/env python3
2+
# Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
3+
# SPDX-License-Identifier: MIT-0
24
"""
35
Unit tests for configuration-based pricing functionality in SaveReportingData.
46
Tests that pricing is loaded exclusively from configuration dictionary.

0 commit comments

Comments
 (0)