Commit Graph
14287 Commits
Author SHA1 Message Date
Drew Baker 82a7e6f831 Create how-to-use-policies-for-patch-management-in-fleet.md (#23626)
Adding blog post from Harrison
2024-11-07 13:53:53 -05:00
Brock Walters 4be695931b Add macos-execute-disable-fleet-desktop to Workstations (canary) script library (#23616)
Customers that have deployed the Fleet agent with the Fleet Desktop
application enabled sometimes want a method to arbitrarily disable Fleet
Desktop without deploying a new Fleet agent package installer.

This workflow writes a script & a Launch Daemon on a macOS Host which is
executed as a background process (because it must stop & restart the
Fleet agent) in order to disable the Fleet Desktop application by
modifying the Fleet agent configuration.
2024-11-07 13:04:45 -05:00
Robert Fairburn e525eed606 Include root.json in check-tuf-timestamps.yml (#23608) 2024-11-07 11:32:01 -06:00
Jahziel Villasana-Espinoza ff90aade76 feat: add some docs for creating a signed fleetd-base installer for QA purposes (#23614)
Updated the docs based on our experience QA-ing
https://github.com/fleetdm/fleet/issues/19372

There will be a follow-up PR with some details for generating the base
installer during development.
2024-11-07 12:29:47 -05:00
Ian Littman cfead6a35f Fix path resolution for installer queries and scripts to always be relative to where the query file or script is referenced (#23502)
#22187

Similar fix to #22555: resolve paths at spec parsing time rather than
when trying to grab files

# 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-07 11:22:08 -06:00
Eric b6a1127b60 Website: update custom hook (#23618)
Changes:
- Updated sails.LOOKS_LIKE_ASSET_RX
2024-11-07 11:09:55 -06:00
Ian Littman c797fb73c2 Delete pending script executions when the underlying script is edited or deleted (#23520)
#21888 

# 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] Added/updated tests
- [x] Manual QA for all new/changed functionality
2024-11-06 18:15:52 -06:00
Mike McNeilandNoah Talerman 48e1d7bde1 Update single-sign-on-sso.md (#22500)
This is a really bad PR. I am sorry. I previewed it and I know it looks
horrible. Please consider it only little stickerboard of ideas.

I do, however, stand by these ideas (though not my execution of them):
- changing the first sentence to clarify whether or not this is SSO for
the Fleet console GUI/CLI experience, or if we're talking about end user
admin for employees using Fleet Desktop / getting "zero touched"
(signing into their ABM'd or autopiloted devices)
- finding some way to name Okta, and ideally the other examples I
provided, for SEO, to give people examples from a set, to get
recognizable names of the integratiion above the fold, to give people a
dash of personality by including authentik
- consolidating JIT and the other SAML implementation details into a
sentence
- unhoisting it downards (though not in the weird way I did it) -

> References:
> - ["Why read
documentation?"](https://fleetdm.com/handbook/company/why-this-way#why-read-documentation)

---------

Co-authored-by: Noah Talerman <47070608+noahtalerman@users.noreply.github.com>
2024-11-07 08:02:28 +09:00
Rachael ShawandIan Littman 1e0c482290 #23314: Rename "Transparency" menu item in Fleet Desktop (#23392)
Took a stab at implementing #23314 since it is a text change only.

Documentation changes are
[here](https://github.com/fleetdm/fleet/pull/23375); if this gets merged
I'll make a new PR to the v4.60.0 docs.

---------

Co-authored-by: Ian Littman <iansltx@gmail.com>
2024-11-06 17:00:37 -06:00
Sarah Gillespie 3ea68ae1e7 Update guide to puppet module (#23369) 2024-11-06 16:57:59 -06:00
Noah Talerman dabdb81be1 Update reference doc page: Fleet server configuration (#23551)
- Update section headers so that config options show up in the right
side bar. Today, there's only one header that shows up in the sidebar:
![Screenshot 2024-11-05 at 3 29
29 PM](https://github.com/user-attachments/assets/a208f6fa-d48d-482d-b689-36ba36fb8764)
- Remove "Example YAML" sections b/c they're redundant. More to maintain
2024-11-06 16:38:35 -06:00
Eric 581a2f7a53 Website: update sails.LOOKS_LIKE_ASSET_RX (#23603)
Closes: https://github.com/fleetdm/fleet/issues/23598

Changes:
- Updated `sails.LOOKS_LIKE_ASSET_RX` to not match URLs for articles.
2024-11-06 16:08:35 -06:00
Victor Lyuboslavsky 06a4c86b3b Allow uploading PKG without Distribution.xml (#23590)
#23213
Use PackageInfo.xml if Distribution.xml does not exist in uploaded macOS
PKG.

This means we now support script-only packages:
<div>
<a href="https://www.loom.com/share/fb2f9fe93cb64f3aa1221f974ca0eb3a">
<p>[Demo] Install script-only macOS package on Fleet (#23213) - Watch
Video</p>
    </a>
<a href="https://www.loom.com/share/fb2f9fe93cb64f3aa1221f974ca0eb3a">
<img style="max-width:300px;"
src="https://cdn.loom.com/sessions/thumbnails/fb2f9fe93cb64f3aa1221f974ca0eb3a-4b035241497a6c22-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] Added/updated tests
- [x] Manual QA for all new/changed functionality
2024-11-06 14:38:13 -06:00
Eric 1c2f4a77d0 Website: Update sidebar on article template page and scrolling sidebar functions (#23594)
Changes:
- Updated the styles and layout of the article template page sidebar to
match the latest wireframes
- Updated the scrolling function for sticky sidebars on articles and
docs pages
- Updated the sidebar CTA on article pages to check `typeof me` instead
of `me`.
2024-11-06 14:35:48 -06:00
Noah Talerman f7cc992116 Product Design handbook: when design gets ahead what do we do? (#23592) 2024-11-06 14:58:24 -05:00
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