Commit Graph
12240 Commits
Author SHA1 Message Date
Gabriel Hernandez 1cbe2b50fa Merge branch 'main' into feat-software-self-service 2024-06-03 10:13:31 +01:00
Gabriel Hernandez 8cb1e4f968 Merge branch 'feat-software-self-service' of github.com:fleetdm/fleet into feat-software-self-service 2024-06-03 10:12:21 +01:00
Gabriel Hernandez 31957f88cc enable TestVulnerabilityDataSteam test 2024-06-03 10:11:56 +01:00
Marko LisicaandEric 4cb521230b Redirect for ABM renew docs (#19421)
Added redirects to renew ABM docs. It will be used in the UI in
https://github.com/fleetdm/fleet/issues/11544

---------

Co-authored-by: Eric <eashaw@sailsjs.com>
2024-06-03 07:37:18 +02:00
Eric 84827678f8 Website: Update continue.partial.ejs (#19436)
Changes:
- Updated the conditional that decides if the continue partial is
visible to prevent warnings logged when assets are not found.
2024-05-31 19:55:39 -05:00
EricandMike Thomas bf239ecc78 Website: Add site-wide CTA to bring users back to the /start questionnaire (#19393)
Closes: #18530

Changes: 
- Added a collapsable sitewide CTA to bring users who have not completed
the get started questionnaire back to the /start page.
- Added a new action (`account/updateStartCtaVisibility`) to set a
timestamp of when the CTA will be visible (not collapsed) in a user's
session when they close the CTA

---------

Co-authored-by: Mike Thomas <78363703+mike-j-thomas@users.noreply.github.com>
2024-05-31 18:44:13 -05:00
Eric 329f3e7873 Website: Fix logo-carousel animation duration (#19434)
Changes:
- Updated the duration of the logo carousel animation on ios and safari
13
2024-05-31 18:29:40 -05:00
gillespi314 9afbd0e02f Update migrations 2024-05-31 17:17:37 -05:00
Drew BakerandJD 1746f020c7 move min mac os required policy (#19431)
Adding previously removed mac os min required version back to global
macos device health policies

# 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)).

---------

Co-authored-by: JD <spokanemac@users.noreply.github.com>
2024-05-31 14:45:18 -07:00
gillespi314 949acfb2bd Merge branch 'main' into feat-software-self-service 2024-05-31 16:35:56 -05:00
Jahziel Villasana-Espinoza a343eda885 Feat save certs (#19390)
for #10383

# 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] 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-05-31 16:58:34 -04:00
Jacob ShandlingandJacob Shandling 4571b540fb Fix modal background scrollbars showing up when no scroll necessary (#19422)
## Addresses #19284 

![Screenshot-2024-05-24-at-21725PM](https://github.com/fleetdm/fleet/assets/61553566/11b02fec-a91f-4156-b8f6-a5637f570834)

- [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-05-31 13:53:38 -07:00
Sharon Katz 0d0d37d30d Adding changes for Fleet v4.50.2 (#19410) 2024-05-31 16:51:21 -04:00
Eric 02d29759a2 Schema: fix example queries (#19426)
Changes:
- Fixed schema examples that were mistakenly updated in #19296
2024-05-31 15:42:06 -05:00
RachelElysia db5538be30 Fleet UI: Revert small checkboxes to normal size (#19429) 2024-05-31 16:41:35 -04:00
Jacob ShandlingandJacob Shandling b200654ba6 UI - add help text to activity feed automations modal (#19423)
## Follow up for #19052 
<img width="941" alt="Screenshot 2024-05-31 at 10 49 38 AM"
src="https://github.com/fleetdm/fleet/assets/61553566/8ace21c0-fc7f-4bea-bff3-80f0afafdf5c">

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

Co-authored-by: Jacob Shandling <jacob@fleetdm.com>
2024-05-31 13:36:02 -07:00
Mike McNeil 1f399cb8da Handbook: "APNs" has weird capitalization (#19418)
based on me learning from the may 31 (2024-05-31) Fleet release demo
that I've been capitalizing it wrong all these years
2024-05-31 16:18:57 -04:00
Mike McNeil 3df7a9232a Website: Remove utm parameter stripping for now (#19425) 2024-05-31 14:31:21 -05:00
Mike McNeil 4af00d098e Update fleet-in-your-calendar-introducing-maintenance-windows.md (#19242) 2024-05-31 12:19:02 -07:00
Gabriel Hernandez af88da49bc Merge branch 'main' into feat-software-self-service 2024-05-31 18:15:19 +01:00
Lucas Manuel Rodriguez 5dab2042f8 Disable Firefox ESR query (#19412)
Quick fix for #19401 to unblock the release of v4.51.0. We should
troubleshoot next sprint.
2024-05-31 13:22:32 -03:00
Sarah Gillespie 68c805dfe2 Handle undefined host.software in device user UI (#19415) 2024-05-31 11:03:11 -05:00
Brock WaltersandEric 893766efdd Update chrome_extensions.yml (#19397)
Please check the new scalar is working correctly. I am going to have to
do a PR on the authdb table because some of the markdown syntax is
showing on the updated page. Thanks!

---------

Co-authored-by: Eric <eashaw@sailsjs.com>
2024-05-31 12:02:06 -04:00
Victor Lyuboslavsky 49872be675 Fix failing TestApplyTeamSpecEnrollSecretForNewTeams (#19414)
Fix failing TestApplyTeamSpecEnrollSecretForNewTeams
2024-05-31 10:42:36 -05:00
Roberto Dip 83ecb0cd2b Merge branch 'main' into feat-save-certs 2024-05-31 12:29:57 -03:00
Roberto DipandJahziel Villasana-Espinoza 2e8f13202b fixes for cert renewals (#19408)
Co-authored-by: Jahziel Villasana-Espinoza <jahziel@fleetdm.com>
2024-05-31 12:29:05 -03:00
Sarah Gillespie fd4a1a04e2 Hide wipe action from observers in UI (#19381) 2024-05-31 09:56:58 -05:00
Benjamin Edwards d4a639414e use the correct configuration to test for external id (#19404) 2024-05-31 10:47:49 -04:00
Brock Walters 72827bc3ad Update authdb.yml (#19399)
Fixed copy+paste or find+replace booboo when scalar was changed from >-
to |-

Copy operation caught up the angle brackets used around "right_name" in
this doc.

Thanks.
2024-05-31 09:18:14 -05:00
JD 54ef2b1065 Article: Building webhook flows with Fleet and Tines (#19396)
Article: Building webhook flows with Fleet and Tines
https://github.com/fleetdm/confidential/issues/5976
2024-05-31 06:31:28 -07:00
RachelElysia b3712ad2dc Fleet UI: Fix built in label names for select targets page (#19362) 2024-05-31 09:28:33 -04:00
RachelElysia 12c1597049 Fleet UI: Fix form field tooltips to show below the form label (#19382) 2024-05-31 09:22:28 -04:00
RachelElysia 6587be7db8 Fleet UI: Fix language and CTA button for controls page for non global admins (#19367) 2024-05-31 09:20:30 -04:00
Victor Lyuboslavsky d43ad0c824 Fixes from PR review #19206 (live query stats optimization) (#19403)
Fixes from PR review #19206
2024-05-31 07:35:26 -05:00
Roberto Dip 1c2ee0c949 Merge remote-tracking branch 'origin/main' into feat-save-certs 2024-05-31 09:34:48 -03:00
Victor Lyuboslavsky f761827850 Move CalculateAggregatedPerfStatsPercentiles reads to the replica (#19206)
Move CalculateAggregatedPerfStatsPercentiles reads to the replica
#18838

I manually tested the aggregated query stats change by using a read
replica.
https://github.com/fleetdm/fleet/blob/main/tools/mysql-replica-testing/README.md
- But set `master_delay=0` due to issue
https://github.com/fleetdm/fleet/issues/19272
- Run a saved query as a live query, and see that its stats in
`aggregated_stats` table are updated.


# Checklist for submitter
- [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-05-31 07:08:31 -05:00
Victor Lyuboslavsky cfe9657f75 fleetctl gitops --dry-run now errors on duplicate (or conflicting) global/team enroll secrets. (#19344)
#19152
`fleetctl gitops --dry-run` now errors on duplicate (or conflicting)
global/team enroll secrets.

- One check is done on the backend to check against existing secrets
- Another check is done in fleetctl to detect duplicate secrets coming
in

# Checklist for submitter

- [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-05-31 07:01:13 -05:00
Sarah GillespieandGabriel Hernandez 80137dfcc6 Update UI for software self-service features (#19244)
Issues https://github.com/fleetdm/fleet/issues/17587,
https://github.com/fleetdm/fleet/issues/18836,
https://github.com/fleetdm/fleet/issues/18837,
https://github.com/fleetdm/fleet/pull/18339, and
https://github.com/fleetdm/fleet/pull/18340

# TODOS
- Integrate backend
- Unit/integration tests
- Various todos noted in comments
- Cleanup styles and organization of components (de-duplicating and
consolidating where possible)
- Activity feed updates (if any)

# 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)).

---------

Co-authored-by: Gabriel Hernandez <ghernandez345@gmail.com>
2024-05-31 11:09:53 +01:00
gillespi314 c8e1f1d4b0 Merge branch 'feat-save-certs' of https://github.com/fleetdm/fleet into feat-save-certs 2024-05-30 17:22:03 -05:00
gillespi314 b8035dbf57 Remove unused component 2024-05-30 17:20:54 -05:00
Jahziel Villasana-Espinoza 90b4dbd24c fix: another linting error 2024-05-30 18:13:20 -04:00
Eric 7b1a56f752 Docs: fix broken link (#19345)
Changes:
- Fixed a broken link on the "macOS setup experience" docs page.
2024-05-30 17:12:40 -05:00
Noah Talerman e26f1af309 Fix MDM setup docs (#19343)
- You only need the APNs cert for renewing APNs
2024-05-30 18:04:57 -04:00
Jahziel Villasana-Espinoza bb96f875eb fix: try to fix js lint error 2024-05-30 18:04:34 -04:00
Roberto Dip 178c0d565f Merge remote-tracking branch 'origin/main' into feat-save-certs 2024-05-30 18:34:40 -03:00
Roberto Dip 545e56d288 19016 ingest certs on start (#19360)
For #19016

This changes all the places where we previously assumed that certs were
hardcoded when the Fleet server started to query the database instead.

The plan is to loadtest afterwards, but as a first preemptive measure,
this adds a caching layer on top the mysql datastore.

# 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] 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-05-30 18:18:42 -03:00
Sarah Gillespie 0894ae30e0 Fix unreleased bugs in frontend navigation for automatic enrollment settings (#19386) 2024-05-30 15:54:10 -05:00
Rachael Shaw 77228ff433 Fleet configuration API docs: Document server_settings.enable_analytics (#19384)
`server_settings.enable_analytics` was only documented in the "Get
configuration" endpoint and nowhere else. Added to "Modify
configuration" params and example response.
2024-05-30 14:24:19 -05:00
Rachael Shaw 61f366fe3a #18187 API docs: AI-generated calendar description for policy remediation (#19383)
Documents the new Fleet configuration setting:
`server_settings.ai_features_disabled`

For #18187
2024-05-30 14:09:25 -05:00
Victor Lyuboslavsky b3f0d07e51 Improved software ingestion performance by deduplicating incoming software. (#19325)
#11942 

To check if you have duplicate software, install multiple python
versions, like:
```shell
brew install python@3.11
brew install python@3.12
```

Then query: `SELECT * FROM python_packages` to see the packages with the
same versions but different paths.

# Checklist for submitter

- [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-05-30 13:14:49 -05:00