Feature 11034 Forgot Password in OSM 89/14789/1
authorjegan <jegan.s@tataelxsi.co.in>
Fri, 5 Jul 2024 05:50:07 +0000 (05:50 +0000)
committergarciadeblas <gerardo.garciadeblas@telefonica.com>
Mon, 2 Dec 2024 14:28:34 +0000 (15:28 +0100)
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>
Signed-off-by: garciadeblas <gerardo.garciadeblas@telefonica.com>
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 8bec8f4..408e5be 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