Skip to content

Commit 5c34321

Browse files
authored
Release 2.3 (#36)
* Oracle Wallet & Ability to use separate group id when creating Linux store (#32) * Add Group Ownership * Oracle Wallet and Group Name Specification * Discovery bug fix
1 parent fcff8ec commit 5c34321

File tree

5 files changed

+29
-2
lines changed

5 files changed

+29
-2
lines changed

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
v2.3.1
2+
- Bug fix: Discovery - ignore /proc folder for Linux servers
3+
14
v2.3.0
25
- New RFORA store type for Oracle Wallet support
36
- Add ability to set separate owner and group id's when creating certificate stores.

RemoteFile/Models/SerializedStoreInfo.cs

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,10 @@
1+
// Copyright 2021 Keyfactor
2+
// Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License.
3+
// You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0
4+
// Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS,
5+
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions
6+
// and limitations under the License.
7+
18
using System.Security.Cryptography.X509Certificates;
29

310
namespace Keyfactor.Extensions.Orchestrator.RemoteFile.Models

RemoteFile/Models/X509Certificate2Ext.cs

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,10 @@
1+
// Copyright 2021 Keyfactor
2+
// Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License.
3+
// You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0
4+
// Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS,
5+
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions
6+
// and limitations under the License.
7+
18
using System.Security.Cryptography.X509Certificates;
29

310
namespace Keyfactor.Extensions.Orchestrator.RemoteFile.Models

RemoteFile/RemoteCertificateStore.cs

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -356,14 +356,15 @@ private bool IsStorePathValid()
356356
private List<string> FindStoresLinux(string[] paths, string[] extensions, string[] fileNames, bool includeSymLinks)
357357
{
358358
logger.MethodEntry(LogLevel.Debug);
359-
359+
360360
try
361361
{
362362
string concatPaths = string.Join(" ", paths);
363-
string command = $"find {concatPaths} ";
363+
string command = $"find {concatPaths} -path /proc -prune -o ";
364364
if (!includeSymLinks)
365365
command += " -type f ";
366366

367+
command += "\\( ";
367368
foreach (string extension in extensions)
368369
{
369370
foreach (string fileName in fileNames)
@@ -377,6 +378,8 @@ private List<string> FindStoresLinux(string[] paths, string[] extensions, string
377378
}
378379
}
379380

381+
command += " \\) -print";
382+
380383
string result = string.Empty;
381384
//if (extensions.Any(p => p.ToLower() != NO_EXTENSION))
382385
result = RemoteHandler.RunCommand(command, null, ApplicationSettings.UseSudo, null);

RemoteFile/RemoteHandlers/SSHHelper.cs

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,10 @@
1+
// Copyright 2021 Keyfactor
2+
// Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License.
3+
// You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0
4+
// Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS,
5+
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions
6+
// and limitations under the License.
7+
18
using Renci.SshNet.Common;
29
using Renci.SshNet.Security.Cryptography.Ciphers;
310
using Renci.SshNet.Security.Cryptography;

0 commit comments

Comments
 (0)