Commit Graph
12476 Commits
Author SHA1 Message Date
Benjamin Edwards 2f38625190 ensure strict configuration outputs for terraform logging destination modules (#19807) 2024-06-17 16:02:33 -04:00
Martin Angers 4b2919e5da Attempt fix of failure to remove non-empty test directory (#19799) 2024-06-17 14:57:45 -04:00
Eric e2ab9a2fe8 Website: Update Vanta authorization URL when a redirect URL is specified (#19798)
Closes: https://github.com/fleetdm/confidential/issues/6069

Changes:
- Added a new route going to the create-vanta-authorization-request
action: `/api/v1/create-external-vanta-authorization-request`
- Added a new input to the create-vanta-authorization-request action:
`sharedSecret` - A secret that must match
`sails.config.custom.sharedSecretForExternalVantaRequests` when an
external request is made to the
`/api/v1/create-external-vanta-authorization-request` endpoint
- Updated the authorization URL returned by the
create-vanta-authorization-request endpoint
- Updated the redirect in the view-vanta-authorization endpoint (if a
redirect URL is provided) to not use res.redirect() (it causes 500
errors) when redirecting users.
2024-06-17 13:28:39 -05:00
Jacob ShandlingandJacob Shandling 15965a0bfd UI – Replace ReactTooltip with TooltipWrapper in 2 places (#19743)
Addresses #19300 


- [x] Changes file added for user-visible changes in `changes/`, 
- [x] Manual QA for all new/changed functionality

---------

Co-authored-by: Jacob Shandling <jacob@fleetdm.com>
2024-06-17 10:47:24 -07:00
JD 676a6fba96 Fixed mysql password error (#19796)
Fix mysql password error
2024-06-17 10:25:55 -07:00
Victor Lyuboslavsky 2350ffdf49 Added host_issues (#19654)
* /api/latest/fleet/hosts now returns `critical_vulnerabilities_count`
for premium users. This data is held in the new `host_issues` table. The
failing policies total is updated in real-time, while the critical
vulnerabilities total is updated every hour after vulnerabilities job.
* /api/latest/fleet/hosts can be sorted by total_issues_count by
specifying `order_key=issues` query parameter.

#18115

Video commentary:
https://www.loom.com/share/ff4425e217db43d6b3ba4aa075374808

@getvictor TODO: Replacing `disable_failing_policies` with
`disable_issues` will be done in a separate PR.

# Checklist for submitter

If some of the following don't apply, delete the relevant line.

<!-- Note that API documentation changes are now addressed by the
product design team. -->

- [x] Changes file added for user-visible changes in `changes/`,
`orbit/changes/` or `ee/fleetd-chrome/changes`.
See [Changes
files](https://fleetdm.com/docs/contributing/committing-changes#changes-files)
for more information.
- [x] Added/updated tests
- [x] If database migrations are included, checked table schema to
confirm autoupdate
- For database migrations:
- [x] Checked schema for all modified table for columns that will
auto-update timestamps during migration.
- [x] Confirmed that updating the timestamps is acceptable, and will not
cause unwanted side effects.
- [x] Ensured the correct collation is explicitly set for character
columns (`COLLATE utf8mb4_unicode_ci`).
- [x] Manual QA for all new/changed functionality
2024-06-17 12:15:42 -05:00
Tim Lee b137bcbef2 Hotfix - Vuln matching race (#19786) 2024-06-17 11:02:47 -06:00
Victor Lyuboslavsky c3efefa44a Updated locked_host activity docs. (#19792)
#19545
Updated locked_host activity docs.
2024-06-17 11:54:56 -05:00
Victor Lyuboslavsky 05547a5130 Added view_pin param. (#19788)
#19545

`/api/latest/fleet/hosts/:id/lock` returns `unlock_pin` for Apple hosts
when query parameter `view_pin=true` is set

The lock host activity now has a `view_pin` parameter. Frontend change
is needed to reflect this in the UI.

# Checklist for submitter

<!-- Note that API documentation changes are now addressed by the
product design team. -->

- [x] Changes file added for user-visible changes in `changes/`,
`orbit/changes/` or `ee/fleetd-chrome/changes`.
See [Changes
files](https://fleetdm.com/docs/contributing/committing-changes#changes-files)
for more information.
- [x] Added/updated tests
- [x] Manual QA for all new/changed functionality
2024-06-17 11:30:53 -05:00
RachelElysia 11a1c58094 [unreleased bug 19090] Fleet UI: Fix where platform causes incorrect count (#19787) 2024-06-17 11:36:56 -04:00
Jahziel Villasana-Espinoza cc96b3372a fix: do not abort MDM ingestion flow if IdP id not found (#19776)
> Related issue: #19612

# Checklist for submitter

If some of the following don't apply, delete the relevant line.

<!-- Note that API documentation changes are now addressed by the
product design team. -->

- [x] Changes file added for user-visible changes in `changes/`,
`orbit/changes/` or `ee/fleetd-chrome/changes`.
See [Changes
files](https://fleetdm.com/docs/contributing/committing-changes#changes-files)
for more information.
- [x] Added/updated tests
- [x] Manual QA for all new/changed functionality
2024-06-17 10:03:13 -04:00
RachelElysia 85a5c6eecb Fleet UI: Update software empty states (#19744) 2024-06-17 09:57:03 -04:00
Mike McNeil 58b982c01e Website: Fix unchanged dupes in homepage.ejs (#19782)
# Checklist for submitter

If some of the following don't apply, delete the relevant line.

<!-- Note that API documentation changes are now addressed by the
product design team. -->

- [ ] Changes file added for user-visible changes in `changes/`,
`orbit/changes/` or `ee/fleetd-chrome/changes`.
See [Changes
files](https://fleetdm.com/docs/contributing/committing-changes#changes-files)
for more information.
- [ ] 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.
- [ ] Added/updated tests
- [ ] If database migrations are included, checked table schema to
confirm autoupdate
- For database migrations:
- [ ] Checked schema for all modified table for columns that will
auto-update timestamps during migration.
- [ ] Confirmed that updating the timestamps is acceptable, and will not
cause unwanted side effects.
- [ ] Ensured the correct collation is explicitly set for character
columns (`COLLATE utf8mb4_unicode_ci`).
- [ ] 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)).
2024-06-17 08:39:24 -05:00
Roberto Dip 1cc13a09fb 🧹 friday cleanup party: substitute deprecated import of go-kit (#19774)
`go-kit/kit/log` was deprecated and generating warnings

# Checklist for submitter

If some of the following don't apply, delete the relevant line.

<!-- Note that API documentation changes are now addressed by the
product design team. -->

- [x] Manual QA for all new/changed functionality
2024-06-17 10:27:31 -03:00
Mike McNeil 38cf822ee1 Website: Typofix + clarifications for security use cases (#19780) 2024-06-17 08:13:53 -05:00
Eric 30f90c8216 Website: Remove "explore data" pages (#19777)
Related to: https://github.com/fleetdm/confidential/issues/5573

Changes:
- Deleted /explore-data pages and related files
- Added redirects for removed pages.
- Removed all explore data related website configuration in the
build-static-content script.
- Removed the explore data section of the custom configuration.
2024-06-14 17:50:07 -05:00
Eric 52ff031e98 Website: Add error handler middleware function to http config. (#19703)
Closes: #19679

Changes:
- Added a custom error handler to the HTTP middleware that returns a
416: Range Not Satisfiable if the serve-static middleware throws a
'Range Not Satisfiable' error.
2024-06-14 17:35:21 -05:00
Roberto Dip 48ea95385e final adjustments to return timeout errors for software (#19772)
for #19453


![image](https://github.com/fleetdm/fleet/assets/4419992/c9849cf4-ea78-4393-8693-8ff8ea612221)

I don't know how to test this in the server without a significant
refactor.

# Checklist for submitter

If some of the following don't apply, delete the relevant line.

<!-- Note that API documentation changes are now addressed by the
product design team. -->

- [ ] Added/updated tests
- [x] Manual QA for all new/changed functionality
2024-06-14 18:39:03 -03:00
Brock Walters 7fb3d12477 Update sip_config.yml (#19747)
Update sip_config table per #16993
2024-06-14 17:34:02 -04:00
Eric 614de6740c Update tools api DRI and maintainers (#19770)
Closes: #19350

Changes:
- Added maintainers and a DRI for the `/tools/api` folder
2024-06-14 16:07:20 -05:00
Rachael Shaw 5919ee67ac Handbook: Fix link (#19773) 2024-06-14 16:03:45 -05:00
Isabell Reedy a0eb024b6a Update inform managers about hours worked (#19716)
Main changes: 
1. Add step to ensure KPIs are consistent with HRIS portal (sometimes
hours get logged later on Friday if teammates work after hours are
approved)
2. Slightly later deadline for collecting hours so there are less
discrepancies on Monday
3. Slight reformatting for clarity
2024-06-14 16:01:43 -05:00
Dante Catalfamo 72dd25c9cb Disable mdm_bridge table on Windows Server (#19709)
#19239
2024-06-14 16:56:58 -04:00
JD 0808721725 Article: Sysadmin diaries: restoring fleetd (#19768)
Article: Sysadmin diaries: restoring fleetd
https://github.com/fleetdm/confidential/issues/6088
2024-06-14 13:37:56 -07:00
Roberto Dip 417b2ce9d8 fix condition to show host actions in details page (#19769)
unreleased bug caused by a bad merge conflict resolution.
2024-06-14 16:49:36 -03:00
Dave HerderandRachael Shaw bb6ee46987 fix a broken link in MDM-setup section (#19756)
Co-authored-by: Rachael Shaw <r@rachael.wtf>
2024-06-14 12:17:33 -07:00
Drew Baker f6bd08c659 Replace system maintenance background (#19765) 2024-06-14 14:45:23 -04:00
Roberto Dip b01389ad31 don't rely on MDM solution name to know if the host has Fleet MDM on (#19688)
for #18977

# Checklist for submitter

If some of the following don't apply, delete the relevant line.

<!-- Note that API documentation changes are now addressed by the
product design team. -->

- [x] Changes file added for user-visible changes in `changes/`,
`orbit/changes/` or `ee/fleetd-chrome/changes`.
See [Changes
files](https://fleetdm.com/docs/contributing/committing-changes#changes-files)
for more information.
- [x] Input data is properly validated, `SELECT *` is avoided, SQL
injection is prevented (using placeholders for values in statements)
- [x] Added/updated tests
- [x] Manual QA for all new/changed functionality
2024-06-14 15:01:12 -03:00
Ikko Eltociear Ashimine 682cbbbe36 chore: update deployment.yaml (#19763) 2024-06-14 10:49:48 -07:00
Sarah Gillespie 5a95911303 Improve error messages for parsing MDM config profiles via fleetctl (#19495) 2024-06-14 12:48:00 -05:00
Lucas Manuel Rodriguez 567e93baee Wipe support for iPhone/iPad (#19733)
#19010
2024-06-14 14:25:54 -03:00
RachelElysia 35a467b7e0 Fleet UI: Refactor client filtered counts for cleaner rendering (#19689) 2024-06-14 13:12:56 -04:00
Robert Fairburn 21207dab81 Disable osquery sidecar dogfood (#19764) 2024-06-14 10:10:03 -07:00
Marko Lisica 236535d526 Redirection for host identifiers docs (#19762)
Redirection needed for CLI in this story: #19127
2024-06-14 18:51:25 +02:00
Gabriel Hernandez a453d4ad36 add better messaging for 504 responses in fleetctl when running a script synchronously (#19680)
relates to #19378

This adds better error messaging in fleetctl for a 504 response (Gateway
timeout) when we run a script synchronously.


- [ ] Changes file added for user-visible changes in `changes/`,
`orbit/changes/` or `ee/fleetd-chrome/changes`.
- [ ] Added/updated tests
- [x] Manual QA for all new/changed functionality
2024-06-14 17:07:08 +01:00
Lucas Rodriguez f65f1d245f Fix merge main 2024-06-14 12:52:41 -03:00
Lucas Rodriguez 63a6bb8bf3 Merge branch 'main' into feature_19010-ipad-ios-lock-wipe 2024-06-14 12:45:47 -03:00
Sharon Katz 5d93f27f20 use reader for stats (#19398)
# Checklist for submitter

If some of the following don't apply, delete the relevant line.

<!-- Note that API documentation changes are now addressed by the
product design team. -->

- [x] Changes file added for user-visible changes in `changes/`,
`orbit/changes/` or `ee/fleetd-chrome/changes`.
See [Changes
files](https://fleetdm.com/docs/contributing/committing-changes#changes-files)
for more information.



@xpkoala the main things to QA:

- Statistics should be sent by the server to our Heroku service.
- The should be a theoretical small improvement to DB load (using the
reader instance instead of the writer). Not sure it will be measureable.
2024-06-14 11:34:39 -04:00
Lucas Manuel Rodriguez 904e8a6825 Added server_settings.query_report_cap (#19692)
#19600

- [X] Changes file added for user-visible changes in `changes/`,
`orbit/changes/` or `ee/fleetd-chrome/changes`.
See [Changes
files](https://fleetdm.com/docs/contributing/committing-changes#changes-files)
for more information.
- [X] Added/updated tests
- [X] Manual QA for all new/changed functionality
2024-06-14 12:24:01 -03:00
Roberto Dip f62d5eda20 use Fleet instead of FleetDM in certificates (#19748)
for #18427

# Checklist for submitter

If some of the following don't apply, delete the relevant line.

<!-- Note that API documentation changes are now addressed by the
product design team. -->

- [x] Changes file added for user-visible changes in `changes/`,
`orbit/changes/` or `ee/fleetd-chrome/changes`.
See [Changes
files](https://fleetdm.com/docs/contributing/committing-changes#changes-files)
for more information.
- [x] Added/updated tests
- [ ] Manual QA for all new/changed functionality
2024-06-14 11:08:49 -03:00
Victor Lyuboslavsky 8921cfe537 Code review fixes. (#19755)
Fixes from #19720 code review
2024-06-14 07:08:54 -05:00
Victor Lyuboslavsky 8b84b06a86 /api/latest/fleet/hosts/:id/lock returns unlock_pin for Apple hosts (#19720)
/api/latest/fleet/hosts/:id/lock returns `unlock_pin` for Apple hosts
#19545 
# Checklist for submitter

If some of the following don't apply, delete the relevant line.

<!-- Note that API documentation changes are now addressed by the
product design team. -->

- [x] Changes file added for user-visible changes in `changes/`,
`orbit/changes/` or `ee/fleetd-chrome/changes`.
See [Changes
files](https://fleetdm.com/docs/contributing/committing-changes#changes-files)
for more information.
- [x] Added/updated tests
- [x] Manual QA for all new/changed functionality
2024-06-14 06:58:17 -05:00
Eric 9cd452e8d5 Website: Update Vanta integration (#19349)
Closes: https://github.com/fleetdm/confidential/issues/6069

Changes:
- Added a new action to add support for the Vanta integration to be set
up from a partners website. This action sets the required cookies
provided via queryString and redirects users to the Vanta authorization
page.
- Updated the `create-vanta-authorization-request` action to redirect
users who provide a `redirectToExternalPageAfterAuthorization` value the
new endpoint instead of returning a vanta authorization URL.
- Updated `view-vanta-authorization` to redirect users to the URL
provided to the `create-vanta-authorization-request` endpoint (if one
was provided)
2024-06-14 07:40:49 -04:00
Brock WaltersandEric 93ba31ebef Create scheduled_tasks.yml (#19739)
Create scheduled_tasks table per #16993

---------

Co-authored-by: Eric <eashaw@sailsjs.com>
2024-06-13 23:01:05 -04:00
Brock Walters faa673634b Update programs.yml (#19742)
Added link for the choclately_pacakages table
2024-06-13 20:50:07 -04:00
Brock Walters 9d453280b5 Update safari_extensions.yml (#19738)
Update safari_extensions table per #16993
2024-06-13 20:47:54 -04:00
Brock Walters dd73758ebc Update software_update.yml (#19714)
Updates to software_update per #16993
2024-06-13 19:46:41 -04:00
Brock WaltersandEric db8e16bf66 Create patches.yml (#19700)
Create patches.yml per #16993

---------

Co-authored-by: Eric <eashaw@sailsjs.com>
2024-06-13 19:29:37 -04:00
Lucas Manuel Rodriguez 60b233e5f7 Return token when creating API-only users (#19525)
#16961

API changes here: https://github.com/fleetdm/fleet/pull/17609/files

- [X] Changes file added for user-visible changes in `changes/`,
`orbit/changes/` or `ee/fleetd-chrome/changes`.
See [Changes
files](https://fleetdm.com/docs/contributing/committing-changes#changes-files)
for more information.
- [X] Added/updated tests
- [X] Manual QA for all new/changed functionality
2024-06-13 19:10:27 -03:00
Eric bcf3052117 Website: Send analytics events (#19745)
Related to: #19603 

Changes:
- Updated the contact page to send an event (`website_contact_forms`) to
Google Analytics when a user submits the form
- Update the signup page to send an event (`website_sign_up`) to Google
Analytics when a user signs up
- Updated the swag request button in the docs to send an event
(`website_swag_request`) to Google Analytics when a user visits the swag
request typeform.
2024-06-13 17:07:14 -05:00