Skip to content

Commit 34ce8da

Browse files
committed
fix: incorrect credentials used for S3 client
1 parent 160aa56 commit 34ce8da

File tree

9 files changed

+6648
-6660
lines changed

9 files changed

+6648
-6660
lines changed

.github/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,8 +64,8 @@ services:
6464
environment:
6565
- SERVICES=s3
6666
- DEBUG=1
67-
- AWS_ACCESS_KEY_ID=test
68-
- AWS_SECRET_ACCESS_KEY=test
67+
- AWS_ACCESS_KEY_ID=test-id
68+
- AWS_SECRET_ACCESS_KEY=test-key
6969
volumes:
7070
- ./s3:/persisted-data/
7171
- ./aws:/etc/localstack/init/ready.d

docs/healthchecks.md

Whitespace-only changes.

src/TestSite.10/appsettings.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,8 @@
1818
"ServiceUrl": "http://localhost:4566",
1919
"UseAccelerateEndpoint": false,
2020
"Credentials": {
21-
"ApplicationKey": "test",
22-
"KeyId": "test"
21+
"ApplicationKey": "test-key",
22+
"KeyId": "test-id"
2323
}
2424
}
2525
}
@@ -37,4 +37,4 @@
3737
}
3838
}
3939
}
40-
}
40+
}

src/TestSite.12/appsettings.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,8 @@
1818
"ServiceUrl": "http://localhost:4566",
1919
"UseAccelerateEndpoint": false,
2020
"Credentials": {
21-
"ApplicationKey": "test",
22-
"KeyId": "test"
21+
"ApplicationKey": "test-key",
22+
"KeyId": "test-id"
2323
}
2424
}
2525
}
@@ -37,4 +37,4 @@
3737
}
3838
}
3939
}
40-
}
40+
}

src/Umbraco.Community.FileSystemProviders.B2/Constants.cs

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -42,15 +42,6 @@ public class ServiceUrl
4242
public const string ReadMoreLink = "https://our.umbraco.com/Documentation/Extending/FileSystemProviders/B2/";
4343
}
4444

45-
public class UseAccelerateEndpoint
46-
{
47-
public const string Id = "9D3D3D3D-4D3D-4D3D-4D3D-4D3D3D3D3D3D";
48-
public const string Name = "B2 Use Accelerate Endpoint";
49-
public const string Description = "Checks if the B2 use accelerate endpoint is set.";
50-
public const string ItemPath = $"{Section}:UseAccelerateEndpoint";
51-
public const string ReadMoreLink = "https://our.umbraco.com/Documentation/Extending/FileSystemProviders/B2/";
52-
}
53-
5445
public class Api
5546
{
5647
public const string Id = "8D3D3D3D-4D3D-4D3D-4D3D-4D3D3D3D3D3D";

src/Umbraco.Community.FileSystemProviders.B2/Models/B2Options.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,5 +13,5 @@ public class B2Options
1313
[MemberNotNullWhen(true, nameof(ServiceUrl), nameof(Credentials))]
1414
public bool Enabled => !string.IsNullOrWhiteSpace(BucketName) && !string.IsNullOrWhiteSpace(ServiceUrl) && (Credentials?.Valid ?? false);
1515

16-
public AWSCredentials ToCredentials() => new BasicAWSCredentials(Credentials?.KeyId, Credentials?.KeyId);
16+
public AWSCredentials ToCredentials() => new BasicAWSCredentials(Credentials?.KeyId, Credentials?.ApplicationKey);
1717
}

src/Umbraco.Community.FileSystemProviders.B2/Umbraco.Community.FileSystemProviders.B2.csproj

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,6 @@
3030
<PackageReference Include="Umbraco.Cms.Web.BackOffice" Version="[10.4.0,11.0.0)"/>
3131
<PackageReference Include="Umbraco.Cms.Web.Common" Version="[10.4.0,11.0.0)"/>
3232
<PackageReference Include="Our.Umbraco.StorageProviders.AWSS3" Version="1.3.0"/>
33-
3433
</ItemGroup>
3534

3635
<ItemGroup Condition="'$(TargetFramework)' == 'net7.0'">
@@ -39,7 +38,6 @@
3938
<PackageReference Include="Umbraco.Cms.Web.Common" Version="[11.0.0,13.0.0)"/>
4039
<PackageReference Include="Umbraco.Cms.Imaging.ImageSharp" Version="[11.0.0,13.0.0)"/>
4140
<PackageReference Include="Our.Umbraco.StorageProviders.AWSS3" Version="1.3.0"/>
42-
4341
</ItemGroup>
4442

4543
<ItemGroup Condition="'$(TargetFramework)' == 'net8.0'">
@@ -48,7 +46,6 @@
4846
<PackageReference Include="Umbraco.Cms.Web.Common" Version="[13.0.0,14.0.0)"/>
4947
<PackageReference Include="Umbraco.Cms.Imaging.ImageSharp" Version="[13.0.0,14.0.0)"/>
5048
<PackageReference Include="Our.Umbraco.StorageProviders.AWSS3" Version="1.3.0"/>
51-
5249
</ItemGroup>
5350

5451
<PropertyGroup Condition="'$(Configuration)' == 'Debug'">
@@ -61,4 +58,4 @@
6158
<None Include="..\..\docs\icon.png" Pack="true" PackagePath="images\icon.png"/>
6259
<None Include="..\..\.github\README.md" Pack="true" PackagePath="\"/>
6360
</ItemGroup>
64-
</Project>
61+
</Project>

0 commit comments

Comments
 (0)