1
0
mirror of https://github.com/bitwarden/server synced 2026-01-30 00:03:48 +00:00
Commit Graph

6452 Commits

Author SHA1 Message Date
Matt Gibson
bf3a280b9b improve vrf key error patterns 2025-12-18 10:26:58 -08:00
Matt Gibson
568927f528 add vrf tests 2025-12-16 12:44:21 -08:00
Matt Gibson
ee22231a3c comment on key leakage 2025-12-15 09:35:09 -08:00
Matt Gibson
bc82b338a1 Vrf keys are created by the application and protected by external means 2025-12-15 09:04:59 -08:00
Matt Gibson
6323175da9 cargo clippy --fix 2025-12-10 12:57:49 -08:00
Matt Gibson
6e1758afde Move mssql db to sub directory 2025-12-10 12:47:28 -08:00
Matt Gibson
8b750aee0a Create config for akd and vrf storages 2025-12-09 16:17:52 -08:00
Matt Gibson
0a818755f3 add serde type tag 2025-12-09 16:15:40 -08:00
Matt Gibson
895e720e58 Add config struct for AKD config 2025-12-09 11:17:47 -08:00
Matt Gibson
72fd4956ba remove erroneous csproj
went in a different direction with storage
2025-12-08 10:05:35 -08:00
Matt Gibson
5acdfe4949 fixup tiberius non-mac dependencies 2025-11-20 15:55:31 -08:00
Matt Gibson
f2136bb809 Start scaffolding hosting applications 2025-11-20 15:25:44 -08:00
Matt Gibson
ab1eaddb18 Configuration beginnings for storage 2025-11-20 15:25:40 -08:00
Matt Gibson
e5ecb4f3c8 Define a bitwarden akd configuration
This configuration distinguishes between different installations using the installation id
2025-11-20 15:25:36 -08:00
Matt Gibson
532b44030b Clean up unused methods 2025-11-20 15:25:27 -08:00
Matt Gibson
15ab667072 implement command line utility which is a copy of mysql_demo from akd 2025-11-20 15:24:59 -08:00
Matt Gibson
2b4430eef7 sql fixups
- prefer non-keyword column name
- i16 corresponds to smallint, not u8
- column name typo in batch read
2025-11-20 15:24:58 -08:00
Matt Gibson
8de07787e8 Fixup column names 2025-11-20 15:24:58 -08:00
Matt Gibson
16da46cc1e improve migration logging 2025-11-20 15:24:53 -08:00
Matt Gibson
9795d4133a Update workspace lockfile 2025-11-20 15:24:49 -08:00
Matt Gibson
046e4114a3 Appears to be a working database layer
Next up is a directory impl
2025-11-20 15:24:47 -08:00
Matt Gibson
0309aae4d7 Smallest possible test of sql server with a publisher crate 2025-11-20 15:24:46 -08:00
Matt Gibson
bbd1a230a6 First complete implementation of Database trait for sql server 2025-11-20 15:24:37 -08:00
Matt Gibson
7bb8296a2c Create temp table enum 2025-11-20 15:24:31 -08:00
Matt Gibson
2c971fc77e fixup sql connection pool 2025-11-20 15:24:24 -08:00
Matt Gibson
f4ec8bd4a0 Improve ms_database errors 2025-11-20 15:24:24 -08:00
Matt Gibson
e559c1b046 Add initial table migrations
Note, there is a name change here relative to AKD. They use a `Users` table with username. However, that will be odd in our design, where we expect to store multiple values per user. Therefore, we generalize to `Values` and `raw_label`
2025-11-20 15:24:22 -08:00
Matt Gibson
6f175c158b re-exports for convenience 2025-11-20 15:24:20 -08:00
Matt Gibson
37cd1a36df Expect migrations from users of ms_database crate. scaffold akd storage 2025-11-20 15:24:17 -08:00
Matt Gibson
3965b241fa Use connection strings and implement connection errors 2025-11-20 15:24:15 -08:00
Matt Gibson
e06807df11 Managed connection pool and migration framework for ms sql using tiberius as a backend 2025-11-20 15:24:07 -08:00
Patrick-Pimentel-Bitwarden
59b6cd0cdb feat(prelogin): [Auth/PM-27062] Prelogin New Response (#6583)
* feat(prelogin): [PM-27062] Prelogin New Response - Initial changes to support new data coming back from prelogin.

* test(prelogin): [PM-27062] Prelogin New Response - Added tests.
2025-11-20 15:43:01 -05:00
Alex Morask
c81b0dcd49 [PM-28249] Write PlanType claim as an integer (#6610)
* Write PlanType claim as an integer

* Accept FamiliesAnnually2025 for FamiliesAnnually plan type
2025-11-20 14:08:20 -06:00
Ike
8b169551f5 Update MjmlWelcomeEmailTemplates Feature Flag Key (#6611) 2025-11-20 14:51:38 -05:00
renovate[bot]
a434419313 [deps]: Update sdk-internal to 7080159 (#6609)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-11-20 18:28:01 +01:00
Oscar Hinton
6653b9802e Group sdk dependencies take 2 (#6607) 2025-11-20 17:36:37 +01:00
Kyle Spearrin
c0700a6946 [PM-27766] Add policy for blocking account creation from claimed domains. (#6537)
* Add policy for blocking account creation from claimed domains.

* dotnet format

* check as part of email verification

* add feature flag

* fix tests

* try to fix dates on database integration tests

* PR feedback from claude

* remove claude local settings

* pr feedback

* format

* fix test

* create or alter

* PR feedback

* PR feedback

* Update src/Core/Constants.cs

Co-authored-by: Thomas Rittson <31796059+eliykat@users.noreply.github.com>

* fix merge issues

* fix tests

---------

Co-authored-by: Thomas Rittson <31796059+eliykat@users.noreply.github.com>
2025-11-20 11:25:50 +10:00
Shane Melton
55fb80b2fc [PM-27662] Add revision date to policy response model (#6602) 2025-11-20 09:55:19 +10:00
Nik Gilmore
d81c61637e [PM-24314] Remove feature flag pm-9111-extension-persist-add-edit-form (#6561) 2025-11-19 15:31:34 -08:00
Brant DeBow
3c874646e8 Upgrade ExtendedCache with support for named caches (#6591)
* Upgrade ExtendedCache with support for named caches

* Addressed Claude PR suggestions - defensive mux creation, defend empty cache name, added tests

* Addressed PR suggestions; Fixed issue where IDistributedCache was missing when using the shared route; Added more unit tests

* Revert to TryAdd, document expectation that AddDistributedCache is called first
2025-11-19 14:42:03 -05:00
renovate[bot]
4c543fa824 [deps]: Update github/codeql-action action to v4 (#6500)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Daniel James Smith <2670567+djsmith85@users.noreply.github.com>
2025-11-19 20:09:01 +01:00
Alex Morask
f595818ede [PM-24549] Remove feature flag: use-pricing-service (#6567)
* Remove feature flag and move StaticStore plans to MockPlans for tests

* Remove old plan models / move sponsored plans out of StaticStore

* Run dotnet format

* Add pricing URI to Development appsettings for local development and integration tests

* Updated Api Integration tests to get current plan type

* Run dotnet format

* Fix failing tests
2025-11-19 09:53:30 -06:00
Jared McCannon
1eb396cb40 [PM-26636] - Auto Confirm Org User Command (#6488)
* Adding auto confirm endpoint and initial command work.

* Adding validator

* Finished command implementation.

* Enabled the feature renomved used method. Enabled the policy in the tests.

* Added extension functions to allow for railroad programming.

* Removed guid from route template. Added xml docs

* Added validation for command.

* Added default collection creation to command.

* formatting.

* Added additional error types and mapped to appropriate results.

* Added tests for auto confirm validator

* Adding tests

* fixing file name

* Cleaned up OrgUserController. Added integration tests.

* Consolidated CommandResult and validation result stuff into a v2 directory.

* changing result to match handle method.

* Moves validation thenasync method.

* Added brackets.

* Updated XML comment

* Adding idempotency comment.

* Fixed up merge problems. Fixed return types for handle.

* Renamed to ValidationRequest

* I added some methods for CommandResult to cover some future use cases. Added ApplyAsync method to execute multiple functions against CommandResult without an error stopping the workflow for side-effects.

* Fixed up logic around should create default colleciton. Added more methods for chaining ValidationResult together. Added logic for user type.

* Clearing nullable enable.

* Fixed up validator tests.

* Tests for auto confirm command

* Fixed up command result and AutoConfirmCommand.

* Removed some unused methods.

* Moved autoconfirm tests to their own class.

* Moved some stuff around. Need to clean up creation of accepted org user yet.

* Moved some more code around. Folded Key into accepted constructor. removed unneeded tests since key and accepted are now a part of AcceptedOrgUser Creation.

* Clean up clean up everybody everywhere. Clean up clean up everybody do your share.

* Another quick one

* Removed aggregate Errors.cs

* Cleaned up validator and fixed up tests.

* Fixed auto confirm repo

* Cleaned up command tests.

* Unused method.

* Restoring Bulk command back to what it was. deleted handle method for bulk.

* Remove unused method.

* removed unnecssary lines and comments

* fixed layout.

* Fixed test.

* fixed spelling mistake. removed unused import.

* Update test/Core.Test/AdminConsole/OrganizationFeatures/OrganizationUsers/AutoConfirmUsers/AutomaticallyConfirmUsersCommandTests.cs

Co-authored-by: Rui Tomé <108268980+r-tome@users.noreply.github.com>

* Ensuring collection is created before full sync. Cleaning up tests and added a few more. Added check that the policy is enabled.

* Added org cleanup

* Lowering to 5 to see if  that helps the runner.

* 🤷

* Trying this

* Maybe this time will be different.

* seeing if awaiting and checking independently will work in ci

* I figured it out. Locally, it would be fast enough to all return NoContent, however in CI, its slow enough for it to return 400 due to the user already being confirmed via validation.

* Updated tests and validator

* Fixed name

---------

Co-authored-by: Rui Tomé <108268980+r-tome@users.noreply.github.com>
2025-11-19 08:09:48 -06:00
cyprain-okeke
a6f87c3f72 [PM 27603]Add MaxStorageGbIncreased Column to User and Organization Tables (#6570)
* Add changes for initial migration

* Fix the failing Database test

* Fix the failing database test

* Address the pr comments

* revert some change sthat are not

* Address the remaining comments

* Remove unused object

* remove MaxStorageGbIncreased in the views

* refresh commands will ensure all stored procedures

* Fix the typo
2025-11-19 12:02:23 +01:00
Vince Grassia
33842d6d4f Change runners to ubuntu-22.04 until GitHub fixes timeout issue (#6587) 2025-11-19 08:39:29 +01:00
Matt Gibson
20cd3f5ceb Use consistent naming of containers (#6584)
The specified names are override compose project naming conventions. Each specified name was the same as the service name, with the exceptions of mysql and redis, which break our naming convention.
2025-11-18 22:08:38 -05:00
Kyle Denney
5c1d586a25 [PM-28370] fix defect for self-hosted metadata (#6593)
* [PM-28370] fix defect for self-hosted metadata

* dotnet format
2025-11-18 15:24:34 -06:00
Vince Grassia
2b926ef1c5 BRE-1355 - Rename Bitwarden Unified to Bitwarden Lite (#6592) 2025-11-18 12:24:01 -05:00
Nik Gilmore
a724c933dc [PM-28285] Bugfix: Fix attachment uploads on selfhosted instances (#6590)
* [PM-28285] Remove check for LastKnownRevisionDate when uploading attachment file directly.

Remove accidental commit files

* Remove tests that are no longer relevant

* Remove unecessary lastKnownRevisionDate check from attachment share operation
2025-11-18 07:44:40 -08:00
Kyle Denney
75d8250f3a [PM-24298] milestone3 families 2025 (#6586)
* [PM-24298] milestone3 families2025

# Conflicts:
#	src/Billing/Services/Implementations/UpcomingInvoiceHandler.cs
#	test/Billing.Test/Services/UpcomingInvoiceHandlerTests.cs

* update test name
2025-11-17 16:03:35 -06:00