Skip to content

Commit 5b63c3c

Browse files
authored
Allow RSA keys to be accessed via network shares (#2245)
* update key * tidy up
1 parent 2fa9584 commit 5b63c3c

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
1313
- Remove functionality to mark individual catalogues as extractable/not extractable. Favor use of marking as internal.
1414
- Move RSA key checks to fix bug where bad RSA keys were causing issues at launch
1515
- Add cli command to export catalogue metadata to a Atlassian Confluence space
16+
- Allow the use of netowrk share RSA keys
1617

1718

1819
## [9.0.1] - 2025-07-31

Rdmp.Core/Repositories/Managers/PasswordEncryptionKeyLocation.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ private string GetKeyFileLocationImpl()
6565
public string OpenKeyFile()
6666
{
6767
var location = GetKeyFileLocation();
68-
return location is null ? null : File.ReadAllText(location);
68+
return location is null ? null : File.ReadAllText($@"{location}");
6969
}
7070

7171
private static void DeserializeFromLocation(string keyLocation)
@@ -74,7 +74,7 @@ private static void DeserializeFromLocation(string keyLocation)
7474
return;
7575
try
7676
{
77-
new RSACryptoServiceProvider().FromXmlString(File.ReadAllText(keyLocation));
77+
new RSACryptoServiceProvider().FromXmlString(File.ReadAllText($@"{keyLocation}"));
7878
}
7979
catch (Exception ex)
8080
{
@@ -129,8 +129,8 @@ public FileInfo CreateNewKeyFile(string path)
129129
public void ChangeLocation(string newLocation)
130130
{
131131
ClearAllInjections();
132-
133-
if (!File.Exists(newLocation))
132+
133+
if (!File.Exists($@"{newLocation}"))
134134
throw new FileNotFoundException($"Could not find key file at:{newLocation}");
135135

136136
//confirms that it is accessible and deserializable

0 commit comments

Comments
 (0)