aws / aws/aws-dynamodb-encryption-python

Wrong formatting in the deprecated python warning

未关闭
#524 3 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
good first issue maintenance
主要语言
Python
星标
95
派生
57
PR 合并指标
30 天内没有已合并 PR

描述

### Security issue notifications

If you discover a potential security issue in the Amazon DynamoDB Encryption Client we ask that you notify AWS Security via our [vulnerability reporting page](https://aws.amazon.com/security/vulnerability-reporting/). Please do **not** create a public GitHub issue.

### Problem:
https://github.com/aws/aws-dynamodb-encryption-python/blob/35ee30aea5a93b4446677fdf1f14edc3ca3c0452/src/dynamodb_encryption_sdk/compatability.py#L39

The _minimum_version_ and _date_ seem to have been swapped in the deprecated python warning.
### Solution:

Putting the `params["date"]` before the `minimum_version[0]` should fix the issue.

### Out of scope:

Is there anything the solution will intentionally NOT address?

[//]: # (NOTE: If you believe this might be a security issue, please email aws-security@amazon.com instead of creating a GitHub issue. For more details, see the AWS Vulnerability Reporting Guide: https://aws.amazon.com/security/vulnerability-reporting/ )

贡献指南

打开贡献指南

调研方向

打开 src/dynamodb_encryption_sdk/compatability.py 的第 39 行,检查已弃用的 Python 警告格式。验证当前用于最低版本和日期的值,然后确认该警告是否按照 issue 中描述的预期顺序呈现这些值。

由索引模型根据 Issue 内容生成。

评估

技术栈
python
领域
backend
Issue 类型
缺陷
难度
1/5
预计耗时
1 小时以内
活跃度
停滞
描述清晰度
描述清楚
新手友好度
35/100

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。