fleet/website/api/controllers
Eric 2db26cd44e
Website: Add "Explore data" (#15400)
Closes: #14847

Changes:
- Added two new pages:
- `/try-fleet/explore-data`: A page where users can select a host, and
be taken to a page where they can see query results for that host.
- `try-fleet/explore-data/:platformName/:tableName`: A page where users
can see the contents of osquery tables on hosts.
     - The view-action for this page will:
- Redirect unauthenticated users to the /try-fleet/login page. (With a
query parameter that will tell the login/register pages to redirect
users back to this page)
        - Get information for hosts on a specified team.
- Build a filtered list of osquery tables that are compatible with the
host and have queries that will run on a specified host.
- Get the latest query results for a specified query/osquery table for
the specified host, and reorder the results to match the order of the
columns in the osquery schema.
- Updated build-static-content to add information about osquery tables
for the /explore-data pages to
`sails.config.builtStaticContent.osqueryTables`.
- Added 5 new config variables:
- `sails.config.custom.fleetBaseUrlForQueryReports`: The URL of the
Fleet instance used for the /explore-data pages
- `sails.config.custom.fleetTokenForQueryReports`: An API token for the
Fleet instance used for the /explore-data pages
- `sails.config.custom.teamApidForQueryReports`: the API ID of the team
that the hosts listed on the explore-data page are in.
- `sails.config.custom.queryIdsByTableName`: A dictionary containing
key:value pairs where each key is the name of an osquery table, and the
value is the API ID of the query that gets results for this table in a
Fleet instance. This is stored in the custom configuration to make it
easily editable (If we ever need to add or remove queries
- `sails.config.custom.hostIdsByHostPlatform`: A dictionary containing
key:value pairs where each key is a type of operating system, and the
value is the API ID of a Host.
- Updated the `/try-fleet` redirect to go to `/try-fleet/explore-data`
- Updated the "try it out" button links to go to `/try-fleet`
- Updated /try-fleet/login and /try-fleet/register to send users who are
redirected to the page via the /explore-data page to the page they had
tried to navigate to when they log in/create an account.


I'm creating this as a PR as a draft. It will be ready to merge when we:
- [x] Add hosts to the "Explore data (fleetdm.com) [DO NOT DELETE]" team
- [x] Create queries for every compatible osquery table for the "Explore
data (fleetdm.com) [DO NOT DELETE]" team.
- [ ] Add a `sails.config.custom.queryIdsByTableName` config variable
with the query IDs for the queries created in the previous step
- [ ] Add `sails.config.custom.hostIdsByHostPlatform` config variable
with the real host IDs/platforms
2023-12-11 15:29:30 -06:00
..
account Website: Fleet Sandbox (#6380) 2022-08-12 17:31:01 -05:00
admin Website: Add admin page to manage the Fleet Sandbox waitlist (#13111) 2023-08-04 18:32:00 -05:00
articles Website: update meta descriptions (#12537) 2023-06-29 10:28:04 -05:00
customers Website: Update self-service license dispenser (#12987) 2023-07-27 21:11:23 -05:00
dashboard Move fleetdm.com into main Fleet repo (#83) 2020-12-02 14:48:03 -06:00
docs Website: Move docsearch public api key to config variable (#7771) 2022-09-21 18:13:47 -05:00
entrance 2023-10-24 Website: Update /try-fleet (#14638) 2023-10-20 13:59:18 -05:00
handbook Website: build handbook pages for open positions from YAML. (#13672) 2023-09-04 21:20:57 -05:00
imagine Create jamf alternative landing page (#13066) 2023-08-01 18:03:10 -04:00
legal Move fleetdm.com into main Fleet repo (#83) 2020-12-02 14:48:03 -06:00
reports Website: Add state of device management (#5936) 2022-06-01 10:31:10 -05:00
try-fleet Website: Add "Explore data" (#15400) 2023-12-11 15:29:30 -06:00
webhooks 2023-11-21 Website: Add new usage statistics (#15263) 2023-12-01 17:59:41 -06:00
create-or-update-one-newsletter-subscription.js Website: Add Newsletter banner and NewsletterSubscription model (#7370) 2022-09-02 17:38:34 -05:00
create-vanta-authorization-request.js Website: Add Vanta integration (#9072) 2022-12-21 23:39:39 -06:00
deliver-apple-csr.js Website: Change APNS CSR email attachment filename (#10682) 2023-03-22 19:30:39 -05:00
deliver-contact-form-message.js Website: Fleet Sandbox (#6380) 2022-08-12 17:31:01 -05:00
deliver-demo-signup.js Add Q&A signup form to Fleet homepage (#4224) 2022-02-16 11:15:55 +09:00
deliver-mdm-beta-signup.js Website: Update MDM beta signup form (#9306) 2023-01-13 13:48:05 -06:00
deliver-mdm-demo-email.js Website: Add MDM demo video modal to /device-management (#12380) 2023-06-16 15:08:24 -05:00
deliver-premium-upgrade-form.js Website: Add Fleet Premium landing page (#9572) 2023-02-01 08:53:09 +09:00
download-rss-feed.js Website: Add RSS feeds for articles (#9526) 2023-01-27 16:58:53 -06:00
download-sitemap.js 2023-10-24 Website: Update /try-fleet (#14638) 2023-10-20 13:59:18 -05:00
unsubscribe-from-all-newsletters.js Website: Add Newsletter banner and NewsletterSubscription model (#7370) 2022-09-02 17:38:34 -05:00
view-compliance.js create new landing page called /compliance (#9787) 2023-02-14 08:06:02 +09:00
view-connect-vanta.js Website: Add Vanta integration (#9072) 2022-12-21 23:39:39 -06:00
view-contact.js Move fleetdm.com into main Fleet repo (#83) 2020-12-02 14:48:03 -06:00
view-faq.js Move fleetdm.com into main Fleet repo (#83) 2020-12-02 14:48:03 -06:00
view-fleet-mdm.js Website: Add MDM page (#9264) 2023-01-11 11:29:38 -06:00
view-fleetctl-preview.js 2023-10-24 Website: Update /try-fleet (#14638) 2023-10-20 13:59:18 -05:00
view-homepage-or-redirect.js Add customer portal and license dispenser to fleetdm.com (#3546) 2022-01-04 20:02:42 -06:00
view-integrations.js Website: Add integrations page (#14128) 2023-10-05 08:52:19 +09:00
view-landing.js Website: add landing page (#5095) 2022-04-13 15:12:56 +09:00
view-osquery-management.js created-osquery-management-landpage (#10207) 2023-03-01 16:09:07 -08:00
view-osquery-table-details.js Website: Add Docsearch to /tables pages (#9517) 2023-01-26 14:48:39 -06:00
view-press-kit.js Add fleetdm.com/press-kit (#1981) 2021-09-10 06:56:29 +09:00
view-pricing.js Website: Update pricing features yaml and pricing page. (#15294) 2023-11-22 18:33:32 -06:00
view-query-detail.js Dynamic titles for documentation, query, and handbook pages (#2298) 2021-09-30 21:14:02 -05:00
view-query-library.js Obviate doc-templater dependency + dynamic sitemap.xml (#827) 2021-05-26 03:24:38 -05:00
view-support.js Website: add /support page (#12457) 2023-06-23 18:06:04 -05:00
view-transparency.js Launch transparency page for fleetdm.com (#1391) 2021-07-15 09:48:21 -05:00
view-upgrade.js Website: Add Fleet Premium landing page (#9572) 2023-02-01 08:53:09 +09:00
view-vanta-authorization.js Website: Add Vanta integration (#9072) 2022-12-21 23:39:39 -06:00
view-vulnerability-management.js Add vulnerability management page (#11957) 2023-05-30 09:42:21 +09:00