Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

notifcations: Sanitize SMTP configuration #7361

Merged
merged 2 commits into from
Oct 5, 2023
Merged

Conversation

rhafer
Copy link
Contributor

@rhafer rhafer commented Sep 26, 2023

This makes a couple changes to the Mail client configuration of the notifications service

  • automatically pick a suitable auth mechanism
  • deprecate some redundant setting of the encryption config
  • remove some not really helpful default settings of the config

Please specifically review the deprecation notice. As were not deprecating a whole config variable but just specific configuration settings.

Closes: #7356 #7345

@rhafer rhafer self-assigned this Sep 26, 2023
@rhafer rhafer force-pushed the issue/7356 branch 2 times, most recently from 143be87 to 6c676c1 Compare September 27, 2023 07:40
Copy link
Contributor

@xoxys xoxys left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM otherwise

services/notifications/pkg/config/parser/parse.go Outdated Show resolved Hide resolved
@rhafer rhafer force-pushed the issue/7356 branch 3 times, most recently from e58084c to 83800a9 Compare September 28, 2023 14:43
'tls' and 'ssl' are duplicates of 'starttls' and 'ssltls' and have been deprecated
in the upstream modules we use for sending mail notifications. Let's deprecate them
as well and issue a warning when they are still used.

Fixes: owncloud#7345
This introduces the new value `auto` for NOTIFICATIONS_SMTP_AUTHENTICATION.
Which will make the notifications service automatically pick an authentication
mechanism that the server supports. This is also the new default behavior.

This also removes most of the other default settings for the SMTP
configuration. The default values were of no real use for this service.

Closes: owncloud#7356
@sonarcloud
Copy link

sonarcloud bot commented Oct 5, 2023

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

0.0% 0.0% Coverage
0.0% 0.0% Duplication

@rhafer rhafer merged commit f6b792a into owncloud:master Oct 5, 2023
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Autodetect SMTP auth methods
5 participants