From: jegan Date: Fri, 5 Jul 2024 05:50:07 +0000 (+0000) Subject: Feature 11034 Forgot Password in OSM X-Git-Url: https://osm.etsi.org/gitweb/?a=commitdiff_plain;h=babd7dbbef1f67e0f1c5ddca0841a8de264b3dd1;p=osm%2Fdevops.git Feature 11034 Forgot Password in OSM 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 --- diff --git a/installers/helm/osm/templates/nbi/nbi-configmap.yaml b/installers/helm/osm/templates/nbi/nbi-configmap.yaml index ef24704e..e4c6ac99 100644 --- a/installers/helm/osm/templates/nbi/nbi-configmap.yaml +++ b/installers/helm/osm/templates/nbi/nbi-configmap.yaml @@ -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 }} diff --git a/installers/helm/osm/values.yaml b/installers/helm/osm/values.yaml index 4cb68ffa..fe8f2def 100644 --- a/installers/helm/osm/values.yaml +++ b/installers/helm/osm/values.yaml @@ -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