Commit Graph
12316 Commits
Author SHA1 Message Date
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
Rachael Shaw 8daa61d963 #15605 API docs: Merge inherited & team queries/policies (#19375)
New PR to avoid affecting PR open time KPI. See previous PR discussion
here: https://github.com/fleetdm/fleet/pull/17227
2024-05-30 12:16:08 -05:00
Rachael Shaw 9afe9f3e0c #16989 API design: Settings to automatically delete activity (#19374)
New PR to avoid affecting PR open time KPI. See draft PR for previous
discussion: https://github.com/fleetdm/fleet/pull/17809
2024-05-30 12:07:38 -05:00
Sharon Katz 1047ed2622 Adding changes for Fleet v4.50.1 (#19334) 2024-05-30 12:23:59 -04:00
Eric a28f0a9422 Website: disable MergeFreeze requests in receive-from-github webhook. (#19371)
Related to: https://github.com/fleetdm/fleet/issues/19369

Changes:
- Disabled the requests to MergeFreeze that unfreeze auto-approved PRs
when the main branch of the Fleet repo is frozen.
2024-05-30 11:19:55 -05:00
Tim Lee 93622696b6 Software Detail Query Overrides (#19132) 2024-05-30 10:10:16 -06:00
Mike Thomas 22aec927a6 added link to FAQ (#19356)
Added link to FAQ. Closes
https://github.com/fleetdm/confidential/issues/5654.
2024-05-30 10:30:47 -05:00
Mike McNeil 8bb332f109 Update primary-tagline.partial.ejs for corpsec, SREs, DFIR (#19366)
Make eo-security a first class citizen with its own tagline, based on
what we’re hearing from DFIR, SREs, and corporate security teams.
2024-05-30 10:27:53 -05:00
RachelElysia a17ef93720 Fleet UI: Fix flaky race condition bug, clean code (#18872) 2024-05-30 10:57:55 -04:00
Alex Mitchell 1ef58af6e2 Update README.md (#19353)
# 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-05-30 09:16:27 -05:00
Sarah Gillespie d8d1bf8f38 Update UI for MDM settings to support new macOS workflows (#19297) 2024-05-30 09:10:26 -05:00
Grant Bilstad 821a2e0e45 added mention of new vuln endpoint (#17912) 2024-05-29 17:08:05 -06:00
Martin Angers 23f06e38fd Fix all software titles test 2024-05-29 16:47:23 -04:00
Martin Angers 3e2f5e97e5 Regenerate docs 2024-05-29 16:15:51 -04:00
Martin Angers 895933ccf9 Fix new way to call new activity 2024-05-29 16:14:49 -04:00
Martin Angers 6b9fecf172 Fix conflicts 2024-05-29 16:08:51 -04:00
Noah Talerman befbb85ab2 Update pricing-features-table.yml (#19071)
- #15919 is shipped
2024-05-29 16:05:11 -04:00
Noah Talerman bb2315c85d Maintenance windows is shipped/announced (#19073) 2024-05-29 16:04:48 -04:00
JDandNoah Talerman 94be5c0a9c Adds VM team to gitops (#19316)
Adds Virtual machines team to gitops. fleetdm/confidential#6762

---------

Co-authored-by: Noah Talerman <47070608+noahtalerman@users.noreply.github.com>
2024-05-29 11:19:24 -07:00
Andrwe Lord Weber a8a1054b36 add linux platform tuxedo (#19011)
# Changes

I'm running orbit based osqueryd on a laptop with [Tuxedo
OS](https://www.tuxedocomputers.com/en/TUXEDO-OS_1.tuxedo#).
This OS identifies its platform via osquery as `tuxedo` and is therefore
not recognized by the Fleet server:

```json
{
    "err": "unrecognized platform",
    "hostID": 76,
    "level": "error",
    "platform": "tuxedo",
    "ts": "2024-05-15T13:17:34.513509387Z"
}
```

This causes policy and scheduled queries to not being run on my system.
With this PR Im adding `tuxedo` to all occurrences found when searching
for `kali`.

Additionally pre-commit checks were failing for me locally as it could
not find the hook-id `RuboCop`. This could be solved by using `rubocop`
instead.
Afterwards all pre-commit checks succeeded locally.

# Checklist for submitter

- [x] Added/updated tests

Signed-off-by: Andreas Ulm <andreas.ulm@prisma-capacity.eu>
2024-05-29 13:54:07 -03:00
Lucas Manuel Rodriguez 55c8c74cab Add few missing iOS/iPadOS UI changes (#19323)
#18119

Figma:
https://www.figma.com/design/eiKrrFY5cUpTit6ha4VNbB/%2318119-iOS%2FiPadOS-automatic-(DEP)-enrollment?node-id=2-130
2024-05-29 13:50:44 -03:00
RachelElysia e090819c75 [small released bugs] Fleet UI: Host queries styling fixes (#19175) 2024-05-29 12:48:51 -04:00
RachelElysia 5c35a922b0 Fleet UI: Add reminder banners for ABM and APNs expirations (#19085) 2024-05-29 12:03:05 -04:00
Jahziel Villasana-Espinoza c62300cbd4 fix: truncate private key and add docs (#19326)
Addressing some docs changes, as well as a change in the code that's
needed to handle private keys that are longer than 32 bytes (such as
those generated by Render).

# 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] Manual QA for all new/changed functionality
2024-05-29 11:52:02 -04:00
Robert Fairburn 5abfe5e4fa Update terraform example to support FLEET_SERVER_PRIVATE_KEY (#19330) 2024-05-29 10:45:35 -05:00