From b35a49906b313d470bc74a011bed8168e5891f29 Mon Sep 17 00:00:00 2001 From: Shreeja jobin Date: Fri, 27 Dec 2024 10:47:41 +0530 Subject: [PATCH] chore: change mtls strategy in phiprod and delete unused file --- hub-prime/pom.xml | 2 +- .../main/resources/application-phiprod.yml | 2 +- .../src/main/resources/application-prod.yml | 36 ------------------- 3 files changed, 2 insertions(+), 38 deletions(-) delete mode 100644 hub-prime/src/main/resources/application-prod.yml diff --git a/hub-prime/pom.xml b/hub-prime/pom.xml index 748eebd57b1..7e33bb77f3a 100644 --- a/hub-prime/pom.xml +++ b/hub-prime/pom.xml @@ -11,7 +11,7 @@ org.techbd hub-prime - 0.402.0 + 0.403.0 war Tech by Design Hub (Prime) Tech by Design Hub (Primary) diff --git a/hub-prime/src/main/resources/application-phiprod.yml b/hub-prime/src/main/resources/application-phiprod.yml index 0e3b431ac54..ad96d9d711b 100644 --- a/hub-prime/src/main/resources/application-phiprod.yml +++ b/hub-prime/src/main/resources/application-phiprod.yml @@ -47,7 +47,7 @@ org: # - aws-secrets-temp-file: mTLS is enabled. The WebClient retrieves the TLS key and certificate from AWS Secrets Manager store it to a temporary file ,create ssl context and then delete from temporary file, and then sends an HTTPS POST request to the scoring engine API with mutual TLS authentication. # - mTlsResources: mTLS is enabled. The WebClient reads the TLS key and certificate from a local folder, and then sends an HTTPS POST request to the scoring engine API with mutual TLS authentication. # - post-stdin-payload-to-nyec-datalake-external: This option runs a bash script via ProcessBuilder. The payload is passed through standard input (STDIN) to the script, which uses `curl` to send the request to the scoring engine API. In the `phiqa` environment, mTLS is enabled for this request. In other environments, mTLS is disabled for this script. - mTlsStrategy: post-stdin-payload-to-nyec-datalake-external + mTlsStrategy: aws-secrets mTlsResources: # Path to the TLS key resource for mTLS. mTlsKeyResourceName: src/main/resources/certificates/scoring-engine/nyec-client-key.key # File is blank by default.Add key here. diff --git a/hub-prime/src/main/resources/application-prod.yml b/hub-prime/src/main/resources/application-prod.yml deleted file mode 100644 index 41f96c034d5..00000000000 --- a/hub-prime/src/main/resources/application-prod.yml +++ /dev/null @@ -1,36 +0,0 @@ -management: - endpoints: - enabled-by-default: false - web: - exposure: - include: actuator,beans,env,openapi,swagger-ui,health,info,metrics - health: - db: - enabled: true - endpoint: - beans: - enabled: true - env: - enabled: true - show-values: when-authorized - health: - enabled: true - show-details: always - info: - enabled: true - metrics: - enabled: true - prometheus: - enabled: true - info: - git: - mode: full - build: - enabled: true - env: - enabled: true - java: - enabled: true - os: - enabled: true - \ No newline at end of file