From f4646dc97fc9c861c513757ce0bf6390d9b66ffd Mon Sep 17 00:00:00 2001 From: Zeeshaun Date: Tue, 31 Mar 2026 10:57:41 -0500 Subject: [PATCH] reset --- .../Dockerfile.ca | 17 ----- .../App_Start/IocConfig.cs | 7 +- .../Attributes/ApiKeyAuthorizeAttribute.cs | 14 ++-- .../Configuration/AppSettingsResolver.cs | 71 ------------------- .../Controllers/StatusController.cs | 4 +- .../CoreSoapUtilities/CoreSoapRequest.cs | 7 +- ...LCU.API.Internal.CoreSoapApiWrapper.csproj | 3 +- .../Models/SoapConfiguration.cs | 45 ++++++------ .../Web.Debug.config | 1 - .../Web.Release.config | 1 - .../Web.Uat.config | 1 - .../Web.config | 1 - ...-api-wrapper-soap-connection-password.json | 1 - ...p-api-wrapper-soap-connection-user-id.json | 1 - .../azdo_pipelines/azure-k8s-pipeline.yaml | 2 +- .../entrypoint.sh | 14 ---- .../prd/appsettings/appsettings.config | 1 - .../qa/appsettings/appsettings.config | 1 - .../uat/appsettings/appsettings.config | 1 - .../local-config/LandmarkIssuingCA1.crt | 36 ---------- .../local-config/LandmarkRootCA.crt | 30 -------- .../local-config/lcu-internal-ca-bundle.pem | 66 ----------------- 22 files changed, 39 insertions(+), 286 deletions(-) delete mode 100644 LCU.API.Internal.CoreSoapApiWrapper/Dockerfile.ca delete mode 100644 LCU.API.Internal.CoreSoapApiWrapper/LCU.API.Internal.CoreSoapApiWrapper/Configuration/AppSettingsResolver.cs delete mode 100644 LCU.API.Internal.CoreSoapApiWrapper/LCU.API.Internal.CoreSoapApiWrapper/secrets/core-soap-api-wrapper-soap-connection-password.json delete mode 100644 LCU.API.Internal.CoreSoapApiWrapper/LCU.API.Internal.CoreSoapApiWrapper/secrets/core-soap-api-wrapper-soap-connection-user-id.json delete mode 100644 LCU.API.Internal.CoreSoapApiWrapper/entrypoint.sh delete mode 100644 LCU.API.Internal.CoreSoapApiWrapper/local-config/LandmarkIssuingCA1.crt delete mode 100644 LCU.API.Internal.CoreSoapApiWrapper/local-config/LandmarkRootCA.crt delete mode 100644 LCU.API.Internal.CoreSoapApiWrapper/local-config/lcu-internal-ca-bundle.pem diff --git a/LCU.API.Internal.CoreSoapApiWrapper/Dockerfile.ca b/LCU.API.Internal.CoreSoapApiWrapper/Dockerfile.ca deleted file mode 100644 index 84c99a0..0000000 --- a/LCU.API.Internal.CoreSoapApiWrapper/Dockerfile.ca +++ /dev/null @@ -1,17 +0,0 @@ -FROM soap - -# Install OS CA tooling + mono cert sync tool (Debian/Ubuntu-based images) -RUN apt-get update \ - && apt-get install -y --no-install-recommends ca-certificates mono-utils \ - && rm -rf /var/lib/apt/lists/* - -# Add your internal CA chain as a trusted CA bundle -COPY local-config/LandmarkRootCA.crt /usr/local/share/ca-certificates/LandmarkRootCA.crt -COPY local-config/LandmarkIssuingCA1.crt /usr/local/share/ca-certificates/LandmarkIssuingCA1.crt - -# Update OS trust + sync into Mono trust -RUN update-ca-certificates \ - && cert-sync /etc/ssl/certs/ca-certificates.crt - -# (Optional) Point SSL_CERT_FILE at the system bundle Mono is most likely to use -ENV SSL_CERT_FILE=/etc/ssl/certs/ca-certificates.crt \ No newline at end of file diff --git a/LCU.API.Internal.CoreSoapApiWrapper/LCU.API.Internal.CoreSoapApiWrapper/App_Start/IocConfig.cs b/LCU.API.Internal.CoreSoapApiWrapper/LCU.API.Internal.CoreSoapApiWrapper/App_Start/IocConfig.cs index a655512..f1be507 100644 --- a/LCU.API.Internal.CoreSoapApiWrapper/LCU.API.Internal.CoreSoapApiWrapper/App_Start/IocConfig.cs +++ b/LCU.API.Internal.CoreSoapApiWrapper/LCU.API.Internal.CoreSoapApiWrapper/App_Start/IocConfig.cs @@ -1,6 +1,5 @@ using Autofac; using Autofac.Integration.WebApi; -using LCU.API.Internal.CoreSoapApiWrapper.Configuration; using LCU.API.Internal.CoreSoapApiWrapper.CoreSoapUtilities; using LCU.API.Internal.CoreSoapApiWrapper.DataAccess; using LCU.API.Internal.CoreSoapApiWrapper.Models; @@ -40,7 +39,7 @@ namespace LCU.API.Internal.CoreSoapApiWrapper.App_Start RegisterSoapClasses(builder); // Get apikey from secret file if available, otherwise fallback to appsettings - var seqApiKey = AppSettingsResolver.Get("serilog:write-to:Seq.apiKey"); + var seqApiKey = ConfigurationManager.AppSettings["serilog:write-to:Seq.apiKey"]; try { seqApiKey = File.ReadAllText("/vault/secrets/core-soap-api-wrapper-api-seq-api-key.json").Trim(); @@ -53,7 +52,7 @@ namespace LCU.API.Internal.CoreSoapApiWrapper.App_Start { return new LoggerConfiguration().Enrich.FromLogContext() .Enrich.With() - .WriteTo.Seq(AppSettingsResolver.Get("serilog:write-to:Seq.serverUrl"), LogEventLevel.Information, 1000, null, seqApiKey) + .WriteTo.Seq(ConfigurationManager.AppSettings["serilog:write-to:Seq.serverUrl"], LogEventLevel.Information, 1000, null, seqApiKey) .CreateLogger(); }).SingleInstance(); @@ -87,4 +86,4 @@ namespace LCU.API.Internal.CoreSoapApiWrapper.App_Start builder.RegisterType().As(); } } -} +} \ No newline at end of file diff --git a/LCU.API.Internal.CoreSoapApiWrapper/LCU.API.Internal.CoreSoapApiWrapper/Attributes/ApiKeyAuthorizeAttribute.cs b/LCU.API.Internal.CoreSoapApiWrapper/LCU.API.Internal.CoreSoapApiWrapper/Attributes/ApiKeyAuthorizeAttribute.cs index 67978d5..5090253 100644 --- a/LCU.API.Internal.CoreSoapApiWrapper/LCU.API.Internal.CoreSoapApiWrapper/Attributes/ApiKeyAuthorizeAttribute.cs +++ b/LCU.API.Internal.CoreSoapApiWrapper/LCU.API.Internal.CoreSoapApiWrapper/Attributes/ApiKeyAuthorizeAttribute.cs @@ -1,7 +1,7 @@ -using LCU.API.Internal.CoreSoapApiWrapper.Configuration; -using Serilog; +using Serilog; using System; using System.Collections.Generic; +using System.Configuration; using System.IO; using System.Linq; using System.Net; @@ -22,7 +22,11 @@ namespace LCU.API.Internal.CoreSoapApiWrapper.Attributes public ApiKeyAuthorizeAttribute() { - _externalApiKeySet = AppSettingsResolver.GetByPrefix(KeySetPrefix); + _externalApiKeySet = ConfigurationManager.AppSettings.AllKeys + .Where(k => k.StartsWith(KeySetPrefix)) + .ToDictionary( + k => k.Substring(KeySetPrefix.Length), + k => ConfigurationManager.AppSettings[k]); try { @@ -33,7 +37,7 @@ namespace LCU.API.Internal.CoreSoapApiWrapper.Attributes // do nothing, fallback to appsettings value if secret file is not found or cannot be read } - _authenticationFailureBehavior = AppSettingsResolver.Get("ApiSecurityConfiguration:ApiKeyAuthenticationFailureBehavior") ?? "Error"; + _authenticationFailureBehavior = ConfigurationManager.AppSettings["ApiSecurityConfiguration:ApiKeyAuthenticationFailureBehavior"] ?? "Error"; } protected override bool IsAuthorized(HttpActionContext actionContext) @@ -80,4 +84,4 @@ namespace LCU.API.Internal.CoreSoapApiWrapper.Attributes }; } } -} +} \ No newline at end of file diff --git a/LCU.API.Internal.CoreSoapApiWrapper/LCU.API.Internal.CoreSoapApiWrapper/Configuration/AppSettingsResolver.cs b/LCU.API.Internal.CoreSoapApiWrapper/LCU.API.Internal.CoreSoapApiWrapper/Configuration/AppSettingsResolver.cs deleted file mode 100644 index 4fddbc6..0000000 --- a/LCU.API.Internal.CoreSoapApiWrapper/LCU.API.Internal.CoreSoapApiWrapper/Configuration/AppSettingsResolver.cs +++ /dev/null @@ -1,71 +0,0 @@ -using System; -using System.Collections.Generic; -using System.Configuration; -using System.IO; -using System.Linq; -using System.Xml.Linq; - -namespace LCU.API.Internal.CoreSoapApiWrapper.Configuration -{ - public static class AppSettingsResolver - { - private const string ExternalAppSettingsPath = "/app/config/environment-appsettings/appsettings.config"; - - private static readonly Lazy> ExternalSettings = - new Lazy>(LoadExternalSettings); - - public static string Get(string key) - { - if (ExternalSettings.Value.TryGetValue(key, out var value) && !string.IsNullOrWhiteSpace(value)) - { - return value; - } - - return ConfigurationManager.AppSettings[key]; - } - - public static Dictionary GetByPrefix(string prefix) - { - var mergedSettings = new Dictionary(StringComparer.OrdinalIgnoreCase); - var appSettings = ConfigurationManager.AppSettings; - - foreach (var key in appSettings.AllKeys.Where(k => k != null && k.StartsWith(prefix, StringComparison.OrdinalIgnoreCase))) - { - mergedSettings[key.Substring(prefix.Length)] = appSettings[key]; - } - - foreach (var kvp in ExternalSettings.Value.Where(kvp => kvp.Key.StartsWith(prefix, StringComparison.OrdinalIgnoreCase))) - { - mergedSettings[kvp.Key.Substring(prefix.Length)] = kvp.Value; - } - - return mergedSettings; - } - - private static IReadOnlyDictionary LoadExternalSettings() - { - try - { - if (!File.Exists(ExternalAppSettingsPath)) - { - return new Dictionary(StringComparer.OrdinalIgnoreCase); - } - - var document = XDocument.Load(ExternalAppSettingsPath); - - return document.Root? - .Elements("add") - .Where(element => element.Attribute("key") != null) - .ToDictionary( - element => element.Attribute("key").Value, - element => element.Attribute("value")?.Value, - StringComparer.OrdinalIgnoreCase) - ?? new Dictionary(StringComparer.OrdinalIgnoreCase); - } - catch (Exception) - { - return new Dictionary(StringComparer.OrdinalIgnoreCase); - } - } - } -} diff --git a/LCU.API.Internal.CoreSoapApiWrapper/LCU.API.Internal.CoreSoapApiWrapper/Controllers/StatusController.cs b/LCU.API.Internal.CoreSoapApiWrapper/LCU.API.Internal.CoreSoapApiWrapper/Controllers/StatusController.cs index 7b5654e..f91ab5a 100644 --- a/LCU.API.Internal.CoreSoapApiWrapper/LCU.API.Internal.CoreSoapApiWrapper/Controllers/StatusController.cs +++ b/LCU.API.Internal.CoreSoapApiWrapper/LCU.API.Internal.CoreSoapApiWrapper/Controllers/StatusController.cs @@ -1,7 +1,7 @@ using System; +using System.Configuration; using System.Web.Http; using Serilog; -using LCU.API.Internal.CoreSoapApiWrapper.Configuration; using LCU.API.Internal.CoreSoapApiWrapper.Models; namespace LCU.API.Internal.CoreSoapApiWrapper.Controllers @@ -21,7 +21,7 @@ namespace LCU.API.Internal.CoreSoapApiWrapper.Controllers var result = new EnvironmentView(); result.Application = "LCU.API.Internal.CoreSoapApiWrapper"; result.CurrentDate = DateTime.Now; - result.Environment = AppSettingsResolver.Get("KnownEnvironment"); + result.Environment = ConfigurationManager.AppSettings["KnownEnvironment"]; Log.Verbose($"{result.Application}'s status endpoint was hit in {result.Environment}"); return Ok(result); } diff --git a/LCU.API.Internal.CoreSoapApiWrapper/LCU.API.Internal.CoreSoapApiWrapper/CoreSoapUtilities/CoreSoapRequest.cs b/LCU.API.Internal.CoreSoapApiWrapper/LCU.API.Internal.CoreSoapApiWrapper/CoreSoapUtilities/CoreSoapRequest.cs index 9c28d7b..dbb75f9 100644 --- a/LCU.API.Internal.CoreSoapApiWrapper/LCU.API.Internal.CoreSoapApiWrapper/CoreSoapUtilities/CoreSoapRequest.cs +++ b/LCU.API.Internal.CoreSoapApiWrapper/LCU.API.Internal.CoreSoapApiWrapper/CoreSoapUtilities/CoreSoapRequest.cs @@ -1,6 +1,5 @@ using System; using System.Collections.Generic; -using System.ServiceModel; using LCU.API.Internal.CoreSoapApiWrapper.Models; namespace LCU.API.Internal.CoreSoapApiWrapper.CoreSoapUtilities @@ -45,9 +44,7 @@ namespace LCU.API.Internal.CoreSoapApiWrapper.CoreSoapUtilities private TransactionOutput SubmitTransactionInput(TransactionInput transactionInput) { - var client = string.IsNullOrWhiteSpace(_soapConfiguration.CoreApiServiceUrl) - ? new CoreApiServiceClient(_soapConfiguration.Endpoint) - : new CoreApiServiceClient(_soapConfiguration.Endpoint, new EndpointAddress(_soapConfiguration.CoreApiServiceUrl)); + var client = new CoreApiServiceClient(_soapConfiguration.Endpoint); TransactionOutput output = client.SubmitRequest(transactionInput); if (output?.Output?.UserAuthentication == null || output?.Output?.Responses == null) @@ -63,4 +60,4 @@ namespace LCU.API.Internal.CoreSoapApiWrapper.CoreSoapUtilities return output; } } -} +} \ No newline at end of file diff --git a/LCU.API.Internal.CoreSoapApiWrapper/LCU.API.Internal.CoreSoapApiWrapper/LCU.API.Internal.CoreSoapApiWrapper.csproj b/LCU.API.Internal.CoreSoapApiWrapper/LCU.API.Internal.CoreSoapApiWrapper/LCU.API.Internal.CoreSoapApiWrapper.csproj index a6ebb69..cf6fe83 100644 --- a/LCU.API.Internal.CoreSoapApiWrapper/LCU.API.Internal.CoreSoapApiWrapper/LCU.API.Internal.CoreSoapApiWrapper.csproj +++ b/LCU.API.Internal.CoreSoapApiWrapper/LCU.API.Internal.CoreSoapApiWrapper/LCU.API.Internal.CoreSoapApiWrapper.csproj @@ -181,7 +181,6 @@ - @@ -337,4 +336,4 @@ --> - + \ No newline at end of file diff --git a/LCU.API.Internal.CoreSoapApiWrapper/LCU.API.Internal.CoreSoapApiWrapper/Models/SoapConfiguration.cs b/LCU.API.Internal.CoreSoapApiWrapper/LCU.API.Internal.CoreSoapApiWrapper/Models/SoapConfiguration.cs index f593d82..e6df019 100644 --- a/LCU.API.Internal.CoreSoapApiWrapper/LCU.API.Internal.CoreSoapApiWrapper/Models/SoapConfiguration.cs +++ b/LCU.API.Internal.CoreSoapApiWrapper/LCU.API.Internal.CoreSoapApiWrapper/Models/SoapConfiguration.cs @@ -1,5 +1,4 @@ -using LCU.API.Internal.CoreSoapApiWrapper.Configuration; -using System; +using System; using System.Configuration; using System.IO; @@ -11,26 +10,25 @@ namespace LCU.API.Internal.CoreSoapApiWrapper.Models { int defaultValue; - SafUrl = AppSettingsResolver.Get("soapconnection:safUrl"); - DeviceId = AppSettingsResolver.Get("soapconnection:deviceId"); - UserId = ReadSecret("/vault/secrets/core-soap-api-wrapper-soap-connection-user-id.json") ?? AppSettingsResolver.Get("soapconnection:userId"); - Password = ReadSecret("/vault/secrets/core-soap-api-wrapper-soap-connection-password.json") ?? AppSettingsResolver.Get("soapconnection:password"); - EnvironmentCode = AppSettingsResolver.Get("soapconnection:prodEnvCd"); - DefCode = AppSettingsResolver.Get("soapconnection:prodDefCd"); - ApplicationId = AppSettingsResolver.Get("soapconnection:applId"); - Endpoint = AppSettingsResolver.Get("soapconnection:endpoint"); - CoreApiServiceUrl = AppSettingsResolver.Get("soapconnection:coreApiServiceUrl"); - ApprovalPersonNumber = AppSettingsResolver.Get("soapconnection:approvalpersonnumber"); - OverrideCashBoxNumber = AppSettingsResolver.Get("soapconnection:overridecashboxnumber"); - SocketDeviceId = AppSettingsResolver.Get("socketconnection:deviceId"); - SocketApplicationId = AppSettingsResolver.Get("socketconnection:applId"); - SocketUserId = ReadSecret("/vault/secrets/core-soap-api-wrapper-socket-connection-user-id.json") ?? AppSettingsResolver.Get("socketconnection:userId"); - SocketPassword = ReadSecret("/vault/secrets/core-soap-api-wrapper-socket-connection-password.json") ?? AppSettingsResolver.Get("socketconnection:password"); - SocketTimeout = int.TryParse(AppSettingsResolver.Get("socketconnection:timeout"), out defaultValue) ? defaultValue : 10000; - IPAddress = AppSettingsResolver.Get("socketconnection:ipAddress"); - PortId = int.TryParse(AppSettingsResolver.Get("socketconnection:portId"), out defaultValue) ? defaultValue : 2503; - RequestType = AppSettingsResolver.Get("socketconnection:reqType"); - AuthenticationType = AppSettingsResolver.Get("socketconnection:authType"); + SafUrl = ConfigurationManager.AppSettings["soapconnection:safUrl"]; + DeviceId = ConfigurationManager.AppSettings["soapconnection:deviceId"]; + UserId = ReadSecret("/vault/secrets/core-soap-api-wrapper-soap-connection-user-id.json") ?? ConfigurationManager.AppSettings["soapconnection:userId"]; + Password = ReadSecret("/vault/secrets/core-soap-api-wrapper-soap-connection-password.json") ?? ConfigurationManager.AppSettings["soapconnection:password"]; + EnvironmentCode = ConfigurationManager.AppSettings["soapconnection:prodEnvCd"]; + DefCode = ConfigurationManager.AppSettings["soapconnection:prodDefCd"]; + ApplicationId = ConfigurationManager.AppSettings["soapconnection:applId"]; + Endpoint = ConfigurationManager.AppSettings["soapconnection:endpoint"]; + ApprovalPersonNumber = ConfigurationManager.AppSettings["soapconnection:approvalpersonnumber"]; + OverrideCashBoxNumber = ConfigurationManager.AppSettings["soapconnection:overridecashboxnumber"]; + SocketDeviceId = ConfigurationManager.AppSettings["socketconnection:deviceId"]; + SocketApplicationId = ConfigurationManager.AppSettings["socketconnection:applId"]; + SocketUserId = ReadSecret("/vault/secrets/core-soap-api-wrapper-socket-connection-user-id.json") ?? ConfigurationManager.AppSettings["socketconnection:userId"]; + SocketPassword = ReadSecret("/vault/secrets/core-soap-api-wrapper-socket-connection-password.json") ?? ConfigurationManager.AppSettings["socketconnection:password"]; + SocketTimeout = int.TryParse(ConfigurationManager.AppSettings["socketconnection:timeout"], out defaultValue) ? defaultValue : 10000; + IPAddress = ConfigurationManager.AppSettings["socketconnection:ipAddress"]; + PortId = int.TryParse(ConfigurationManager.AppSettings["socketconnection:portId"], out defaultValue) ? defaultValue : 2503; + RequestType = ConfigurationManager.AppSettings["socketconnection:reqType"]; + AuthenticationType = ConfigurationManager.AppSettings["socketconnection:authType"]; string ReadSecret(string path) { @@ -56,7 +54,6 @@ namespace LCU.API.Internal.CoreSoapApiWrapper.Models public string DefCode { get; set; } public string ApplicationId { get; set; } public string Endpoint { get; set; } - public string CoreApiServiceUrl { get; set; } public string ApprovalPersonNumber { get; set; } public string OverrideCashBoxNumber { get; set; } public string SocketDeviceId { get; set; } @@ -69,4 +66,4 @@ namespace LCU.API.Internal.CoreSoapApiWrapper.Models public string RequestType { get; set; } public string AuthenticationType { get; set; } } -} +} \ No newline at end of file diff --git a/LCU.API.Internal.CoreSoapApiWrapper/LCU.API.Internal.CoreSoapApiWrapper/Web.Debug.config b/LCU.API.Internal.CoreSoapApiWrapper/LCU.API.Internal.CoreSoapApiWrapper/Web.Debug.config index 3d2f928..252eb2a 100644 --- a/LCU.API.Internal.CoreSoapApiWrapper/LCU.API.Internal.CoreSoapApiWrapper/Web.Debug.config +++ b/LCU.API.Internal.CoreSoapApiWrapper/LCU.API.Internal.CoreSoapApiWrapper/Web.Debug.config @@ -20,7 +20,6 @@ - diff --git a/LCU.API.Internal.CoreSoapApiWrapper/LCU.API.Internal.CoreSoapApiWrapper/Web.Release.config b/LCU.API.Internal.CoreSoapApiWrapper/LCU.API.Internal.CoreSoapApiWrapper/Web.Release.config index 34701ca..5fff49e 100644 --- a/LCU.API.Internal.CoreSoapApiWrapper/LCU.API.Internal.CoreSoapApiWrapper/Web.Release.config +++ b/LCU.API.Internal.CoreSoapApiWrapper/LCU.API.Internal.CoreSoapApiWrapper/Web.Release.config @@ -23,7 +23,6 @@ - diff --git a/LCU.API.Internal.CoreSoapApiWrapper/LCU.API.Internal.CoreSoapApiWrapper/Web.Uat.config b/LCU.API.Internal.CoreSoapApiWrapper/LCU.API.Internal.CoreSoapApiWrapper/Web.Uat.config index eb107e9..68dc77e 100644 --- a/LCU.API.Internal.CoreSoapApiWrapper/LCU.API.Internal.CoreSoapApiWrapper/Web.Uat.config +++ b/LCU.API.Internal.CoreSoapApiWrapper/LCU.API.Internal.CoreSoapApiWrapper/Web.Uat.config @@ -23,7 +23,6 @@ - diff --git a/LCU.API.Internal.CoreSoapApiWrapper/LCU.API.Internal.CoreSoapApiWrapper/Web.config b/LCU.API.Internal.CoreSoapApiWrapper/LCU.API.Internal.CoreSoapApiWrapper/Web.config index 3555751..452f934 100644 --- a/LCU.API.Internal.CoreSoapApiWrapper/LCU.API.Internal.CoreSoapApiWrapper/Web.config +++ b/LCU.API.Internal.CoreSoapApiWrapper/LCU.API.Internal.CoreSoapApiWrapper/Web.config @@ -35,7 +35,6 @@ - diff --git a/LCU.API.Internal.CoreSoapApiWrapper/LCU.API.Internal.CoreSoapApiWrapper/secrets/core-soap-api-wrapper-soap-connection-password.json b/LCU.API.Internal.CoreSoapApiWrapper/LCU.API.Internal.CoreSoapApiWrapper/secrets/core-soap-api-wrapper-soap-connection-password.json deleted file mode 100644 index 1d4101b..0000000 --- a/LCU.API.Internal.CoreSoapApiWrapper/LCU.API.Internal.CoreSoapApiWrapper/secrets/core-soap-api-wrapper-soap-connection-password.json +++ /dev/null @@ -1 +0,0 @@ -ASland21!! \ No newline at end of file diff --git a/LCU.API.Internal.CoreSoapApiWrapper/LCU.API.Internal.CoreSoapApiWrapper/secrets/core-soap-api-wrapper-soap-connection-user-id.json b/LCU.API.Internal.CoreSoapApiWrapper/LCU.API.Internal.CoreSoapApiWrapper/secrets/core-soap-api-wrapper-soap-connection-user-id.json deleted file mode 100644 index 08af4fb..0000000 --- a/LCU.API.Internal.CoreSoapApiWrapper/LCU.API.Internal.CoreSoapApiWrapper/secrets/core-soap-api-wrapper-soap-connection-user-id.json +++ /dev/null @@ -1 +0,0 @@ -ASERVICE \ No newline at end of file diff --git a/LCU.API.Internal.CoreSoapApiWrapper/azdo_pipelines/azure-k8s-pipeline.yaml b/LCU.API.Internal.CoreSoapApiWrapper/azdo_pipelines/azure-k8s-pipeline.yaml index 93fafae..9c6fc0e 100644 --- a/LCU.API.Internal.CoreSoapApiWrapper/azdo_pipelines/azure-k8s-pipeline.yaml +++ b/LCU.API.Internal.CoreSoapApiWrapper/azdo_pipelines/azure-k8s-pipeline.yaml @@ -44,7 +44,7 @@ stages: - template: k8s-deploy.yaml@azdo_pipeline_templates parameters: dependsOn: CI - condition: or(eq(variables['Build.SourceBranchName'], 'develop'), eq(variables['Build.SourceBranchName'], 'main')) + condition: or(eq(variables['Build.SourceBranchName'], 'develop'), eq(variables['Build.SourceBranchName'], 'master')) azdo_agent_pool: $(pvar_azdo_agent_pool) kubectl_version: $(pvar_kubectl_version) k8s_service_connection: $(pvar_k8s_service_connection) diff --git a/LCU.API.Internal.CoreSoapApiWrapper/entrypoint.sh b/LCU.API.Internal.CoreSoapApiWrapper/entrypoint.sh deleted file mode 100644 index 7c64bea..0000000 --- a/LCU.API.Internal.CoreSoapApiWrapper/entrypoint.sh +++ /dev/null @@ -1,14 +0,0 @@ -#!/usr/bin/env bash -set -euo pipefail - -# Refresh system trust store if custom certs are mounted. -if ls /usr/local/share/ca-certificates/*.crt >/dev/null 2>&1; then - update-ca-certificates >/dev/null -fi - -# Sync Mono trust store with system CAs. -if command -v cert-sync >/dev/null 2>&1; then - cert-sync /etc/ssl/certs/ca-certificates.crt >/dev/null -fi - -exec xsp4 --port 8080 --nonstop --address 0.0.0.0 --applications /:. diff --git a/LCU.API.Internal.CoreSoapApiWrapper/kustomize/overlays/prd/appsettings/appsettings.config b/LCU.API.Internal.CoreSoapApiWrapper/kustomize/overlays/prd/appsettings/appsettings.config index 647805f..20c938a 100644 --- a/LCU.API.Internal.CoreSoapApiWrapper/kustomize/overlays/prd/appsettings/appsettings.config +++ b/LCU.API.Internal.CoreSoapApiWrapper/kustomize/overlays/prd/appsettings/appsettings.config @@ -15,7 +15,6 @@ - diff --git a/LCU.API.Internal.CoreSoapApiWrapper/kustomize/overlays/qa/appsettings/appsettings.config b/LCU.API.Internal.CoreSoapApiWrapper/kustomize/overlays/qa/appsettings/appsettings.config index a3691ba..8260a2d 100644 --- a/LCU.API.Internal.CoreSoapApiWrapper/kustomize/overlays/qa/appsettings/appsettings.config +++ b/LCU.API.Internal.CoreSoapApiWrapper/kustomize/overlays/qa/appsettings/appsettings.config @@ -15,7 +15,6 @@ - diff --git a/LCU.API.Internal.CoreSoapApiWrapper/kustomize/overlays/uat/appsettings/appsettings.config b/LCU.API.Internal.CoreSoapApiWrapper/kustomize/overlays/uat/appsettings/appsettings.config index 10cacb4..f1c8a4c 100644 --- a/LCU.API.Internal.CoreSoapApiWrapper/kustomize/overlays/uat/appsettings/appsettings.config +++ b/LCU.API.Internal.CoreSoapApiWrapper/kustomize/overlays/uat/appsettings/appsettings.config @@ -15,7 +15,6 @@ - diff --git a/LCU.API.Internal.CoreSoapApiWrapper/local-config/LandmarkIssuingCA1.crt b/LCU.API.Internal.CoreSoapApiWrapper/local-config/LandmarkIssuingCA1.crt deleted file mode 100644 index 5e26193..0000000 --- a/LCU.API.Internal.CoreSoapApiWrapper/local-config/LandmarkIssuingCA1.crt +++ /dev/null @@ -1,36 +0,0 @@ ------BEGIN CERTIFICATE----- -MIIGPTCCBCWgAwIBAgITUQAAAAZOXgzS/Yff0wAAAAAABjANBgkqhkiG9w0BAQsF -ADAZMRcwFQYDVQQDEw5MYW5kbWFya1Jvb3RDQTAeFw0yNDA5MTMwMDUyMjVaFw0z -NDA5MTMwMTAyMjVaMFAxEzARBgoJkiaJk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gzy7tkexLF -vr82gkpEWO7HpwXaMEEGA1UdHwQ6MDgwNqA0oDKGMGh0dHA6Ly9jZHAubGFuZG1h -cmtjdS5jb20vY3JsL0xhbmRtYXJrUm9vdENBLmNybDBMBggrBgEFBQcBAQRAMD4w -PAYIKwYBBQUHMAKGMGh0dHA6Ly9jZHAubGFuZG1hcmtjdS5jb20vY3JsL0xhbmRt -YXJrUm9vdENBLmNydDANBgkqhkiG9w0BAQsFAAOCAgEAFWBbOXFPWUvhnRpLT0XT -YGA/sz54nybNoWEU6x0tz2/+DlbVyvrZpcKmTaARfwbiw1OE8R9j06a5u15KqS9x -IfG4slk6MSvv0/1mCr9tvCYl4nhZR6wqqGaHrbDgHkM8V3LGTEo5A8AYor8Z4HG5 -oLeTaiIu755zOmxXtZ3zmHk56/RW1xActXGjjb0llRKNku3Gv1aVCJIGbM2LPucz -XpWTjoXGueecR1/pyWH8uw/nWu9Ud8+Z0Uk5Uv1RJpVR9ZdmcUzF00poZqi4Zfgv -/tIM2U+bKc/Qzrfe5qP1t7oVLlRd7Rb4jreHUclqWsXCYPQTKtavcWpQPFpegyVu -fCnDWlWbEBTJ3t1PGX9Y9ASksO/SUSiUqVzpGVoRKI8br5VuYfbFdx1b40bx83Lh -M2nzkl+sjaIzOmKPUXob1VHIUnv11WbuRp/iwwwiYDZfCT9ei6xnvYH/1sLb5kS/ -CGGd0dSKm411d26QK+NyOeUp5htdnkowjqJLIR4o/zWqAtIpwMB57Q9naQqGsgA2 -+SytBxxjks3Wiy54Qo4uwcG6Wnmvsg6sDE3c3UGOgbJxIY2Elz+vwCGnnJ5vGI6t -pTRyfLON+CDKt85QevcT+PR1h42zIiongYSMf9jEVK+ei0HWXdaTXy/blHtLioIc -wka3UAS515E0ffmeE9tzuCs= ------END CERTIFICATE----- diff --git a/LCU.API.Internal.CoreSoapApiWrapper/local-config/LandmarkRootCA.crt b/LCU.API.Internal.CoreSoapApiWrapper/local-config/LandmarkRootCA.crt deleted file mode 100644 index b7c8c3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Af8wHQYD -VR0OBBYEFPgzy7tkexLFvr82gkpEWO7HpwXaMBAGCSsGAQQBgjcVAQQDAgEAMA0G -CSqGSIb3DQEBCwUAA4ICAQAYAZ44XhlBdDw3KQM/3ulLEW3ikTBH1pYEcbVpzDiz -EwwBBHrG8GF+N8A7dc9iGm89/gVwq3wSjTGhP0R+6rMFDXolNKlmQJJEvWVSlBpW -Nhe9ZP05qsviWP0zSd5/EW1GbPDdxu24AZ6wkeXdRUh3SoNR1TbNfYi7ykBuh57w -9s9bLJ6W+Vr4JVSJDFsVpmmTWozW77BvIfhKENrJ8JD4OmnGL4LKZxooj4Z8VN0V -4LwEEsQf4mEvGuphVRYuf5Eyz4Uz9LmVq5ow3NOxQtv9H26vdXnhJk3o+6vG1sB+ -ZYLVj+eoaUPTVAOXOO+B0MfxzpRSi5JDDTiPyWo3pVW84RptYJh5gOJ6Jx4b+rgC -maHTIQ0Ej9CFk8bTRF7V3YWMbLNovSMrJWiqDLfvSMwVzngRLdSxnSyR5PT47HFA -816Xs3AJDstxAKUPoV20zgsHlwqQ1j3IvACTZImyMRiIH60SrmJAnw0lufBPH7XQ -7GN/zSNIQxp8+9WCf3686NJyaMhdeMtK4ISmJ4U5wV6dGYFxCUMx37e4FYZJc3Ml -cL6EwmovNryczcYsH+29E+aB2DhPSqnvVO7WSVJsrFaXHACZ/9/Q4wT442WsPQlA -aoxj11Fsb8X75Hs1dW4qEdaBPQRR4YuDuV19/N/IFa0y/4p68D7dyVN6slHiwwZ0 -QA== ------END CERTIFICATE----- diff --git a/LCU.API.Internal.CoreSoapApiWrapper/local-config/lcu-internal-ca-bundle.pem b/LCU.API.Internal.CoreSoapApiWrapper/local-config/lcu-internal-ca-bundle.pem deleted file mode 100644 index f08316b..0000000 --- a/LCU.API.Internal.CoreSoapApiWrapper/local-config/lcu-internal-ca-bundle.pem +++ /dev/null @@ -1,66 +0,0 @@ ------BEGIN CERTIFICATE----- -MIIGPTCCBCWgAwIBAgITUQAAAAZOXgzS/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