Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. Weโ€™ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[PM-8874] Set attachment size when encrypting #846

Merged
merged 2 commits into from
Jun 14, 2024

Conversation

dani-garcia
Copy link
Member

๐ŸŽŸ๏ธ Tracking

https://bitwarden.atlassian.net/browse/PM-8874

๐Ÿ“” Objective

Set the attachment size after we encrypt the contents

โฐ Reminders before review

  • Contributor guidelines followed
  • All formatters and local linters executed and passed
  • Written new unit and / or integration tests where applicable
  • Protected functional changes with optionality (feature flags)
  • Used internationalization (i18n) for all UI strings
  • CI builds passed
  • Communicated to DevOps any deployment requirements
  • Updated any necessary documentation (Confluence, contributing docs) or informed the documentation
    team

๐Ÿฆฎ Reviewer guidelines

  • ๐Ÿ‘ (:+1:) or similar for great changes
  • ๐Ÿ“ (:memo:) or โ„น๏ธ (:information_source:) for notes or general info
  • โ“ (:question:) for questions
  • ๐Ÿค” (:thinking:) or ๐Ÿ’ญ (:thought_balloon:) for more open inquiry that's not quite a confirmed
    issue and could potentially benefit from discussion
  • ๐ŸŽจ (:art:) for suggestions / improvements
  • โŒ (:x:) or โš ๏ธ (:warning:) for more significant problems or concerns needing attention
  • ๐ŸŒฑ (:seedling:) or โ™ป๏ธ (:recycle:) for future improvements or indications of technical debt
  • โ› (:pick:) for minor or nitpick changes

@dani-garcia dani-garcia requested a review from Hinton June 14, 2024 14:26
Copy link
Contributor

github-actions bot commented Jun 14, 2024

Logo
Checkmarx One โ€“ Scan Summary & Details โ€“ 00a8f60d-d7d6-4170-96cf-583b2419428c

No New Or Fixed Issues Found

Copy link

codecov bot commented Jun 14, 2024

Codecov Report

All modified and coverable lines are covered by tests โœ…

Project coverage is 60.30%. Comparing base (56d5001) to head (76b0098).

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #846      +/-   ##
==========================================
+ Coverage   59.92%   60.30%   +0.38%     
==========================================
  Files         189      189              
  Lines       12286    12361      +75     
==========================================
+ Hits         7362     7454      +92     
+ Misses       4924     4907      -17     

โ˜” View full report in Codecov by Sentry.
๐Ÿ“ข Have feedback on the report? Share it here.

@@ -151,6 +167,18 @@ mod tests {
Attachment, AttachmentFile, Cipher,
};

#[test]
fn test_size_name_conversions() {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should we also test the encrypt_with_keyvalues?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good point, added a test to see that the values get updated

@Hinton Hinton merged commit 32ac1e4 into main Jun 14, 2024
104 checks passed
@Hinton Hinton deleted the ps/PM-8874-set-attachment-size branch June 14, 2024 14:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants