diff --git a/DesktopEdge/Properties/AssemblyInfo.cs b/DesktopEdge/Properties/AssemblyInfo.cs index b4085841..8cc7c430 100644 --- a/DesktopEdge/Properties/AssemblyInfo.cs +++ b/DesktopEdge/Properties/AssemblyInfo.cs @@ -50,6 +50,6 @@ using System.Windows; // // You can specify all the values or you can default the Build and Revision Numbers // by using the '*' as shown below: -// [assembly: AssemblyVersion("1.11.2.0")] -[assembly: AssemblyVersion("1.11.2.0")] -[assembly: AssemblyFileVersion("1.11.2.0")] +// [assembly: AssemblyVersion("1.12.1.0")] +[assembly: AssemblyVersion("1.12.1.0")] +[assembly: AssemblyFileVersion("1.12.1.0")] diff --git a/DesktopEdge/Views/Screens/Debugging.xaml.cs b/DesktopEdge/Views/Screens/Debugging.xaml.cs index ea1c4c6a..0e43a8b7 100644 --- a/DesktopEdge/Views/Screens/Debugging.xaml.cs +++ b/DesktopEdge/Views/Screens/Debugging.xaml.cs @@ -70,7 +70,7 @@ namespace Ziti.Desktop.Edge.Views.Screens { } async private void btn5_Click(object sender, RoutedEventArgs e) { - await client.ReturnMFACodes(FingerPrint.Text, TheMFACode.Text); + await client.GetMFACodes(FingerPrint.Text, TheMFACode.Text); } async private void btn6_Click(object sender, RoutedEventArgs e) { diff --git a/DesktopEdge/Views/Screens/MFAScreen.xaml.cs b/DesktopEdge/Views/Screens/MFAScreen.xaml.cs index a40b9c34..ec3a029b 100644 --- a/DesktopEdge/Views/Screens/MFAScreen.xaml.cs +++ b/DesktopEdge/Views/Screens/MFAScreen.xaml.cs @@ -178,11 +178,11 @@ namespace ZitiDesktopEdge { } } - async private void ReturnMFACodes(object sender, MouseButtonEventArgs e) { + async private void GetMFACodes(object sender, MouseButtonEventArgs e) { DataClient serviceClient = serviceClient = (DataClient)Application.Current.Properties["ServiceClient"]; string code = AuthCode.Text; Logger.Debug("AuthMFA successful."); - MfaRecoveryCodesResponse getcodes = await serviceClient.ReturnMFACodes(this._identity.Identifier, code); + MfaRecoveryCodesResponse getcodes = await serviceClient.GetMFACodes(this._identity.Identifier, code); if (getcodes.Code != 0) { Logger.Error("AuthMFA failed. " + getcodes.Error); } @@ -256,14 +256,14 @@ namespace ZitiDesktopEdge { } this.OnLoad?.Invoke(true, "", ""); } else if (this.Type == 2) { - MfaRecoveryCodesResponse codeResponse = await serviceClient.ReturnMFACodes(this._identity.Identifier, code); + MfaRecoveryCodesResponse codeResponse = await serviceClient.GetMFACodes(this._identity.Identifier, code); if (codeResponse?.Code != 0) { Logger.Error("AuthMFA failed. " + codeResponse.Error); AuthCode.Text = ""; this.OnError?.Invoke("Authentication Failed"); this._executing = false; } else { - this._identity.RecoveryCodes = codeResponse.Data; + this._identity.RecoveryCodes = codeResponse.Data.RecoveryCodes; this.OnClose?.Invoke(true); this._executing = false; } @@ -287,7 +287,7 @@ namespace ZitiDesktopEdge { AuthCode.Text = ""; this.OnError?.Invoke("Authentication Failed"); } else { - this._identity.RecoveryCodes = codeResponse.Data; + this._identity.RecoveryCodes = codeResponse.Data.RecoveryCodes; this.OnClose?.Invoke(true); } this._executing = false; diff --git a/DesktopEdge/Views/Screens/MainMenu.xaml.cs b/DesktopEdge/Views/Screens/MainMenu.xaml.cs index 87fb3381..8a0b32f9 100644 --- a/DesktopEdge/Views/Screens/MainMenu.xaml.cs +++ b/DesktopEdge/Views/Screens/MainMenu.xaml.cs @@ -314,7 +314,11 @@ namespace ZitiDesktopEdge { string timestamp = DateTime.Now.ToFileTime().ToString(); var dataClient = (DataClient)Application.Current.Properties["ServiceClient"]; - await dataClient.zitiDump(); + + string exeLocation = Path.GetDirectoryName(Assembly.GetExecutingAssembly().Location); + string logLocation = Path.Combine(exeLocation, "logs"); + string serviceLogsLocation = Path.Combine(logLocation, "service"); + await dataClient.zitiDump(serviceLogsLocation); var monitorClient = (MonitorClient)Application.Current.Properties["MonitorClient"]; MonitorServiceStatusEvent resp = await monitorClient.CaptureLogsAsync(); diff --git a/Installer/ZitiDesktopEdge.aip b/Installer/ZitiDesktopEdge.aip index 85f6fdac..7d0772c6 100644 --- a/Installer/ZitiDesktopEdge.aip +++ b/Installer/ZitiDesktopEdge.aip @@ -23,10 +23,10 @@ - + - + diff --git a/ZitiDesktopEdge.Client/DataStructures/DataStructures.cs b/ZitiDesktopEdge.Client/DataStructures/DataStructures.cs index fc1c7d6c..f891e7af 100644 --- a/ZitiDesktopEdge.Client/DataStructures/DataStructures.cs +++ b/ZitiDesktopEdge.Client/DataStructures/DataStructures.cs @@ -159,17 +159,17 @@ namespace ZitiDesktopEdge.DataStructures { public string Code { get; set; } } - public class ReturnMFACodesFunction : ServiceFunction { - public ReturnMFACodesFunction(string identifier, string code) { - this.Command = "ReturnMFACodes"; - this.Data = new ReturnMFACodesFunctionPayload() { + public class GetMFACodesFunction : ServiceFunction { + public GetMFACodesFunction(string identifier, string code) { + this.Command = "GetMFACodes"; + this.Data = new GetMFACodesFunctionPayload() { Identifier = identifier, Code = code, }; } - public ReturnMFACodesFunctionPayload Data { get; set; } + public GetMFACodesFunctionPayload Data { get; set; } } - public class ReturnMFACodesFunctionPayload { + public class GetMFACodesFunctionPayload { public string Identifier { get; set; } public string Code { get; set; } } @@ -199,12 +199,19 @@ namespace ZitiDesktopEdge.DataStructures { public SetLogLevelPayload Data { get; set; } } + public class ZitiDumpPayloadFunction { + public string DumpPath { get; set; } + + } + public class ZitiDumpFunction : ServiceFunction { - public ZitiDumpFunction(string level) { + public ZitiDumpFunction(string dumpPath) { this.Command = "ZitiDump"; - //this.Payload = null;//nothing for now + this.Data = new ZitiDumpPayloadFunction() { + DumpPath = dumpPath + }; } - //public SetLogLevelPayload Payload { get; set; } + public ZitiDumpPayloadFunction Data { get; set; } } public class IdentifierPayload @@ -506,9 +513,14 @@ namespace ZitiDesktopEdge.DataStructures { public string Identifier { get; set; } } + public class MfaRecoveryCodes { + public string[] RecoveryCodes { get; set; } + public string Identifier { get; set; } + + } public class MfaRecoveryCodesResponse : SvcResponse { - public string[] Data { get; set; } + public MfaRecoveryCodes Data { get; set; } } public class ConfigPayload diff --git a/ZitiDesktopEdge.Client/ServiceClient/DataClient.cs b/ZitiDesktopEdge.Client/ServiceClient/DataClient.cs index 77ec0d5a..6cba838f 100644 --- a/ZitiDesktopEdge.Client/ServiceClient/DataClient.cs +++ b/ZitiDesktopEdge.Client/ServiceClient/DataClient.cs @@ -274,9 +274,9 @@ namespace ZitiDesktopEdge.ServiceClient { return null; } - async public Task ReturnMFACodes(string identifier, string totpOrRecoveryCode) { + async public Task GetMFACodes(string identifier, string totpOrRecoveryCode) { try { - await sendAsync(new ReturnMFACodesFunction(identifier, totpOrRecoveryCode)); + await sendAsync(new GetMFACodesFunction(identifier, totpOrRecoveryCode)); MfaRecoveryCodesResponse mfa = await readAsync(ipcReader); return mfa; } catch (Exception ioe) { @@ -404,9 +404,9 @@ namespace ZitiDesktopEdge.ServiceClient { } } - async public Task zitiDump() { + async public Task zitiDump(string dumpPath) { try { - await sendAsync(new ServiceFunction() { Command = "ZitiDump" }); + await sendAsync(new ZitiDumpFunction(dumpPath)); var rtn = await readAsync(ipcReader); return; // rtn; } catch (Exception ioe) { diff --git a/ZitiUpdateService/Properties/AssemblyInfo.cs b/ZitiUpdateService/Properties/AssemblyInfo.cs index 8aaf1126..f944c917 100644 --- a/ZitiUpdateService/Properties/AssemblyInfo.cs +++ b/ZitiUpdateService/Properties/AssemblyInfo.cs @@ -30,7 +30,7 @@ using System.Runtime.InteropServices; // // You can specify all the values or you can default the Build and Revision Numbers // by using the '*' as shown below: -// [assembly: AssemblyVersion("1.11.2.0")] -[assembly: AssemblyVersion("1.11.2.0")] -[assembly: AssemblyFileVersion("1.11.2.0")] +// [assembly: AssemblyVersion("1.12.1.0")] +[assembly: AssemblyVersion("1.12.1.0")] +[assembly: AssemblyFileVersion("1.12.1.0")] diff --git a/release-notes.md b/release-notes.md index 63753540..e4a79dbb 100644 --- a/release-notes.md +++ b/release-notes.md @@ -1,3 +1,17 @@ +# Release 1.12.1 + +## What's New +* The ziti tunnel service is changed to ziti-edge-tunnel service. This service uses the 0.17.x t-sdk version, so the new capabilities that are added to the tunnel sdk will be available in ziti-edge-tunnel service. + +## Other changes: +* none + +## Bugs fixed: +* none + +## Dependency Updates +* TSDK updated to 0.17.23 / CSDK 0.26.25 + # Release 1.11.2 ## What's New diff --git a/version b/version index 0eed1a29..f8f4f03b 100644 --- a/version +++ b/version @@ -1 +1 @@ -1.12.0 +1.12.1 diff --git a/ziti-edge-tunnel/build.bat b/ziti-edge-tunnel/build.bat index c65fc789..edb3069a 100644 --- a/ziti-edge-tunnel/build.bat +++ b/ziti-edge-tunnel/build.bat @@ -14,7 +14,7 @@ REM See the License for the specific language governing permissions and REM limitations under the License. REM SET REPO_URL=https://github.com/openziti/ziti-tunnel-sdk-c.git -SET ZITI_TUNNEL_REPO_BRANCH=memory_check +SET ZITI_TUNNEL_REPO_BRANCH=desktop-edge-win REM override the c sdk used in the build - leave blank for the same as specified in the tunneler sdk SET ZITI_SDK_C_BRANCH= SET ZITI_TUNNEL_REPO_URL=https://github.com/openziti/ziti-tunnel-sdk-c/releases/latest/download/ziti-edge-tunnel-Windows_x86_64.zip