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

Support client version prerelease flag in context and LD targeting #4994

Merged
merged 3 commits into from
Nov 7, 2024

Conversation

withinfocus
Copy link
Contributor

🎟️ Tracking

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

📔 Objective

Loads the new Is-Prerelease client header into context and makes it available to LaunchDarkly.

⏰ 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

@withinfocus withinfocus marked this pull request as ready for review November 7, 2024 16:05
Copy link

codecov bot commented Nov 7, 2024

Codecov Report

Attention: Patch coverage is 16.66667% with 5 lines in your changes missing coverage. Please review.

Please upload report for BASE (main@d6e624d). Learn more about missing BASE report.
Report is 1 commits behind head on main.

Files with missing lines Patch % Lines
src/Core/Context/CurrentContext.cs 0.00% 4 Missing and 1 partial ⚠️
Additional details and impacted files
@@           Coverage Diff           @@
##             main    #4994   +/-   ##
=======================================
  Coverage        ?   42.52%           
=======================================
  Files           ?     1391           
  Lines           ?    64830           
  Branches        ?     5951           
=======================================
  Hits            ?    27572           
  Misses          ?    36032           
  Partials        ?     1226           

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

trmartin4
trmartin4 previously approved these changes Nov 7, 2024
Copy link
Member

@trmartin4 trmartin4 left a comment

Choose a reason for hiding this comment

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

Just one question, but looks good. Thank you for doing this!

src/Core/Context/CurrentContext.cs Outdated Show resolved Hide resolved
Copy link
Contributor

github-actions bot commented Nov 7, 2024

Logo
Checkmarx One – Scan Summary & Details55a55897-56fd-471a-bea8-12b7407205e3

New Issues

Severity Issue Source File / Package Checkmarx Insight
LOW Log_Forging /src/Api/Vault/Controllers/CiphersController.cs: 906 Attack Vector
LOW Log_Forging /src/Api/AdminConsole/Controllers/OrganizationsController.cs: 266 Attack Vector
LOW Log_Forging /src/Api/AdminConsole/Controllers/OrganizationsController.cs: 405 Attack Vector
LOW Log_Forging /src/Api/AdminConsole/Controllers/OrganizationsController.cs: 342 Attack Vector

Fixed Issues

Severity Issue Source File / Package
MEDIUM CSRF /src/Api/AdminConsole/Controllers/OrganizationsController.cs: 122
MEDIUM CSRF /src/Api/Vault/Controllers/CiphersController.cs: 110
MEDIUM CSRF /src/Api/Vault/Controllers/CiphersController.cs: 124
MEDIUM CSRF /src/Api/Vault/Controllers/CiphersController.cs: 944
MEDIUM CSRF /src/Api/AdminConsole/Controllers/OrganizationsController.cs: 472
MEDIUM CSRF /src/Api/AdminConsole/Controllers/OrganizationsController.cs: 405
MEDIUM CSRF /src/Api/Vault/Controllers/CiphersController.cs: 684
LOW Log_Forging /src/Api/Vault/Controllers/CiphersController.cs: 173
LOW Log_Forging /src/Api/Vault/Controllers/CiphersController.cs: 158

@withinfocus withinfocus merged commit 21b7c3b into main Nov 7, 2024
52 checks passed
@withinfocus withinfocus deleted the prerelease-context branch November 7, 2024 21:13
cyprain-okeke pushed a commit that referenced this pull request Nov 12, 2024
…4994)

* Support client version prerelease flag in context and LD targeting

* Use integer instead of Boolean
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.

2 participants