aws / aws/aws-encryption-sdk-python

potential issue with large reads on nonframed messages

オープン
#53 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る
bug
主要言語
Python
スター
255
フォーク
92
平均マージ
2日 17時間
マージ済み PR(30日)
2

説明

In tracking down an issue in an unrelated codebase, I discovered that at least in some cases, passing more than 2GiB to the pyca/cryptography `Cipher.update()` methods can cause issues with the underlying OpenSSL implementation.

This is not an issue with framed messages because our max frame size is 2GiB, but could be an issue for nonframed messages larger than 2GiB.

We should add tests that check for this edge case, and if it is an issue we can add chunking logic.

コントリビューションガイド

コントリビューションガイドを開く

調査の方向性

まず、フレーム化されていないメッセージに対して pyca/cryptography の Cipher.update() メソッドに 2GiB 超を渡して報告された動作を再現し、フレーム化されたメッセージと比較します。このエッジケースのリグレッションテストを追加します。完了条件は、大きなフレーム化されていないメッセージが確実に動作し、基盤となる OpenSSL の問題が確認された場合にはチャンク分割ロジックが追加されていることです。

索引モデルが issue の本文から書いたものです。

評価

技術スタック
python
領域
cryptography
issue の種類
バグ
難易度
4/5
見積もり時間
3〜5日
活発さ
停滞
明瞭さ
おおむね明確
初心者へのやさしさ
45/100

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。