1
0
mirror of https://github.com/bitwarden/server synced 2026-01-28 15:23:38 +00:00
Commit Graph

6608 Commits

Author SHA1 Message Date
Thomas Rittson
c84dd78463 Rethrow exception
Co-authored-by: claude[bot] <209825114+claude[bot]@users.noreply.github.com>
2026-01-02 13:46:02 +10:00
Thomas Rittson
1a42f6f630 Add general catch block 2026-01-02 13:40:18 +10:00
Thomas Rittson
0face3a06e Add explicit transaction in EF 2026-01-02 13:39:34 +10:00
Thomas Rittson
51800923ef Trigger code review 2026-01-02 13:27:59 +10:00
Thomas Rittson
8427367c76 Use guid array instead of json 2026-01-02 08:36:12 +10:00
Thomas Rittson
415182a9b8 Fix test 2026-01-02 08:15:01 +10:00
Thomas Rittson
8ab5ad1b3a Merge remote-tracking branch 'origin/main' into ac/pm-28555/add-semaphore-table 2026-01-02 08:06:42 +10:00
Thomas Rittson
2bf848720b local code review feedback 2026-01-01 15:31:47 +10:00
Thomas Rittson
38bab4448f dotnet format 2026-01-01 15:23:15 +10:00
Thomas Rittson
897719e695 Move semaphore into helper method for consistent creation date 2026-01-01 15:21:29 +10:00
Thomas Rittson
ebbdc946a1 Return uniform error 2026-01-01 15:16:48 +10:00
Thomas Rittson
a9e840988d DRY arrangement code between repositories 2026-01-01 14:26:31 +10:00
Thomas Rittson
8212af5230 dotnet format 2026-01-01 14:13:21 +10:00
Thomas Rittson
6bcc17f02a Update existing code paths to use new method 2026-01-01 14:12:16 +10:00
Thomas Rittson
21d7276625 Move filtering out of db layer 2026-01-01 13:51:10 +10:00
Thomas Rittson
a6fcee7094 Generate EF migrations 2026-01-01 09:37:49 +10:00
Thomas Rittson
7ea237f5d5 Remove redundant OrganizationId column; remove private read method used by bulk insert 2026-01-01 09:30:24 +10:00
✨ Audrey ✨
484a8e42dc [PM-21918] update send api models to support new email field (#5895)
* update send api models to support new `email` field

* normalize authentication field evaluation order

* document send response converters

* add FIXME to remove unused constructor argument

* add FIXME to remove unused constructor argument

* introduce `tools-send-email-otp-listing` feature flag

* add `ISendOwnerQuery` to dependency graph

* fix broken tests

* added AuthType prop to send related models with test coverage and debt cleanup

* dotnet format

* add migrations

* dotnet format

* make SendsController null safe (tech debt)

* add AuthType col to Sends table, change Emails col length to 4000, and run migrations

* dotnet format

* update SPs to expect AuthType

* include SP updates in migrations

* remove migrations not intended for merge

* Revert "remove migrations not intended for merge"

This reverts commit 7df56e346a.

undo migrations removal

* extract AuthType inference to util method and remove SQLite file

* fix lints

* address review comments

* fix incorrect assignment and adopt SQL conventions

* fix column assignment order in Send_Update.sql

* remove space added to email list

* assign SQL default value of NULL to AuthType

* update SPs to match migration changes

---------

Co-authored-by: Daniel James Smith <2670567+djsmith85@users.noreply.github.com>
Co-authored-by: Alex Dragovich <46065570+itsadrago@users.noreply.github.com>
Co-authored-by: John Harrington <84741727+harr1424@users.noreply.github.com>
2025-12-31 13:37:42 -07:00
Brant DeBow
cc03842f5f Disable database distributed cache in non-self-hosted environments (#6783)
* Disable database distributed cache in non-self-hosted environments

* Added distributed memory cache as a final fallback option
2025-12-31 11:59:59 -05:00
cyprain-okeke
665be6bfb0 [PM-29611] Decouple License from Subscription Response (#6768)
* implement the ticket request

* resolve the build lint error

* Resolve the build lint error

* Address review comments

* Fixt the lint and failing unit test

* Fix NSubstitute mock - use concrete ClaimsPrincipal instead of Arg.Any in Returns()

* resolve InjectUser issues

* Fix the failing testing

* Fix the failing unit test
2025-12-31 17:30:41 +01:00
Mick Letofsky
bf08bd279c Revert review Code Triggered by labeled event (#6785) 2025-12-31 16:56:03 +01:00
Thomas Rittson
f668a0ce0a Fix sproc name 2025-12-31 14:26:27 +10:00
Thomas Rittson
36aad90cb8 Explicit transaction for mssql 2025-12-31 14:25:14 +10:00
Thomas Rittson
53bc10015f Assert semaphores in Create tests 2025-12-31 14:06:39 +10:00
Thomas Rittson
7aef3da855 Refine tests (failing) 2025-12-31 14:04:05 +10:00
Thomas Rittson
90f2e2baeb Rename upsert -> create to reflect behavior 2025-12-31 13:42:32 +10:00
Thomas Rittson
843fd7ac9d Fix validator using wrong method 2025-12-31 13:41:55 +10:00
Thomas Rittson
9cc89eb850 Update existing bulk tests to assert semaphores 2025-12-31 13:35:40 +10:00
Thomas Rittson
a53bb23c23 Add tests for cascade delete behavior 2025-12-31 13:29:11 +10:00
Thomas Rittson
ae9d18ac9b Add read sproc for semaphores 2025-12-31 13:28:59 +10:00
Thomas Rittson
e67727bf25 Update naming in existing bulk tests 2025-12-31 13:04:04 +10:00
Thomas Rittson
31eebe2285 Update existing reads to use semaphore 2025-12-31 12:57:30 +10:00
Ike
f82552fba9 [PM-29568] Fix footer styling (#6722)
* fix: update footer background color to match UIF Tailwind standards.

* fix: modify spacing for footer

* chore: build templates

* fix: update social icon assets

* fix: update footer image source

* fix: update send access
2025-12-30 14:08:10 -05:00
Mick Letofsky
c98f31a9f7 Review Code Triggered by labeled event (#6782) 2025-12-30 18:22:09 +01:00
Brant DeBow
86a68ab637 Move all event integration code to Dirt (#6757)
* Move all event integration code to Dirt

* Format to fix lint
2025-12-30 10:59:19 -05:00
Isaiah Inuwa
9a340c0fdd Allow mobile clients to create passkeys (#6383) [PM-26177]
* Allow mobile clients to create vault passkeys

* Document uses for authorization policies
2025-12-30 07:31:26 -06:00
Thomas Rittson
a91f0967f4 Make sqlbulkcopy check constraints 2025-12-30 14:48:49 +10:00
Thomas Rittson
f069fafea1 First pass at semaphore 2025-12-30 14:21:42 +10:00
Jason Ng
34b4dc3985 [PM-29650] retain item archive date on softdelete (#6771) 2025-12-29 13:30:57 -05:00
Shane Melton
3b5bb76800 [PM-28747] Storage limit bypass for enforce organization ownership policy (#6759)
* [PM-28747] Bypass storage limit when enforce organization data ownership policy is enabled

* [PM-28747] Unit tests for storage limit enforcement

* [PM-28747] Add feature flag check

* [PM-28747] Simplify ignore storage limits policy enforcement

* [PM-28747] Add additional test cases
2025-12-29 09:30:22 -08:00
Dave
2dc4e9a420 feat(2fa-webauthn) [PM-20109]: Increase 2FA WebAuthn Security Key Limit (#6751)
* feat(global-settings) [PM-20109]: Add WebAuthN global settings.

* feat(webauthn) [PM-20109]: Update maximum allowed WebAuthN credentials to use new settings.

* test(webauthn) [PM-20109]: Update command tests to use global configs.

* feat(global-settings) [PM-20109]: Set defaults for maximum allowed credentials.

* feat(two-factor-request-model) [PM-20109]: Remove hard-coded 5 limit on ID validation.

* Revert "test(webauthn) [PM-20109]: Update command tests to use global configs."

This reverts commit ba9f0d5fb6.

* Revert "feat(webauthn) [PM-20109]: Update maximum allowed WebAuthN credentials to use new settings."

This reverts commit d2faef0c13.

* feat(global-settings) [PM-20109]: Add WebAuthNSettings to interface for User Service consumption.

* feat(user-service) [PM-20109]: Add boundary and persistence-time validation for maximum allowed WebAuthN 2FA credentials.

* test(user-service) [PM-20109]: Update tests for WebAuthN limit scenarios.

* refactor(user-service) [PM-20109]: Typo in variable name.

* refactor(user-service) [PM-20109]: Remove unnecessary pending check.

* refactor(user-service) [PM-20109]: Pending check is necessary.

* refactor(webauthn) [PM-20109]: Re-spell WebAuthN => WebAuthn.

* refactor(user-service) [PM-20109]: Re-format pending checks for consistency.

* refactor(user-service) [PM-20109]: Fix type spelling in comments.

* test(user-service) [PM-20109]: Combine premium and non-premium test cases with AutoData.

* refactor(user-service) [PM-20109]: Swap HasPremiumAccessQuery in for CanAccessPremium.

* refactor(user-service) [PM-20109]: Convert limit check to positive, edit comments.
2025-12-29 11:55:05 -05:00
Todd Martin
0f104af921 chore(deps): Move Cosmos cache to Auth ownership 2025-12-29 10:00:05 -05:00
renovate[bot]
8a79bfa673 [deps]: Update actions/upload-artifact action to v6 (#6766)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-12-29 12:59:46 +01:00
Todd Martin
bf5cacdfc5 chore(dependencies): Ignore minor updates for Platform deps 2025-12-28 13:26:07 -05:00
Derek Nance
0cfb68336b [PM-28025] Revert "chore(feature-flag): [PM-19665] Remove web-push feature flag" (#6779)
This reverts commit 1c60b805bf.
2025-12-26 16:44:34 -06:00
Thomas Rittson
67534e2cda [PM-29556] Fix: changing organization plan nulls out public and private keys (#6738)
Main fix: only assign new key value where old keys are not set
and new keys have been provided.

Refactors:
- use consistent DTO model for keypairs
- delete duplicate property assignment for new orgs
2025-12-26 10:13:12 +10:00
renovate[bot]
96622d7928 [deps]: Update github-action minor (#6327)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-12-23 16:34:19 -05:00
Tyler
f80a5696a1 BRE-1005 docs(README): add dynamic badges for container image digests (#6769)
BRE-1005 docs(README): add dynamic badges for container image digests
* remove links to packages
2025-12-23 16:02:17 -05:00
Jordan Aasen
3486d29330 remove RemoveCardItemTypePolicy flag (#6760) 2025-12-23 09:12:14 -08:00
renovate[bot]
c632a9490a [deps] Platform: Update Azure.Messaging.EventGrid to v5 (#6215)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-12-23 10:51:54 -06:00