-
Notifications
You must be signed in to change notification settings - Fork 493
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
Enable mail MTA/SMTP configuration using MicroProfile Config #9939
Commits on Sep 20, 2023
-
Configuration menu - View commit details
-
Copy full SHA for d6c0600 - Browse repository at this point
Copy the full SHA d6c0600View commit details -
Configuration menu - View commit details
-
Copy full SHA for de759c1 - Browse repository at this point
Copy the full SHA de759c1View commit details -
feat(mail): add sane defaults for mail jvm settings at app level IQSS…
…#7424 We only default to no authentication. We still require people to configure an SMTP host, only in containers we do default to "smtp" as a hostname for that (see our compose file). Username/password cannot have a default and all other special settings should not be done here. These are highly setup specific.
Configuration menu - View commit details
-
Copy full SHA for 72cdde9 - Browse repository at this point
Copy the full SHA 72cdde9View commit details -
Configuration menu - View commit details
-
Copy full SHA for 02f1c3d - Browse repository at this point
Copy the full SHA 02f1c3dView commit details -
Configuration menu - View commit details
-
Copy full SHA for 1f79f57 - Browse repository at this point
Copy the full SHA 1f79f57View commit details -
Configuration menu - View commit details
-
Copy full SHA for 03b11bf - Browse repository at this point
Copy the full SHA 03b11bfView commit details -
Configuration menu - View commit details
-
Copy full SHA for ee88cfd - Browse repository at this point
Copy the full SHA ee88cfdView commit details -
build(test): enable using GenericContainer without JUnit4 around
As a hack to work around testcontainers/testcontainers-java#970, we add these fake, empty classes. Copied from Spring project. See also: testcontainers/testcontainers-java#970
Configuration menu - View commit details
-
Copy full SHA for 600d209 - Browse repository at this point
Copy the full SHA 600d209View commit details -
Configuration menu - View commit details
-
Copy full SHA for 6f6a9b7 - Browse repository at this point
Copy the full SHA 6f6a9b7View commit details -
Configuration menu - View commit details
-
Copy full SHA for c23ccde - Browse repository at this point
Copy the full SHA c23ccdeView commit details -
feat(mail): add explicit injection constructor to MailServiceBean IQS…
…S#7424 Necessary to add some integration testing, verifying sending mails actually should work.
Configuration menu - View commit details
-
Copy full SHA for eb1664f - Browse repository at this point
Copy the full SHA eb1664fView commit details -
Configuration menu - View commit details
-
Copy full SHA for 086f766 - Browse repository at this point
Copy the full SHA 086f766View commit details -
build(mail): exclude geronimo javamail spec from dependencies
If not excluded, the very old Javamail 1.4 spec is being used during local testing, obviously incompatible with Jakarta EE Mail definition. Exclusion is the only way around this, as we cannot possibly change the upstream dependencies.
Configuration menu - View commit details
-
Copy full SHA for 51af5e1 - Browse repository at this point
Copy the full SHA 51af5e1View commit details
Commits on Sep 24, 2023
-
Configuration menu - View commit details
-
Copy full SHA for 36d78fd - Browse repository at this point
Copy the full SHA 36d78fdView commit details -
Configuration menu - View commit details
-
Copy full SHA for b612e1a - Browse repository at this point
Copy the full SHA b612e1aView commit details
Commits on Oct 5, 2023
-
Configuration menu - View commit details
-
Copy full SHA for bc55587 - Browse repository at this point
Copy the full SHA bc55587View commit details -
Configuration menu - View commit details
-
Copy full SHA for c367e09 - Browse repository at this point
Copy the full SHA c367e09View commit details -
Configuration menu - View commit details
-
Copy full SHA for 4c64051 - Browse repository at this point
Copy the full SHA 4c64051View commit details -
Configuration menu - View commit details
-
Copy full SHA for 2178c83 - Browse repository at this point
Copy the full SHA 2178c83View commit details
Commits on Oct 6, 2023
-
feat(mail): make system email address configurable via MPCONFIG IQSS#…
…7424 Besides adding the JVM option, the logic to receive the setting in MailServiceBean has changed. The method signature is now returning an optional to enforce the optional nature of the setting. This replaces the "null" contract from before and requires more changes to code using the lookup.
Configuration menu - View commit details
-
Copy full SHA for 17aa5ad - Browse repository at this point
Copy the full SHA 17aa5adView commit details -
refactor(mail): make MailServiceBean use new lookup API for system ad…
…dress IQSS#7424 As we changed the lookup function to use Optional<InternetAddress> to enforce the optional nature of the setting, we now have to change the code using the function.
Configuration menu - View commit details
-
Copy full SHA for fd41607 - Browse repository at this point
Copy the full SHA fd41607View commit details -
feat(mail): provide lookup function for support mail address IQSS#7424
To ease looking up the (also optional) setting of a support team mail address, the mail service is extended with another lookup function. This is intended to replace many manual, error prone lookups, also streamlining the fall-through behavior when not set, etc.
Configuration menu - View commit details
-
Copy full SHA for 2bff977 - Browse repository at this point
Copy the full SHA 2bff977View commit details -
refactor(mail): replace manual parsing with mail service lookups IQSS…
…#7424 As we now have proper functions to lookup the mail addresses, replace manual lookup and parsing with them.
Configuration menu - View commit details
-
Copy full SHA for de2f423 - Browse repository at this point
Copy the full SHA de2f423View commit details -
style(mail): deprecate db setting for system email IQSS#7424
Document in code how to replace usages, too. (There aren't any, but in case someone is adding it again in the future, it helps to have docs)
Configuration menu - View commit details
-
Copy full SHA for 81da403 - Browse repository at this point
Copy the full SHA 81da403View commit details -
Configuration menu - View commit details
-
Copy full SHA for 59b09cb - Browse repository at this point
Copy the full SHA 59b09cbView commit details -
refactor(mail): remove unused MailUtil.parseSystemAddress IQSS#7424
As we replaced the lookups and parsing with a streamlined version of it all in MailServiceBean, we don't need this helper function anymore.
Configuration menu - View commit details
-
Copy full SHA for 7fc613f - Browse repository at this point
Copy the full SHA 7fc613fView commit details -
Configuration menu - View commit details
-
Copy full SHA for 5b418c0 - Browse repository at this point
Copy the full SHA 5b418c0View commit details -
Configuration menu - View commit details
-
Copy full SHA for 2c3e054 - Browse repository at this point
Copy the full SHA 2c3e054View commit details -
test,fix(branding): make mock adding methods lenient to avoid unneces…
…sary stub exceptions
Configuration menu - View commit details
-
Copy full SHA for 8fac0f6 - Browse repository at this point
Copy the full SHA 8fac0f6View commit details
Commits on Oct 9, 2023
-
refactor(mail): simplify MailServiceBean.sendSystemEmail IQSS#7424
- With JavaMail 1.6+, we have support for UTF-8 mail addresses and don't need to parse these ourselves - Remove some C-style coding and duplications - Make logging eat less cycles - Add missing Javadocs
Configuration menu - View commit details
-
Copy full SHA for 9c7d9b5 - Browse repository at this point
Copy the full SHA 9c7d9b5View commit details
Commits on Oct 10, 2023
-
feat(mail): enable UTF-8 mail address following RFC 6530 IQSS#7424
- Make support configurable using new setting, defaulting to true (most MTAs today should support SMTPUTF8) - If need be and an admin disables the support, make email validator deny UTF-8 chars (otherwise no mails could be sent!) - Add logging message to send method to give hint about necessary UTF-8 support everywhere in the chain - Add (extensible) integration test for MailServiceBean to check sending mails actually works
Configuration menu - View commit details
-
Copy full SHA for b970eb5 - Browse repository at this point
Copy the full SHA b970eb5View commit details -
fix(mail): lookup UTF-8 support config in static method to pick up ch…
…anged value during tests Also switch to safer lookup via codepoint comparison to 7bit = chars < 128 in favor over encoder
Configuration menu - View commit details
-
Copy full SHA for 05870d1 - Browse repository at this point
Copy the full SHA 05870d1View commit details -
Configuration menu - View commit details
-
Copy full SHA for e9abfd2 - Browse repository at this point
Copy the full SHA e9abfd2View commit details -
fix(mail): make mail configuration entirely optional IQSS#7424
Mail notification are optional (mostly to avoid setting up mail services in dev envs). Do not enforce MTA host config and do not pester logs about missing configuration.
Configuration menu - View commit details
-
Copy full SHA for 7d1ba87 - Browse repository at this point
Copy the full SHA 7d1ba87View commit details -
Configuration menu - View commit details
-
Copy full SHA for df53751 - Browse repository at this point
Copy the full SHA df53751View commit details
Commits on Oct 11, 2023
-
Configuration menu - View commit details
-
Copy full SHA for 7a23d1a - Browse repository at this point
Copy the full SHA 7a23d1aView commit details -
Configuration menu - View commit details
-
Copy full SHA for 4bfda6c - Browse repository at this point
Copy the full SHA 4bfda6cView commit details -
Configuration menu - View commit details
-
Copy full SHA for b74d60f - Browse repository at this point
Copy the full SHA b74d60fView commit details
Commits on Oct 15, 2023
-
Configuration menu - View commit details
-
Copy full SHA for 078d6d7 - Browse repository at this point
Copy the full SHA 078d6d7View commit details
Commits on Nov 8, 2023
-
Configuration menu - View commit details
-
Copy full SHA for b194263 - Browse repository at this point
Copy the full SHA b194263View commit details -
fix(mail): lookup legacy mail session programmatically IQSS#7424
Using @resource on the field triggers deployments to fail if the resource is not provided by the app server. Using a programmatic lookup, we can catch and ignore the exception.
Configuration menu - View commit details
-
Copy full SHA for 9397cc3 - Browse repository at this point
Copy the full SHA 9397cc3View commit details -
build(mail): add .map files to be included in resources IQSS#7424
Without this change, the javamail maps would not be included in the artifact and trigger error messages in the logs about them being missed. The error message will still be present as long as payara/Payara#6254 is not fixed, released and we updated to a newer version of Payara.
Configuration menu - View commit details
-
Copy full SHA for d650725 - Browse repository at this point
Copy the full SHA d650725View commit details -
feat(mail): add startup checks for mail configuration IQSS#7424
During the deployment of Dataverse we check for conditions of the mail system that might not be done as people intend to use it. We'll only issue warnings in the log messages, nothing critical here.
Configuration menu - View commit details
-
Copy full SHA for 11826d9 - Browse repository at this point
Copy the full SHA 11826d9View commit details
Commits on Jan 17, 2024
-
Configuration menu - View commit details
-
Copy full SHA for 4efef85 - Browse repository at this point
Copy the full SHA 4efef85View commit details
Commits on Feb 16, 2024
-
test(mail): add more tests for mail session producer with invalid config
Also fix minor linting with visibility of test methods.
Configuration menu - View commit details
-
Copy full SHA for 213b025 - Browse repository at this point
Copy the full SHA 213b025View commit details -
Configuration menu - View commit details
-
Copy full SHA for 7ff1e17 - Browse repository at this point
Copy the full SHA 7ff1e17View commit details
Commits on Feb 20, 2024
-
Configuration menu - View commit details
-
Copy full SHA for 084fa32 - Browse repository at this point
Copy the full SHA 084fa32View commit details -
test(mail): verify SMTP over SSL/TLS works
Adding an integration test with self-signed certificates to enable verification SMTP over SSL works.
Configuration menu - View commit details
-
Copy full SHA for 4d3904f - Browse repository at this point
Copy the full SHA 4d3904fView commit details -
Configuration menu - View commit details
-
Copy full SHA for 53e964a - Browse repository at this point
Copy the full SHA 53e964aView commit details -
style(settings): ignore SonarCube rule S115 for DB settings
The DB settings names are not compliant with usual Java enum name rules. Ignoring to avoid unnecessary clutter, hiding more important problems.
Configuration menu - View commit details
-
Copy full SHA for abcb131 - Browse repository at this point
Copy the full SHA abcb131View commit details -
doc(settings): add section on secure password storage in security sec…
…tion The section about securing your installation was missing hints about how to store and access passwords in a safe manner. Now having a single place to reference from everywhere makes the config bits for passwords much more readable, as we do not need to provide as many examples.
Configuration menu - View commit details
-
Copy full SHA for b0d268d - Browse repository at this point
Copy the full SHA b0d268dView commit details -
feat(installer): make installer use new way to apply mail MTA config
Instead of setting a DB setting, we now simply apply system properties. Also, aligned with the way the "from" address is now bound to be the system mail address, this commit removes this subtle difference in the installer as well.
Configuration menu - View commit details
-
Copy full SHA for f690c47 - Browse repository at this point
Copy the full SHA f690c47View commit details -
Configuration menu - View commit details
-
Copy full SHA for 9824425 - Browse repository at this point
Copy the full SHA 9824425View commit details -
Configuration menu - View commit details
-
Copy full SHA for 5dcaba9 - Browse repository at this point
Copy the full SHA 5dcaba9View commit details -
Configuration menu - View commit details
-
Copy full SHA for a48e860 - Browse repository at this point
Copy the full SHA a48e860View commit details -
Configuration menu - View commit details
-
Copy full SHA for 6f5cc9f - Browse repository at this point
Copy the full SHA 6f5cc9fView commit details -
Configuration menu - View commit details
-
Copy full SHA for 930fc1b - Browse repository at this point
Copy the full SHA 930fc1bView commit details
Commits on Feb 21, 2024
-
Configuration menu - View commit details
-
Copy full SHA for d82cff4 - Browse repository at this point
Copy the full SHA d82cff4View commit details
Commits on Mar 12, 2024
-
Configuration menu - View commit details
-
Copy full SHA for e11a623 - Browse repository at this point
Copy the full SHA e11a623View commit details
Commits on Mar 21, 2024
-
Configuration menu - View commit details
-
Copy full SHA for af7171e - Browse repository at this point
Copy the full SHA af7171eView commit details
Commits on Mar 22, 2024
-
Configuration menu - View commit details
-
Copy full SHA for 6b15b12 - Browse repository at this point
Copy the full SHA 6b15b12View commit details
Commits on Mar 25, 2024
-
docs(mail): apply suggestions from code review
Thanks @pdurbin! Co-authored-by: Philip Durbin <philipdurbin@gmail.com>
Configuration menu - View commit details
-
Copy full SHA for db9cd86 - Browse repository at this point
Copy the full SHA db9cd86View commit details -
Configuration menu - View commit details
-
Copy full SHA for 83d29b1 - Browse repository at this point
Copy the full SHA 83d29b1View commit details -
Merge remote-tracking branch 'origin/7424-maildefinition-ng' into 742…
…4-maildefinition-ng
Configuration menu - View commit details
-
Copy full SHA for ff3b1a1 - Browse repository at this point
Copy the full SHA ff3b1a1View commit details -
Configuration menu - View commit details
-
Copy full SHA for ac74b23 - Browse repository at this point
Copy the full SHA ac74b23View commit details -
Configuration menu - View commit details
-
Copy full SHA for f263a4e - Browse repository at this point
Copy the full SHA f263a4eView commit details -
Configuration menu - View commit details
-
Copy full SHA for caf5682 - Browse repository at this point
Copy the full SHA caf5682View commit details
Commits on Mar 26, 2024
-
fix(mail): remove duplicate JvmSettings.MAIL_MTA_HOST
The setting is already covered by the "host" property string in MailSessionProducer.
Configuration menu - View commit details
-
Copy full SHA for 362b87e - Browse repository at this point
Copy the full SHA 362b87eView commit details -
fix(mail): do not add a default for SMPT host in ct profile
As Payara 6.2023.7 still suffers from the MPCONFIG bug where a profiled setting is not easy to override, lets just remove the default for the container profile and make people add it even for containers.
Configuration menu - View commit details
-
Copy full SHA for b8ca4a7 - Browse repository at this point
Copy the full SHA b8ca4a7View commit details -
style(mail): enable more debug output from session producer
In case people want to debug Jakarta Mail, they activate dataverse.mail.debug. Let's hook into that and add more verbose output from the session producer, too. That way people can make sure everything is set up as they wish.
Configuration menu - View commit details
-
Copy full SHA for d8198b5 - Browse repository at this point
Copy the full SHA d8198b5View commit details -
Configuration menu - View commit details
-
Copy full SHA for 2a73426 - Browse repository at this point
Copy the full SHA 2a73426View commit details -
Configuration menu - View commit details
-
Copy full SHA for 21aa73d - Browse repository at this point
Copy the full SHA 21aa73dView commit details -
Configuration menu - View commit details
-
Copy full SHA for 3619371 - Browse repository at this point
Copy the full SHA 3619371View commit details -
doc(mail): add ssl.enable setting to shortlist
Also add notes about common ports in use.
Configuration menu - View commit details
-
Copy full SHA for c498ceb - Browse repository at this point
Copy the full SHA c498cebView commit details -
Merge remote-tracking branch 'origin/7424-maildefinition-ng' into 742…
…4-maildefinition-ng
Configuration menu - View commit details
-
Copy full SHA for 5d7a863 - Browse repository at this point
Copy the full SHA 5d7a863View commit details -
Configuration menu - View commit details
-
Copy full SHA for 3e9d992 - Browse repository at this point
Copy the full SHA 3e9d992View commit details -
Configuration menu - View commit details
-
Copy full SHA for 785dfc5 - Browse repository at this point
Copy the full SHA 785dfc5View commit details -
chore(build): downgrade DMP to 0.43.4
We need to downgrade to 0.43.4 again because of this regression: fabric8io/docker-maven-plugin#1756 Once they release a new version, try again.
Configuration menu - View commit details
-
Copy full SHA for 6b8b907 - Browse repository at this point
Copy the full SHA 6b8b907View commit details -
Configuration menu - View commit details
-
Copy full SHA for df48382 - Browse repository at this point
Copy the full SHA df48382View commit details -
Configuration menu - View commit details
-
Copy full SHA for cb14423 - Browse repository at this point
Copy the full SHA cb14423View commit details -
Configuration menu - View commit details
-
Copy full SHA for e784eb3 - Browse repository at this point
Copy the full SHA e784eb3View commit details