fleet/server/mail
Lucas Manuel Rodriguez 2a532ede94
Do not return empty SSO and SMTP settings for non-global-admins (#12180)
#11266

PS: I first attempted a serialization trick by introducing a new
`appConfigResponse` and implementing `json.Marshal` to exclude these
fields but it was too hacky and hard to maintain moving forward, so I'm
bitting the bullet now. Happy to hear other ideas.

- [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-06-07 16:06:36 -03:00
..
templates update copyright year in core product transactional email templates (#3549) 2022-01-01 12:41:32 -06:00
invite.go Add v4 suffix in go.mod (#1224) 2021-06-25 21:46:51 -07:00
mail_test.go Do not return empty SSO and SMTP settings for non-global-admins (#12180) 2023-06-07 16:06:36 -03:00
mail.go Do not return empty SSO and SMTP settings for non-global-admins (#12180) 2023-06-07 16:06:36 -03:00
ses_test.go Do not return empty SSO and SMTP settings for non-global-admins (#12180) 2023-06-07 16:06:36 -03:00
ses.go Do not return empty SSO and SMTP settings for non-global-admins (#12180) 2023-06-07 16:06:36 -03:00
users.go Allow import of github.com/kolide/fleet (#2213) 2020-03-29 19:22:04 -07:00