Commit Graph
14272 Commits
Author SHA1 Message Date
Harrison RavazzoloandRachael Shaw b1cabd20ee Update deploy-fleet Guide (#23561)
Adding a clarifying point to the AWS deploy docs.

---------

Co-authored-by: Rachael Shaw <r@rachael.wtf>
2024-11-06 12:01:04 -06:00
RachelElysia 576dcff1a7 Fleet UI: Add script content modal to UI in various places (#23461) 2024-11-06 12:48:11 -05:00
Jahziel Villasana-Espinoza a23980347b feat: initial readme for cron jobs (#23563)
We discussed at backend sync today (2024-11-05) that we'd like to start
adding READMEs in the codebase for very tactical documentation.

This is an inital README for the cron/scheduling machinery.
2024-11-06 09:13:45 -05:00
github-actions[bot]andlucasmrod 309534038e Update versions of fleetd components in Fleet's TUF [automated] (#23568)
Automated change from [GitHub
action](https://github.com/fleetdm/fleet/actions/workflows/fleetd-tuf.yml).

Co-authored-by: lucasmrod <lucasmrod@users.noreply.github.com>
2024-11-06 08:54:54 -03:00
Sam Pfluger c0a9021179 Add redirects for security (#23570) 2024-11-06 01:01:29 -06:00
Eric f43196b0a9 Website: add CTA to article template and update handbook cta (#23560)
Related to: https://github.com/fleetdm/confidential/issues/8673

Changes:
- Added a CTA to the sidebar on the article template page
- Updated the hover state on the CTA on the handbook sidebar
2024-11-06 10:44:29 +09:00
Eric 0893acaa89 Website: Fix responsibilities list showing up on non departmental handbook page. (#23546)
Closes: #23504

Changes:
- Updated the handbook page script to make sure lists of
responsibilities only appear on departmental handbook pages.
2024-11-05 18:20:47 -06:00
github-actions[bot]andRachelElysia bf4ba76e02 Fleet UI: Update osquery version options (#23567)
Automated update of MIN_OSQUERY_VERSION_OPTIONS with any new osquery
release. (Note: This automatic update is the solution to issue #21431)

Co-authored-by: RachelElysia <RachelElysia@users.noreply.github.com>
2024-11-05 18:12:11 -06:00
Rachael Shaw e892a826ee Simplify "How can I uninstall fleetd?" answer (#23547)
Link to uninstall fleetd guide to avoid duplicate content
2024-11-05 17:48:04 -06:00
Eric 245c9c6f7a Website: Add ability to directly link to a filtered pricing page view. (#23549)
Closes: https://github.com/fleetdm/confidential/issues/8672

Changes:
- Updated the pricing page script to switch the pricing table to a
different buying mode if a user visits /pricing#it or /pricing#security
2024-11-05 17:45:20 -06:00
Victor Lyuboslavsky ea8b58a356 Store/retrieve Fleet URL and enroll secret when MDM profile has been removed (#23559)
#23438

# Demo
<div>
<a href="https://www.loom.com/share/d5c0340512df49acba1f5412789f145b">
<p>[Demo] fleetd connecting to Fleet server when MDM profiles removed
(#23438) - Watch Video</p>
    </a>
<a href="https://www.loom.com/share/d5c0340512df49acba1f5412789f145b">
<img style="max-width:300px;"
src="https://cdn.loom.com/sessions/thumbnails/d5c0340512df49acba1f5412789f145b-6688b64fea2e09ca-full-play.gif">
    </a>
  </div>

# Checklist for submitter
- [x] Changes file added for user-visible changes in `changes/`,
`orbit/changes/` or `ee/fleetd-chrome/changes`.
See [Changes
files](https://github.com/fleetdm/fleet/blob/main/docs/Contributing/Committing-Changes.md#changes-files)
for more information.
- [x] Manual QA for all new/changed functionality
- For Orbit and Fleet Desktop changes:
- [x] Orbit runs on macOS, Linux and Windows. Check if the orbit
feature/bugfix should only apply to one platform (`runtime.GOOS`).
- [x] Manual QA must be performed in the three main OSs, macOS, Windows
and Linux.
- [x] Auto-update manual QA, from released version of component to new
version (see [tools/tuf/test](../tools/tuf/test/README.md)).
2024-11-05 16:53:09 -06:00
Eric 6065fa5d77 Website: Set psychologicalStageChangeReason and intentSingals on contacts created from newsletter submissions (#23544)
Closes: https://github.com/fleetdm/confidential/issues/8690
Closes: https://github.com/fleetdm/confidential/issues/8691

Changes:
- Updated the update-or-create-contact-and-account to set intentSignals
on contacts
- Updated create-or-update-one-newsletter-subscription to set
psychologicalStageChangeReason and intentSignal on contacts.
2024-11-05 16:02:34 -06:00
jacobshandlingandJacob Shandling dfe308f98d Frontend - fix flakey frontend test (#23408)
Passed 5/5 runs of test-js with no flakes

- [x] Added/updated tests

Co-authored-by: Jacob Shandling <jacob@fleetdm.com>
2024-11-05 10:16:08 -08:00
Victor Lyuboslavsky 5eb88d13ce Fix flaky TestLifecycleSCEPExpiration test. (#23534)
#20936

# Checklist for submitter
- [x] Added/updated tests
2024-11-05 12:06:21 -06:00
Victor Lyuboslavsky 3cf99f8039 Enable staticcheck Go linter. (#23487)
#23486 

Linter: https://staticcheck.dev/
2024-11-05 11:16:24 -06:00
EricandIan Littman 3bfbc5654c Website: Update Vanta script for Fleet's integration (#23514)
Related to: https://github.com/fleetdm/fleet/issues/19312

Changes:
- Updated the send-data-to-vanta script to exclude hosts on a specific
team when it runs for Fleet's Vanta integration.

---------

Co-authored-by: Ian Littman <iansltx@gmail.com>
2024-11-05 11:02:27 -06:00
Martin Angers 2f54879f2a Bugfix: config profile deployment based on label exclusion (#23533) 2024-11-05 11:58:31 -05:00
dependabot[bot] dad4414ac5 Bump github.com/golang-jwt/jwt/v4 from 4.5.0 to 4.5.1 (#23515) 2024-11-05 10:49:49 -06:00
Gabriel Hernandez 73d287eaeb update msw (mock service worker) package to 2.5.1 (#23480)
relates to #23128

updates mock service worker package as it was using a version of
`path-to-regexp` that had a high security vulnerability. This updated
version of msw uses a newer version of the package that does not have
this vulnerability

I had to add the `jest-fixed-dom` package to update msw as well as
update our version of typescript to 4.7
2024-11-05 10:13:30 -06:00
Ian Littman 257fc8590d Expose counts_updated_at on software title by-ID endpoint, show in UI (#23478)
#22269

# 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://github.com/fleetdm/fleet/blob/main/docs/Contributing/Committing-Changes.md#changes-files)
for more information.
- [x] Added/updated tests
- [x] Manual QA for all new/changed functionality
2024-11-05 09:54:02 -06:00
Victor Lyuboslavsky 9e1c451e2b Fully deleting pending host. (#23503)
#23204 

When deleting Pending hosts, using the standard `ds.DeleteHosts` method.
This seems cleaner and more scalable than trying to handle every host
table in cleanups cron.

# Checklist for submitter

- [x] Added/updated tests
- [x] Manual QA for all new/changed functionality
2024-11-05 09:47:28 -06:00
Gabriel Hernandez 53dc33d7d6 add message to ui for cloud customers for windows auto enrollment (#23481)
relates to #21633

This adds an info banner for cloud customers to help them with their
Windows autoenrollment setup.


![image](https://github.com/user-attachments/assets/57b5e966-2b37-40eb-b85c-632ea107e624)

- [x] Changes file added for user-visible changes in `changes/`,
`orbit/changes/` or `ee/fleetd-chrome/changes`.
- [x] Manual QA for all new/changed functionality
2024-11-05 15:25:10 +00:00
Ian Littman a2468fa0b4 Re-enable TestCronVulnerabilitiesCreatesDatabasesPath test with more precise SUT and internal panic recovery (#23468)
#23258 (see
[comment](https://github.com/fleetdm/fleet/issues/23258#issuecomment-2443304838)
for rationale)

Validated by removing the two places that would create the directory
(early in scanVulnerabilities in cron.go, partway through download in
download.go) and ensuring the test failed (timeout after 10s).

Both dir creations happen early in the vulns cron so I was able to
drastically tighten the timing on the periodic check on this test, so
this tests completes way quicker than before as an added benefit
(automatic test parallelism notwithstanding).

The panic recovery here theoretically shouldn't be necessary, as on a
passed test the context will get cancelled while syncing the CPE sqlite,
but is included to ensure the test doesn't flake if the implementation
of the vulnerabilities cron changes such that we _would_ get a panic by
cancelling the context this early.

# Checklist for submitter
- [x] Added/updated tests
2024-11-05 07:34:54 -06:00
Sam Pfluger c025d89f2f Remove consultant (#23522) 2024-11-05 03:10:12 -06:00
Lucas Manuel Rodriguez c09360aabb Add workflow to ease QA of ADE workflows (#23470)
From discussions with @jahzielv.

QAing ADE flows:

1. New version of fleetd is pushed to `edge`
2. QA folks can trigger this new workflow and download the generated
`fleetd-base.pkg` and `fleetd-base-manifest.plist`.
3. Host the downloaded files (in `foobar/`) in their ngroks URLs (using
e.g. `go tools ./tools/file-server 8085 foobar/`)
4. Use Fleet's `FLEET_DEV_DOWNLOAD_FLEETDM_URL` to point the Fleet
server to their ngrok URL.
2024-11-05 05:28:50 -03:00
Sam Pfluger acf7f70138 Add Konstantin Sykulev (#23521) 2024-11-05 01:04:24 -06:00
RachelElysia 2d2aa24466 Fleet UI: Hide host software filters when no software + no filters applied (#23519) 2024-11-04 21:51:08 -05:00
RachelElysia 441661db2c Fleet UI: Move Fleet Desktop help text to section description (#23518) 2024-11-04 21:17:12 -05:00
Sam Pfluger bb7b14754f Fix typo and non-existent dept. (#23508) 2024-11-04 18:24:42 -06:00
Mike Thomas d2846f0fb0 website-change-macOS-to-Apple (#23429)
Closes https://github.com/fleetdm/confidential/issues/8485

- Changed "macOS" to "Apple" on the homepage and endpoint ops landing
page.
2024-11-04 17:05:51 -06:00
Sam Pfluger 5943b2081a Add sightseeing tour agenda to handbook (#23513) 2024-11-04 16:39:34 -06:00
Eric 900298f638 Website: Update contacts created by talk to us form submissions (#23498)
Closes: #23277

Changes:
- Added the submitted number of hosts to the description of contacts
created by "talk to us" form submissions
2024-11-04 15:59:39 -06:00
Sam Pfluger 9b1677213b Make Sam maintainer of communications and leadership (#23509) 2024-11-04 15:58:33 -06:00
Victor Lyuboslavsky 1d972b2853 Fix overwritten NDES errors. (#23506)
#23505 
Unreleased NDES bug

Profile error was being overwritten by a subsequent DB update.

# Checklist for submitter
- [x] Added/updated tests
- [x] Manual QA for all new/changed functionality
2024-11-04 15:44:52 -06:00
Brock Walters 988f0fbab4 Update install-fleet-maintained-apps-on-macos-hosts.md (#23499)
Updated language around use of Homebrew in Fleet-maintained apps
2024-11-04 15:59:25 -05:00
Eric 65fbc8101b Website: update talk to us form (#23500)
Closes: #23317

Changes:
- Changed the select input for the "What will you be using Fleet for?"
question into a radio input on the Talk to us" contact form.
2024-11-04 14:29:38 -06:00
Eric 16e3161dd7 Website: Enable Docsearch on query pages. (#23496)
Changes:
- enabled Algolia Docsearch on the /queries pages.
2024-11-04 13:31:36 -06:00
Ian LittmanandNoah Talerman 1d0ab5650b Docs: Note permissions distinction between global policy automations and software install (#19551) and script execution (#17129) policy automations (#23447)
Co-authored-by: Noah Talerman <47070608+noahtalerman@users.noreply.github.com>
2024-11-04 12:35:49 -06:00
jacobshandlingandJacob Shandling e58ecb0ddc Update to React 18.3.1 (warnings to anticipate upgrade to React 19) (#23394)
From [the
changelog](https://github.com/facebook/react/blob/main/CHANGELOG.md):

> "This release is identical to 18.2 but adds warnings for deprecated
APIs and other changes that are needed for React 19."

- [x] Manual QA for all new/changed functionality

---------

Co-authored-by: Jacob Shandling <jacob@fleetdm.com>
2024-11-04 10:00:22 -08:00
Eric 696ab33145 Website: Update platform icons on query details page (#23491)
Changes:
- Updated position and spacing of platform icons on the query details
page to prevent style issues on multi-platform policies
2024-11-04 11:46:39 -06:00
Eric 9a0ab0b2af Website: update queries page styles (#23489)
Changes:
- Updated the class on the query code blocks on the query details page
to make sure they have SQL syntax highlighting.
 - Updated the query details page stylesheet.
2024-11-04 11:09:45 -06:00
EricandRachael Shaw f623eed47b Website: Update /queries page (#23472)
Changes:
- Standard query library:
- Added three policies to the Standard query library (tagged as premium)
- Changed the `kind` of the "Identify Apple development secrets (macOS)"
query to `policy` because it is an informational query (It returns rows
of results rather than 1 or 0) and removed its `resolution` value
- Updated the build-static-content script to remove platform names from
the end of query names (e.g., (macOS)). This is done to keep the URLs
for queries the same while hiding them in the UI
- Updated the layout of the queries page to match the latest wireframes
and updated the page to only show policies
 - Updated the styles and layout of the queries-details page.

---------

Co-authored-by: Rachael Shaw <r@rachael.wtf>
2024-11-04 10:58:08 -06:00
github-actions[bot]andlucasmrod 71b0ae18c9 Update versions of fleetd components in Fleet's TUF [automated] (#23474)
Automated change from [GitHub
action](https://github.com/fleetdm/fleet/actions/workflows/fleetd-tuf.yml).

Co-authored-by: lucasmrod <lucasmrod@users.noreply.github.com>
2024-11-04 11:40:21 -03:00
Lucas Manuel Rodriguez 3cdafcee5f Release fleetd 1.35.0 (#23467) 2024-11-04 11:39:46 -03:00
Randy Hill b4a5a1fb49 Update product-groups.md (#23457) 2024-11-01 16:36:04 -05:00
Noah Talerman 65d703b983 Update product-groups.md (#23421) 2024-11-01 16:32:07 -05:00
dependabot[bot] f6e93778d3 Bump elliptic from 6.5.7 to 6.6.0 (#23417) 2024-11-01 16:28:42 -05:00
Eric 89d15bb71f Website: follow up changes from pr review (#23471)
Changes:
- Updated view-basic-documentation, view-transparency, and
view-device-management to log warnings if the Cloudflare headers we use
to determine whether or not to show the swag CTA are missing in
production
- Fixed a typo in save-questionnaire-progress
2024-11-01 16:11:00 -05:00
Ian LittmanandRachael Shaw f59ffc235d Add iOS/iPadOS updates to example GitOps YAML, reference OS update GitOps YAML from OS update enforcement guide (#23320)
#21998

While looking through this I noticed a few other issues:

1. We seem to be inconsistent about what time we pick for OS update
deadlines. For profiles [it's noon local
time](https://github.com/fleetdm/fleet/blob/2e5bf75b6d40d65c5f05b0f58665375dbb71e650/ee/server/service/mdm.go#L1096),
while for Nudge [it appears to be 4am...server time or
UTC](https://github.com/fleetdm/fleet/blob/2e5bf75b6d40d65c5f05b0f58665375dbb71e650/server/fleet/nudge.go#L53-L57)?
#9013 also mentions "noon UTC-8/Pacific Standard Time", which is neither
of the above (and means that, if implemented as spec'd, the deadline
would shift by an hour during DST), while docs prior to this PR
mentioned 4am UTC-8. Maybe we don't care enough to fix the Nudge
behavior since macOS 14 (which no longer requires Nudge) came out over a
year ago, but we should at least agree on desired behavior for DDM and
document that (which is what I've done for iOS/iPad OS since they don't
use Nudge).
2. The [REST API
docs](https://github.com/fleetdm/fleet/blob/2e5bf75b6d40d65c5f05b0f58665375dbb71e650/docs/REST%20API/rest-api.md?plain=1#L1720-L1757)
don't seem to match the description of macOS behavior in the article;
the former indicates that OS updates pop up with increasing frequency
post-deadline, rather than having an impassible dialog. This may be
because behavior changed from Nudge to DDM, but iOS/iPadOS got
copy-pasted from the macOS REST docs and they never used Nudge. My guess
is that we should describe DDM behavior here.

Tagging in @mna as he looks to have implemented DDM OS updates so should
have some context here, and @noahtalerman to confirm desired behavior,
particularly on the deadline side.

---------

Co-authored-by: Rachael Shaw <r@rachael.wtf>
2024-11-01 14:13:58 -05:00
Ian Littman 06ad3ecb6b Clarify OS update enforcement details in REST API docs (#23464)
This applies some consistency fixes as well (e.g. noting that Mac/Win
enforcement requires MDM). Also removed mention of MDM on iOS/iPadOS
enforcement as if an iOS/iPadOS host is enrolled, it's enrolled via MDM.

See #21998
2024-11-01 14:12:01 -05:00