fleet/changes
Lucas Manuel Rodriguez 40265d0e6f
Fix SMTP e-mail send when SMTP server has credentials (#10758)
#9609

This PR also fixes #10777.

The issue is: We were using `svc.AppConfig` instead of
`svc.ds.AppConfig` to retrieve the SMTP credentials.
`svc.AppConfig` obfuscates credentials, whereas `svc.ds.AppConfig` does
not.
To help prevent this from happening again I've renamed `svc.AppConfig`
to `svc.AppConfigObfuscated`.
I've also added a new test SMTP server
(https://github.com/axllent/mailpit) that supports Basic Authentication
and tests that make use of it to catch these kind of bugs (the tests are
executed when running `go test` with `MAIL_TEST=1`).

- [X] Changes file added for user-visible changes in `changes/` or
`orbit/changes/`.
See [Changes
files](https://fleetdm.com/docs/contributing/committing-changes#changes-files)
for more information.
- ~[ ] Documented any API changes (docs/Using-Fleet/REST-API.md or
docs/Contributing/API-for-contributors.md)~
- ~[ ] Documented any permissions changes~
- ~[ ] Input data is properly validated, `SELECT *` is avoided, SQL
injection is prevented (using placeholders for values in statements)~
- ~[ ] Added support on fleet's osquery simulator `cmd/osquery-perf` for
new osquery data ingestion features.~
- [X] Added/updated tests
- [X] Manual QA for all new/changed functionality
  - ~For Orbit and Fleet Desktop changes:~
- ~[ ] Manual QA must be performed in the three main OSs, macOS, Windows
and Linux.~
- ~[ ] Auto-update manual QA, from released version of component to new
version (see [tools/tuf/test](../tools/tuf/test/README.md)).~
2023-03-28 15:23:15 -03:00
..
.keep Issue 1009 calculate diff software (#1305) 2021-07-08 13:57:43 -03:00
8957-allow-prometheus-without-http-basic-auth Allow prometheus /metrics endpoint with http basic auth disabled (#10634) 2023-03-23 19:00:11 -03:00
9609-fix-smtp-email-send Fix SMTP e-mail send when SMTP server has credentials (#10758) 2023-03-28 15:23:15 -03:00
9834-vulnerability-publishe-date-column UI: Add column for published date to Vulnerabilities table (#10656) 2023-03-23 09:32:32 -07:00
10038-consistent-empty-cell-coloring UI: Ensure TextCell is always greyed when no value passed in (#10696) 2023-03-23 09:32:46 -07:00
10257-remove-issuer-uri UI: Remove unused 'Issuer URI' field from UI (#10766) 2023-03-27 10:31:30 -07:00
10328-clipped-icons UI: Fix SVG cutoff at certain zooms (#10607) 2023-03-23 09:31:33 -07:00
10651-misaligned-icon UI: adjust icon style to bring into alignment (#10730) 2023-03-24 09:31:43 -07:00
10746-remove-mdm-feature-flags remove feature flags to enable MDM (#10746) 2023-03-27 16:30:29 -03:00
issue-9434-implement-api-for-disk-encryption-aggregate Feat/implement api for disk encryption status aggregate (#10422) 2023-03-28 15:50:14 +01:00
issue-10122-trigger-update-host-profiles-status Update host MDM profile status to pending in response to triggering events (#10443) 2023-03-27 14:43:01 -04:00
issue-10408-document-mdm-settings Normalize the naming of mdm settings, update docs and document missing ones (#10681) 2023-03-23 07:30:28 -03:00
issue-10778-webscokets-unsafe-origin add configuration to disable origin header check (#10779) 2023-03-28 01:23:29 -04:00