Skip to content

Conversation

Jingo88
Copy link
Contributor

@Jingo88 Jingo88 commented Sep 2, 2025

🎟️ Tracking

Verify Archive Working in SDK
PM-19156 - this is the more accurate ticket for tracking the work in this PR

📔 Objective

Updated SDK to use an archivedDate in the ciphers.
Related Server PR
Related Clients PR

⏰ 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

Copy link
Contributor

github-actions bot commented Sep 2, 2025

Logo
Checkmarx One – Scan Summary & Details98c628fe-c307-4806-978f-ed632913e2e5

Great job! No new security vulnerabilities introduced in this pull request

@Jingo88 Jingo88 requested a review from a team as a code owner September 3, 2025 16:59
@Jingo88 Jingo88 requested a review from enmande September 3, 2025 16:59
Copy link

codecov bot commented Sep 3, 2025

Codecov Report

❌ Patch coverage is 94.44444% with 1 line in your changes missing coverage. Please review.
✅ Project coverage is 76.94%. Comparing base (8447df0) to head (b0b6212).
⚠️ Report is 11 commits behind head on main.

Files with missing lines Patch % Lines
crates/bitwarden-vault/src/cipher/cipher.rs 85.71% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main     #422      +/-   ##
==========================================
+ Coverage   76.52%   76.94%   +0.42%     
==========================================
  Files         269      270       +1     
  Lines       25312    25626     +314     
==========================================
+ Hits        19371    19719     +348     
+ Misses       5941     5907      -34     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

gbubemismith
gbubemismith previously approved these changes Sep 5, 2025
Copy link
Contributor

@gbubemismith gbubemismith left a comment

Choose a reason for hiding this comment

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

Vault changes look good 🚀.

Copy link
Member

@dani-garcia dani-garcia left a comment

Choose a reason for hiding this comment

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

Looks fairly reasonable, some small suggestions

keywords.workspace = true

[dependencies]
reqwest = { workspace = true }
Copy link
Member

Choose a reason for hiding this comment

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

We should revert this change, we want to keep using workspace = true for the dependencies to ensure they match with the ones we use on the other crates.

bitwarden-vault = { path = "crates/bitwarden-vault", version = "=1.0.0" }

# External crates that are expected to maintain a consistent version across all crates
async-trait = ">=0.1.80, <0.2"
Copy link
Member

Choose a reason for hiding this comment

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

I think this split was intentional to separate the bitwarden owned crates from the external crates, and should be reverted as well.

serde = { version = "^1.0", features = ["derive"] }
serde_json = "^1.0"
serde_repr = "^0.1"
serde_with = { version = "^3.8", default-features = false, features = ["base64", "std", "macros"] }
Copy link
Member

Choose a reason for hiding this comment

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

Same thing here as on the bitwarden-api-identity

dani-garcia
dani-garcia previously approved these changes Sep 11, 2025
gbubemismith
gbubemismith previously approved these changes Sep 11, 2025
@Hinton
Copy link
Member

Hinton commented Sep 11, 2025

FYI The server PR must be merged before this since we've updated the bindings.

Copy link
Member

Choose a reason for hiding this comment

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

question: What's going on with all the Cargo.toml changes?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@Hinton Ah The cargo changes were from the support/build-api command. I didn't realize I needed to revert all of them. thanks for the heads up.

And yep, I'm going to wait for the server PR to be merged in first. thanks!

Copy link

Copy link

@enmande enmande left a comment

Choose a reason for hiding this comment

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

@Jingo88 thank you for the discussion today!

@Jingo88 Jingo88 merged commit 6cbb16b into main Sep 12, 2025
50 checks passed
@Jingo88 Jingo88 deleted the PM-23193-Add-ArchiveDate branch September 12, 2025 17:52
gbubemismith pushed a commit that referenced this pull request Sep 16, 2025
Updated SDK to use an `archivedDate` in the ciphers.
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.

5 participants