Given there's no SMS provider configured, when actions are initiated that would use the notification channel SMS, then ZITADEL writes the following error message in the logs
time="2024-04-09T08:46:21Z" level=error msg="could not create sms channel" caller="/home/runner/work/zitadel/zitadel/internal/notification/types/user_phone.go:24" error="ID=QUERY-fn99w Message=Errors.SMSConfig.NotExisting Parent=(sql: no rows in result set)"
This leads to a lot of noise / spamming of the logs (which was reported by our customers).
Additionally this would also mean that some functionality fails for end-users, that could be with error code or in silent.
Describe your ideal solution
Multiple solutions or combinations are possible.
Disable features that rely on a notification channel that is disabled or not configured
Write notifications to logs if the notification channel is not configured
If a notification channel is always required, ensure existence during setup / change of configuration
Preflight Checklist
Describe your problem
Given there's no SMS provider configured, when actions are initiated that would use the notification channel SMS, then ZITADEL writes the following error message in the logs
time="2024-04-09T08:46:21Z" level=error msg="could not create sms channel" caller="/home/runner/work/zitadel/zitadel/internal/notification/types/user_phone.go:24" error="ID=QUERY-fn99w Message=Errors.SMSConfig.NotExisting Parent=(sql: no rows in result set)"
This leads to a lot of noise / spamming of the logs (which was reported by our customers). Additionally this would also mean that some functionality fails for end-users, that could be with error code or in silent.
Describe your ideal solution
Multiple solutions or combinations are possible.
Version
No response
Environment
Self-hosted
Additional Context
Reported by customer