fleet/website/assets
Eric 4fd1efe98a
Website: Add API to send signed CSR emails (#8408)
This pull request relies on the `mdm-gen-cert` command from
https://github.com/fleetdm/fleet/pull/8884.
Closes: https://github.com/fleetdm/fleet/issues/8223

Changes:
- Updated the deploy Fleet website workflow to:
   - Add Go as a dependency
   - Build the mdm-gen-cert binary in `/website/.tools/`
   - add the `/.tools/` folder to the Heroku app
- Added `deliver-apple-csr.js` -  an API that:
- can be called by making a `POST` request to
`/api/v1/deliver-apple-csr`
   - accepts `csr` as an input
- runs the `mdm-gen-cert` command with the `csr` set as an environment
variable
- returns an `invalidEmailDomain` response if the user's email domain is
in the array of banned email domains.
- saves the users organization and email address to the website's
database
- Sends an email to the requesting user's email address with the signed
CSR attached as a text file named `apple-apns-request.txt`
   - Posts a message to a channel in the Fleet Slack.
- Added a new model: `CertificateSigningRequests` that contains two
required attributes: `emailAddress` and `organization`
- Added a new email template `email-signed-csr-for-apns`
- Updated routes, policies, eslintrc, and rebuilt cloud-sdk


Before this can be merged, we will need to:
- [x] Add new config variables in Heroku
   - [x] `sails.config.custom.mdmVendorCertPem` 
   - [x] `sails.config.custom.mdmVendorKeyPem`
   - [x] `sails.config.custom.mdmVendorKeyPassphrase`
   - [x] `sails.config.custom.slackWebhookUrlForMDMSignups`
- [x] Add the `CertificateSigningRequests` model to the website's
database
2023-01-19 14:43:14 -06:00
..
dependencies Add Nunito sans bold italic (#7953) 2022-09-26 15:29:49 -05:00
fonts Add Nunito sans bold italic (#7953) 2022-09-26 15:29:49 -05:00
images Website: Add API to send signed CSR emails (#8408) 2023-01-19 14:43:14 -06:00
js Website: Add API to send signed CSR emails (#8408) 2023-01-19 14:43:14 -06:00
pdfs Update Fleet.report.-.State.of.device.management.pdf (#6344) 2022-06-23 11:45:36 -05:00
resources/security-awareness Adding first draft of security awareness (#5527) 2022-09-01 11:48:43 -05:00
styles Website: Update MDM beta signup form (#9306) 2023-01-13 13:48:05 -06:00
templates Move fleetdm.com into main Fleet repo (#83) 2020-12-02 14:48:03 -06:00
.eslintrc Website: Add API to send signed CSR emails (#8408) 2023-01-19 14:43:14 -06:00
favicon.ico Updated favicon (#8358) 2022-10-20 12:13:51 -05:00
logo.png Move fleetdm.com into main Fleet repo (#83) 2020-12-02 14:48:03 -06:00
logo.png.README.md Move fleetdm.com into main Fleet repo (#83) 2020-12-02 14:48:03 -06:00