Skip to content

Commit 91dfb0d

Browse files
Taniya [C] Mathurrstrahan
authored andcommitted
Security: Update Python to 3.12+ and fix dependency vulnerabilities
1 parent 0f3e5fd commit 91dfb0d

17 files changed

Lines changed: 1159 additions & 2086 deletions

File tree

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,8 @@ SPDX-License-Identifier: MIT-0
1515

1616
### Changed
1717

18+
- **Python 3.12+ now required** — Updated minimum Python version from 3.10 to 3.12 to address security vulnerabilities in transitive dependencies.
19+
1820
- **Sync to BDA no longer auto-activates the config version** — Previously, performing "Sync to BDA" would automatically set the current config version as active. Since each config version now has its own BDA project, auto-activation is unnecessary. Users can manually choose which version to activate via the Versions table. The "Sync to BDA" confirmation modal text has been updated accordingly.
1921

2022
- **Removed `Bedrock Data Automation (BDA) Project ARN` CloudFormation parameter** — The deploy-time `Pattern1BDAProjectArn` parameter has been removed as it was redundant with the per-config-version BDA project management already available in the Web UI, CLI, and GraphQL API. BDA projects are now managed entirely post-deployment: enable `use_bda: true` in your configuration, then use "Sync to BDA" to create or link a BDA project, or "Sync from BDA" to import from any existing BDA project. This simplifies the deployment experience (one fewer parameter) and better aligns the CloudFormation interface with the system's actual architecture. Existing deployed stacks are unaffected — runtime BDA project ARN resolution reads from DynamoDB per-version tracking, not from the CloudFormation parameter. Also removed the unused `nested/bda-lending-project/` directory (dead code not referenced by any template) and the legacy `BDA_PROJECT_ARN` environment variable fallback from the sync resolver.

CLAUDE.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ python3 publish.py idp-1234567890 idp us-east-1 --verbose
2929
```
3030

3131
The build process:
32-
- Checks system dependencies (AWS CLI, SAM CLI, Docker, Python 3.11+, Node.js 22.12+)
32+
- Checks system dependencies (AWS CLI, SAM CLI, Docker, Python 3.12+, Node.js 22.12+)
3333
- Builds CloudFormation templates and assets using SAM
3434
- Pattern-2 functions are built as container images; Pattern-1 and Pattern-3 use ZIP-based Lambdas
3535
- Uploads artifacts to S3 bucket named `<cfn_bucket_basename>-<region>`

CONTRIBUTING.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ opensource-codeofconduct@amazon.com with any additional questions or comments.
3737
- Bash shell (Linux, MacOS)
3838
- AWS CLI
3939
- AWS SAM CLI
40-
- Python 3.11 or later
40+
- Python 3.12 or later
4141
- Docker
4242

4343
2. **Fork and Clone the Repository**:

docs/deployment.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ You need to have the following packages installed on your computer:
114114
1. bash shell (Linux, MacOS, Windows-WSL)
115115
2. aws (AWS CLI)
116116
3. [sam (AWS SAM)](https://docs.aws.amazon.com/serverless-application-model/latest/developerguide/install-sam-cli.html)
117-
4. python 3.11 or later
117+
4. python 3.12 or later
118118
5. A local Docker daemon
119119
6. Python packages: `pip install boto3 rich typer PyYAML botocore setuptools ruff build cfn-lint`
120120
7. **Node.js 22.12+** and **npm** (required for UI validation in publish script)

docs/idp-cli.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ https://github.com/user-attachments/assets/3d448a74-ba5b-4a4a-96ad-ec03ac0b4d7d
6666

6767
### Prerequisites
6868

69-
- Python 3.10 or higher
69+
- Python 3.12 or higher
7070
- AWS credentials configured (via AWS CLI or environment variables)
7171
- An active IDP Accelerator CloudFormation stack
7272

lib/idp_cli_pkg/pyproject.toml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,14 +11,12 @@ version = "0.5.2.4"
1111
description = "Command-line interface for IDP Accelerator batch document processing"
1212
authors = [{name = "AWS"}]
1313
license = {text = "MIT-0"}
14-
requires-python = ">=3.10"
14+
requires-python = ">=3.12,<3.14"
1515
classifiers = [
1616
"Development Status :: 4 - Beta",
1717
"Intended Audience :: Developers",
1818
"License :: OSI Approved :: MIT License",
1919
"Programming Language :: Python :: 3",
20-
"Programming Language :: Python :: 3.10",
21-
"Programming Language :: Python :: 3.11",
2220
"Programming Language :: Python :: 3.12",
2321
"Programming Language :: Python :: 3.13",
2422
]

lib/idp_common_pkg/pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ name = "idp_common"
2323
version = "0.5.2.4"
2424
description = "Common utilities for GenAI IDP Accelerator patterns"
2525
authors = [{ name = "AWS", email = "noreply@amazon.com" }]
26-
requires-python = ">=3.10,<3.14"
26+
requires-python = ">=3.12,<3.14"
2727
dependencies = [
2828
"boto3==1.42.0", # Core dependency for AWS services
2929
"jsonschema>=4.25.1",

lib/idp_common_pkg/setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@
130130
]
131131
),
132132
include_package_data=True,
133-
python_requires=">=3.8",
133+
python_requires=">=3.12,<3.14",
134134
install_requires=install_requires,
135135
extras_require=extras_require,
136136
)

lib/idp_common_pkg/uv.lock

Lines changed: 1136 additions & 2074 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

lib/idp_sdk/pyproject.toml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,15 +11,13 @@ version = "0.5.2.4"
1111
description = "Python SDK for IDP Accelerator - programmatic access to document processing capabilities"
1212
authors = [{name = "AWS"}]
1313
license = {text = "MIT-0"}
14-
requires-python = ">=3.10"
14+
requires-python = ">=3.12,<3.14"
1515
readme = "README.md"
1616
classifiers = [
1717
"Development Status :: 4 - Beta",
1818
"Intended Audience :: Developers",
1919
"License :: OSI Approved :: MIT License",
2020
"Programming Language :: Python :: 3",
21-
"Programming Language :: Python :: 3.10",
22-
"Programming Language :: Python :: 3.11",
2321
"Programming Language :: Python :: 3.12",
2422
"Programming Language :: Python :: 3.13",
2523
"Topic :: Software Development :: Libraries :: Python Modules",

0 commit comments

Comments
 (0)