Feature 11034 Forgot Password in OSM 66/14466/8
authorjegan <jegan.s@tataelxsi.co.in>
Fri, 5 Jul 2024 05:50:07 +0000 (05:50 +0000)
committersjega <jegan.s@tataelxsi.co.in>
Thu, 17 Oct 2024 11:06:47 +0000 (13:06 +0200)
New environment variables OSMNBI_SMTP_SERVER, OSMNBI_SMTP_PORT, OSMNBI_SENDER_EMAIL, OSMNBI_EMAIL_PASSWORD, OSMNBI_OTP_RETRY_COUNT and OSMNBI_OTP_EXPIRY_TIME

Change-Id: Ic9fb2e833afc3230e64e43da96a0f9c49d3f0312
Signed-off-by: jegan <jegan.s@tataelxsi.co.in>
installers/helm/osm/templates/nbi/nbi-configmap.yaml
installers/helm/osm/values.yaml

index ef24704..e4c6ac9 100644 (file)
@@ -28,4 +28,11 @@ data:
   OSMNBI_STORAGE_COLLECTION: "files"
   OSMNBI_LOG_LEVEL: {{ .Values.nbi.logLevel | default .Values.global.logLevel | default "INFO" }}
   OSMNBI_USER_MANAGEMENT: "True"
+  {{- if .Values.nbi.smtp.enabled -}}
+  OSMNBI_SMTP_SERVER: {{ .Values.nbi.smtp.server }}
+  OSMNBI_SMTP_PORT: {{ .Values.nbi.smtp.port }}
+  OSMNBI_SENDER_EMAIL: {{ .Values.nbi.smtp.senderEmail }}
+  OSMNBI_OTP_RETRY_COUNT: {{ .Values.nbi.smtp.otpRetryCount }}
+  OSMNBI_OTP_EXPIRY_TIME: {{ .Values.nbi.smtp.otpExpiryTime }}
+  {{- end }}
 {{- end }}
index 4cb68ff..fe8f2de 100644 (file)
@@ -272,6 +272,16 @@ nbi:
   # replicaCount: 1
   useOsmSecret: true
   # secretName: "nbi-secret"
+  smtp:
+    enabled: false
+    server: ""
+    port: ""
+    senderEmail: ""
+    otpRetryCount: 3
+    otpExpiryTime: 300
+    secretName: "osmnbi-email-password"
+    secretKey: "OSMNBI_EMAIL_PASSWORD"
+
 
 ngui:
   enabled: true