Skip to content

Commit a29af16

Browse files
committed
Merge branch 'main' into jmccannon/ac/pm-22097-columns-user-org-default-collection
2 parents f179f68 + 87b6606 commit a29af16

File tree

364 files changed

+2405
-2141
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

364 files changed

+2405
-2141
lines changed

.github/workflows/build.yml

Lines changed: 7 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,9 @@ on:
1111
types: [opened, synchronize]
1212
workflow_call:
1313
inputs: {}
14+
15+
permissions:
16+
contents: read
1417

1518
env:
1619
_AZ_REGISTRY: "bitwardenprod.azurecr.io"
@@ -237,18 +240,10 @@ jobs:
237240
fi
238241
echo "tags=$TAGS" >> $GITHUB_OUTPUT
239242
240-
- name: Generate image full name
241-
id: cache-name
242-
env:
243-
PROJECT_NAME: ${{ steps.setup.outputs.project_name }}
244-
run: echo "name=${_AZ_REGISTRY}/${PROJECT_NAME}:buildcache" >> $GITHUB_OUTPUT
245-
246243
- name: Build Docker image
247244
id: build-artifacts
248245
uses: docker/build-push-action@67a2d409c0a876cbe6b11854e3e25193efe4e62d # v6.12.0
249246
with:
250-
cache-from: type=registry,ref=${{ steps.cache-name.outputs.name }}
251-
cache-to: type=registry,ref=${{ steps.cache-name.outputs.name}},mode=max
252247
context: .
253248
file: ${{ matrix.base_path }}/${{ matrix.project_name }}/Dockerfile
254249
platforms: |
@@ -335,9 +330,9 @@ jobs:
335330
336331
# Run setup
337332
docker run -i --rm --name setup -v $STUB_OUTPUT/US:/bitwarden $SETUP_IMAGE \
338-
dotnet Setup.dll -stub 1 -install 1 -domain bitwarden.example.com -os lin -cloud-region US
333+
/app/Setup -stub 1 -install 1 -domain bitwarden.example.com -os lin -cloud-region US
339334
docker run -i --rm --name setup -v $STUB_OUTPUT/EU:/bitwarden $SETUP_IMAGE \
340-
dotnet Setup.dll -stub 1 -install 1 -domain bitwarden.example.com -os lin -cloud-region EU
335+
/app/Setup -stub 1 -install 1 -domain bitwarden.example.com -os lin -cloud-region EU
341336
342337
sudo chown -R $(whoami):$(whoami) $STUB_OUTPUT
343338
@@ -603,8 +598,9 @@ jobs:
603598
uses: bitwarden/gh-actions/.github/workflows/_ephemeral_environment_manager.yml@main
604599
with:
605600
project: server
606-
pull_request_number: ${{ github.event.number }}
601+
pull_request_number: ${{ github.event.number || 0 }}
607602
secrets: inherit
603+
permissions: read-all
608604

609605
check-failures:
610606
name: Check for failures

Directory.Build.props

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
<PropertyGroup>
44
<TargetFramework>net8.0</TargetFramework>
55

6-
<Version>2025.5.2</Version>
6+
<Version>2025.6.0</Version>
77

88
<RootNamespace>Bit.$(MSBuildProjectName)</RootNamespace>
99
<ImplicitUsings>enable</ImplicitUsings>
@@ -69,4 +69,4 @@
6969
</AssemblyAttribute>
7070
</ItemGroup>
7171
</Target>
72-
</Project>
72+
</Project>

bitwarden_license/src/Commercial.Core/AdminConsole/Services/ProviderService.cs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -287,11 +287,10 @@ public async Task<List<Tuple<ProviderUser, string>>> ConfirmUsersAsync(Guid prov
287287

288288
foreach (var user in users)
289289
{
290-
if (!keyedFilteredUsers.ContainsKey(user.Id))
290+
if (!keyedFilteredUsers.TryGetValue(user.Id, out var providerUser))
291291
{
292292
continue;
293293
}
294-
var providerUser = keyedFilteredUsers[user.Id];
295294
try
296295
{
297296
if (providerUser.Status != ProviderUserStatusType.Accepted || providerUser.ProviderId != providerId)

bitwarden_license/src/Commercial.Core/Billing/Providers/Services/ProviderBillingService.cs

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -550,6 +550,15 @@ public async Task<Customer> SetupCustomer(
550550
[
551551
new CustomerTaxIdDataOptions { Type = taxIdType, Value = taxInfo.TaxIdNumber }
552552
];
553+
554+
if (taxIdType == StripeConstants.TaxIdType.SpanishNIF)
555+
{
556+
options.TaxIdData.Add(new CustomerTaxIdDataOptions
557+
{
558+
Type = StripeConstants.TaxIdType.EUVAT,
559+
Value = $"ES{taxInfo.TaxIdNumber}"
560+
});
561+
}
553562
}
554563

555564
if (!string.IsNullOrEmpty(provider.DiscountId))

bitwarden_license/src/Scim/Program.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,8 @@ public static void Main(string[] args)
1616
{
1717
var context = e.Properties["SourceContext"].ToString();
1818

19-
if (e.Properties.ContainsKey("RequestPath") &&
20-
!string.IsNullOrWhiteSpace(e.Properties["RequestPath"]?.ToString()) &&
19+
if (e.Properties.TryGetValue("RequestPath", out var requestPath) &&
20+
!string.IsNullOrWhiteSpace(requestPath?.ToString()) &&
2121
(context.Contains(".Server.Kestrel") || context.Contains(".Core.IISHttpServer")))
2222
{
2323
return false;

bitwarden_license/src/Sso/Controllers/AccountController.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -370,8 +370,8 @@ public async Task<IActionResult> Logout(string logoutId)
370370
// for the user identifier.
371371
static bool nameIdIsNotTransient(Claim c) => c.Type == ClaimTypes.NameIdentifier
372372
&& (c.Properties == null
373-
|| !c.Properties.ContainsKey(SamlPropertyKeys.ClaimFormat)
374-
|| c.Properties[SamlPropertyKeys.ClaimFormat] != SamlNameIdFormats.Transient);
373+
|| !c.Properties.TryGetValue(SamlPropertyKeys.ClaimFormat, out var claimFormat)
374+
|| claimFormat != SamlNameIdFormats.Transient);
375375

376376
// Try to determine the unique id of the external user (issued by the provider)
377377
// the most common claim type for that are the sub claim and the NameIdentifier

bitwarden_license/src/Sso/Program.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@ public static void Main(string[] args)
1717
logging.AddSerilog(hostingContext, (e, globalSettings) =>
1818
{
1919
var context = e.Properties["SourceContext"].ToString();
20-
if (e.Properties.ContainsKey("RequestPath") &&
21-
!string.IsNullOrWhiteSpace(e.Properties["RequestPath"]?.ToString()) &&
20+
if (e.Properties.TryGetValue("RequestPath", out var requestPath) &&
21+
!string.IsNullOrWhiteSpace(requestPath?.ToString()) &&
2222
(context.Contains(".Server.Kestrel") || context.Contains(".Core.IISHttpServer")))
2323
{
2424
return false;

bitwarden_license/src/Sso/Utilities/OpenIdConnectOptionsExtensions.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,9 +46,9 @@ public static async Task<bool> CouldHandleAsync(this OpenIdConnectOptions option
4646

4747
// Handle State if we've gotten that back
4848
var decodedState = options.StateDataFormat.Unprotect(state);
49-
if (decodedState != null && decodedState.Items.ContainsKey("scheme"))
49+
if (decodedState != null && decodedState.Items.TryGetValue("scheme", out var stateScheme))
5050
{
51-
return decodedState.Items["scheme"] == scheme;
51+
return stateScheme == scheme;
5252
}
5353
}
5454
catch

dev/docker-compose.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ services:
9999
- idp
100100

101101
rabbitmq:
102-
image: rabbitmq:management
102+
image: rabbitmq:4.1.0-management
103103
container_name: rabbitmq
104104
ports:
105105
- "5672:5672"
@@ -108,7 +108,7 @@ services:
108108
RABBITMQ_DEFAULT_USER: ${RABBITMQ_DEFAULT_USER}
109109
RABBITMQ_DEFAULT_PASS: ${RABBITMQ_DEFAULT_PASS}
110110
volumes:
111-
- rabbitmq_data:/var/lib/rabbitmq_data
111+
- rabbitmq_data:/var/lib/rabbitmq
112112
profiles:
113113
- rabbitmq
114114

dev/setup_azurite.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ $corsRules = (@{
1111
AllowedMethods = @("Get", "PUT");
1212
});
1313
$containers = "attachments", "sendfiles", "misc";
14-
$queues = "event", "notifications", "reference-events", "mail";
14+
$queues = "event", "notifications", "mail";
1515
$tables = "event", "metadata", "installationdevice";
1616
# End configuration
1717

0 commit comments

Comments
 (0)