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-15554] Added cipher-key-encryption remote feature flag logic #1205

Merged
merged 5 commits into from
Dec 23, 2024

Conversation

fedemkr
Copy link
Member

@fedemkr fedemkr commented Dec 12, 2024

🎟️ Tracking

PM-15554

📔 Objective

Added cipher-key-encryption feature flag and its logic so cipher key encryption is enabled on the SDK when such flag is enabled and the server version supports this encryption.
Default value of the flag is true so to work when the configuration doesn't have the flag either because the app hasn't synced the configuration with the new one that has the flag or because the flag gets removed. In such case server version check remains in there to enable/disable the feature.

⏰ 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 Dec 12, 2024

Logo
Checkmarx One – Scan Summary & Details8b884516-7d64-4e3c-968b-414a5cb2101f

No New Or Fixed Issues Found

# Conflicts:
#	BitwardenShared/Core/Platform/Models/Enum/FeatureFlag.swift
#	BitwardenShared/Core/Platform/Models/Enum/FeatureFlagTests.swift
… and updated loadFlags to use the normal async version of that to keep things simple. Also fixes several warnings in the code.
Copy link

codecov bot commented Dec 23, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 89.48%. Comparing base (fe4ba4b) to head (a818a49).
Report is 1 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #1205   +/-   ##
=======================================
  Coverage   89.47%   89.48%           
=======================================
  Files         700      700           
  Lines       44724    44733    +9     
=======================================
+ Hits        40019    40028    +9     
  Misses       4705     4705           

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

@fedemkr fedemkr merged commit 6c6c3ed into main Dec 23, 2024
9 checks passed
@fedemkr fedemkr deleted the PM-15554/cipher-key-encryption-remote-flag branch December 23, 2024 16:30
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.

3 participants