1
0
mirror of https://github.com/bitwarden/server.git synced 2025-04-12 16:48:12 -05:00

5683 Commits

Author SHA1 Message Date
Brant DeBow
5fbf7ff9ae
Merge branch 'brant/add-repositories-organization-integration-configuration' into brant/PM-17562-Slack-Event-Posting 2025-04-01 11:49:16 -04:00
Brant DeBow
de7c2f7063
[PM-17562] Add Dapper and EF Repositories For Ogranization Integrations and Configurations 2025-04-01 11:34:13 -04:00
Brant DeBow
3b1dbdede0
Update handlers to use latest repositories 2025-04-01 10:56:07 -04:00
Brant DeBow
b0f33d7de2
Merge branch 'brant/add-dapper-repository-organization-integrations' into brant/PM-17562-Slack-Event-Posting 2025-04-01 10:50:19 -04:00
Brant DeBow
19dd96a17e
Added EF Repositories 2025-04-01 10:48:36 -04:00
Jimmy Vo
f90bcd44de
[PM-19575] Allow enabling Single Org policy when the organization has claimed domains. (#5565) 2025-04-01 10:28:57 -04:00
Vijay Oommen
fd781415c4
[PM-19222] Include UseRiskInsights in license file (#5528) 2025-04-01 16:19:42 +02:00
Todd Martin
1beb5dc5c0
Separate desktop and CLI for ClientType checks (#5441) 2025-04-01 10:06:30 -04:00
Conner Turnbull
0ca1b319fd
Fix PayPal to Stripe credit truncation bug (#5561) 2025-03-31 15:20:31 -04:00
Nick Krantz
9c16127bd4
[PM-14406] Fix security task email sends (#5571)
* convert `AdminOwnerEmails` to List rather than IEnumerable

* check for JSON array in `formatAdminOwnerEmails`

* remove trailing comma for admin/owners

* Use display block on tables to enforce padding

* update padding around review at-risk passwords
2025-03-31 14:00:43 -05:00
Todd Martin
0579fb0e68
[PM-9115] Add feature flag for 2FA persistence (#5583)
* Add new feature flag.

* Clarified name.
2025-03-31 14:27:09 -04:00
renovate[bot]
e7abb07d19
[deps] Tools: Update LaunchDarkly.ServerSdk to 8.7.0 (#5581)
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-03-31 16:35:59 +00:00
renovate[bot]
a879e4722c
[deps] Tools: Update aws-sdk-net monorepo (#5580)
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-03-31 16:33:50 +00:00
Conner Turnbull
30ad7d3f73
[PM-18564] Added policy validation before creating or sending org sponsorship invite (#5459)
* Added policy validation before creating or sending org sponsorship invite

* dotnet format strikes again
2025-03-31 12:25:41 -04:00
Brant DeBow
99bd6d3eba
Update SlackOAuth tests to new signatures 2025-03-31 10:34:50 -04:00
Jared Snider
683ade9ffc
feat(EF WebAuthnCreds Repo): [Auth/PM-19629] EF WebAuthnCredentialRepository.cs - Rewrite query to avoid reading entire table into memory (#5567) 2025-03-31 09:49:14 -04:00
Brant DeBow
99f57362e4
Merge branch 'brant/add-dapper-repository-organization-integrations' into brant/PM-17562-Slack-Event-Posting 2025-03-31 09:34:21 -04:00
Brant DeBow
ac0c5a446c
Merge branch 'main' into brant/add-dapper-repository-organization-integrations 2025-03-31 09:34:05 -04:00
Jared McCannon
786b0edceb
[PM-18527] - Fix allowing restored user to own multiple free orgs (#5444)
* Moved RestoreUserAsync and RestoreUsersAsync to Command.

* Fixing the bug.

* Added test for bulk method.

* Fixing sonar cube warning.

* SonarQube warning fix.

* Excluding org users we already have.

* Fixed misspelling. Added integration test for method.

* test had the misspelling as well 🤦

* Split out interface. Added admin and confirmed constraints.

* fixed queries and added xml comments and tests.
2025-03-31 08:33:57 -05:00
Brant DeBow
3e161144cd
Update Slack and Webhook handlers to use new Repositories 2025-03-31 09:33:09 -04:00
Daniel García
887332b436
[PM-15127] Remove secrets requirement from build workflow (#5546)
* [PM-15127] Remove secrets requirement from build workflow

* Remove unneeded check, fix target workflow

* Remove IF
2025-03-31 15:19:55 +02:00
Brant DeBow
3803139ddb
Merge branch 'brant/add-dapper-repository-organization-integrations' into brant/PM-17562-Slack-Event-Posting 2025-03-31 08:18:20 -04:00
Brant DeBow
4018487acf
[PM-17562] Add Dapper Repositories For Ogranization Integrations and Configurations 2025-03-31 08:17:48 -04:00
Rui Tomé
f60db791cc
[PM-19590] Add k6 load testing script for SyncController's /sync endpoint (#5508)
* Add k6 load testing script for sync endpoint

* Refactor sync response validation to use lowercase keys

* Remove access token validation from sync.js

* Update http_req_duration threshold in sync.js from 400ms to 1200ms
2025-03-31 12:25:36 +01:00
Todd Martin
ad05e3f9e1
Complete feature flag grouping by team (#5574)
* Completed grouping of feature flags by team.

* Completed grouping feature flags by team.

* Linting

* Moved flag.

* Moved ssh-key-vault-item to KM.
2025-03-30 16:03:09 -04:00
Todd Martin
c154b6ad9b
Clean up remove-server-version-header feature flag (#5573)
* Removed feature flag.

* Linting.
2025-03-30 12:57:05 -04:00
Brant DeBow
5188c70317
Merged in Dapper Repositories 2025-03-28 14:16:11 -04:00
Brant DeBow
7f1864861f
Merge branch 'main' into brant/PM-17562-Slack-Event-Posting 2025-03-28 14:13:31 -04:00
Brant DeBow
e8d608a1c0
[PM-17562] Add Dapper Repositories For Ogranization Integrations and Configurations 2025-03-28 14:13:01 -04:00
Matt Bishop
6e81cee221
Introduce organization integration configuration details (#5568) 2025-03-28 09:20:35 -07:00
Brant DeBow
7e2db6dba0
Merge in latest from Dapper repo branch 2025-03-28 10:17:16 -04:00
Brant DeBow
79dff53ada
[PM-17562] Add Dapper Repositories For Ogranization Integrations and Configurations 2025-03-28 10:15:06 -04:00
Brant DeBow
d118eb7a97
Merge branch 'main' into brant/PM-17562-Slack-Event-Posting 2025-03-28 10:07:54 -04:00
Brant DeBow
6d9c2956ce
Progress on integrating new Repositories to existing code 2025-03-28 10:04:35 -04:00
Rui Tomé
fb0567b45e
[PM-18523] Add SSO external ID visibility feature flag (#5559) 2025-03-27 14:49:38 +00:00
Thomas Rittson
54f4ba945e
[PM-17558] Remove ShortcutDuplicatePatchRequests feature flag (#5551)
* Delete old command and feature flag switch

* Rename vNext command

* Remove feature flag
2025-03-27 10:13:56 -04:00
Brant DeBow
9c658b4cab
Merge branch 'main' into brant/PM-17562-Slack-Event-Posting 2025-03-26 15:27:26 -04:00
Brant DeBow
f25b308f57
Initial buildout of basic repositories 2025-03-26 15:26:02 -04:00
Nick Krantz
6178bb2db1
only create security tasks when a task doesn't exist for the submitted cipher (#5558) 2025-03-26 13:08:19 -05:00
Brant DeBow
6300a959e4
Merge branch 'main' into brant/add-dapper-repository-organization-integrations 2025-03-26 13:12:59 -04:00
Brant DeBow
8e40559169
Merge branch 'main' into brant/PM-17562-Slack-Event-Posting 2025-03-26 13:09:04 -04:00
Matt Bishop
d4b0058372
Organization integrations and configuration database schemas (#5553)
* Organization integrations and configuration database schemas

* Format EF files
2025-03-26 11:44:05 -04:00
Bernd Schoolmann
6f227c31e2
Sort km feature flags (#5557) 2025-03-26 15:10:35 +01:00
Brant DeBow
5d831ceaf8
Merge branch 'org-integrations-db' into brant/PM-17562-Slack-Event-Posting 2025-03-26 09:38:40 -04:00
Brant DeBow
89a1032ac5
Merge branch 'main' into brant/PM-17562-Slack-Event-Posting 2025-03-26 09:38:19 -04:00
Rui Tomé
f04a3d638b
[PM-18235] Add PersonalOwnershipPolicyRequirement (#5439)
* Add PersonalOwnershipPolicyRequirement for managing personal ownership policy

* Add tests for PersonalOwnershipPolicyRequirement

* Register PersonalOwnershipPolicyRequirement in policy requirement factory

* Update ImportCiphersCommand to check PersonalOwnershipPolicyRequirement if the PolicyRequirements flag is enabled

Update unit tests

* Update CipherService to support PersonalOwnershipPolicyRequirement with feature flag

- Add support for checking personal ownership policy using PolicyRequirementQuery when feature flag is enabled
- Update CipherService constructor to inject new dependencies
- Add tests for personal vault restrictions with and without feature flag

* Clean up redundant "Arrange", "Act", and "Assert" comments in test methods

* Refactor PersonalOwnershipPolicyRequirementTests method names for clarity

- Improve test method names to better describe their purpose and behavior
- Rename methods to follow a more descriptive naming convention
- No functional changes to the test logic

* Remove commented code explaining policy check

* Refactor PersonalOwnership Policy Requirement implementation

- Add PersonalOwnershipPolicyRequirementFactory to replace static Create method
- Simplify policy requirement creation logic
- Update PolicyServiceCollectionExtensions to register new factory
- Update ImportCiphersCommand to use correct user ID parameter
- Remove redundant PersonalOwnershipPolicyRequirementTests

* Remove redundant PersonalOwnershipPolicyRequirementTests

* Remove unnecessary tests from PersonalOwnershipPolicyRequirementFactoryTests
2025-03-26 09:40:13 +00:00
Matt Bishop
be773d2ecb
Format EF files 2025-03-25 16:24:12 -07:00
Matt Bishop
fafa6a5d7a
Organization integrations and configuration database schemas 2025-03-25 16:19:34 -07:00
Nick Krantz
d563f3f78a
Fix logic in text handlebars template (#5542) 2025-03-25 10:16:06 -05:00
Bernd Schoolmann
55980e8038
[PM-16603] Add userkey rotation v2 (#5204)
* Implement userkey rotation v2

* Update request models

* Cleanup

* Update tests

* Improve test

* Add tests

* Fix formatting

* Fix test

* Remove whitespace

* Fix namespace

* Enable nullable on models

* Fix build

* Add tests and enable nullable on masterpasswordunlockdatamodel

* Fix test

* Remove rollback

* Add tests

* Make masterpassword hint optional

* Update user query

* Add EF test

* Improve test

* Cleanup

* Set masterpassword hint

* Remove connection close

* Add tests for invalid kdf types

* Update test/Core.Test/KeyManagement/UserKey/RotateUserAccountKeysCommandTests.cs

Co-authored-by: Thomas Avery <43214426+Thomas-Avery@users.noreply.github.com>

* Fix formatting

* Update src/Api/KeyManagement/Models/Requests/RotateAccountKeysAndDataRequestModel.cs

Co-authored-by: Thomas Avery <43214426+Thomas-Avery@users.noreply.github.com>

* Update src/Api/Auth/Models/Request/Accounts/MasterPasswordUnlockDataModel.cs

Co-authored-by: Thomas Avery <43214426+Thomas-Avery@users.noreply.github.com>

* Update src/Api/Auth/Models/Request/Accounts/MasterPasswordUnlockDataModel.cs

Co-authored-by: Thomas Avery <43214426+Thomas-Avery@users.noreply.github.com>

* Update src/Api/KeyManagement/Models/Requests/AccountKeysRequestModel.cs

Co-authored-by: Thomas Avery <43214426+Thomas-Avery@users.noreply.github.com>

* Fix imports

* Fix tests

* Remove null check

* Add rollback

---------

Co-authored-by: Thomas Avery <43214426+Thomas-Avery@users.noreply.github.com>
2025-03-25 15:23:01 +01:00