Commit Graph
12126 Commits
Author SHA1 Message Date
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
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
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
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
Grant Bilstad 821a2e0e45 added mention of new vuln endpoint (#17912) 2024-05-29 17:08:05 -06: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
Robert Fairburn 5abfe5e4fa Update terraform example to support FLEET_SERVER_PRIVATE_KEY (#19330) 2024-05-29 10:45:35 -05:00
Robert Fairburn 9283cb16a6 Terraform fleet server private key (#19321) 2024-05-29 10:26:08 -05:00
Noah Talerman 34c6055ced it-and-security/ CODEOWNERS (#19327)
- Add @getvictor
2024-05-29 09:55:18 -05:00
RachelElysia 5e6184340c Fleet UI: Updated styles to license expiration banner (#18856) 2024-05-29 09:41:07 -04:00
Jahziel Villasana-Espinoza c2a9ba6f86 fix: remove references to adminstrator users in script (#19318)
> Related issue: #18461

Non-functional change; there were some comments in the embedded script
that referenced Administrator accounts. These references needed to be
removed, as the script can lock out all accounts now.

# 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 09:37:18 -04:00
Tim Lee d1db2e3650 Ubuntu Kernel Vulns Part 2: Matching (#19303) 2024-05-29 06:59:12 -06:00
Roberto Dip 9ec92a601f prevent a bug causing SCEP renewals to fail (#19313)
for #19311

# 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-05-28 20:31:53 -03:00
cdf2a0c47c iPhone/iPad support (#19221)
#18119

- [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)
- [ ] Added support on fleet's osquery simulator `cmd/osquery-perf` for
new osquery data ingestion features.
- [x] Added/updated tests
- [X] Manual QA for all new/changed functionality

---------

Co-authored-by: RachelElysia <71795832+RachelElysia@users.noreply.github.com>
Co-authored-by: Jacob Shandling <61553566+jacobshandling@users.noreply.github.com>
Co-authored-by: Jacob Shandling <jacob@fleetdm.com>
2024-05-28 19:17:14 -03:00
Jahziel Villasana-Espinoza 13a272594b chore: changes file 2024-05-28 17:49:19 -04:00
Jahziel Villasana-Espinoza a2909c9691 fix: remove references to adminstrator users in script 2024-05-28 17:45:28 -04:00
Robert Fairburn 0cf1f78bf1 Update loadtest osquery-perf to cleanup vulns in built image (#19317)
Note this is the same Dockerfile used in cloud for adding fake hosts to
preview/tests environments.
2024-05-28 16:33:55 -05:00
Jacob ShandlingandJacob Shandling a5ab2213bf UI – Activity feed webhook automation modal (#19285)
_This PR is the direct-to-`main` replacement for #19096, which merged to
a now-defunct feature branch_

## Addresses #19052 

- update config, webhook interfaces, mock
- clean up deprecated Sandbox code
- implement Activity Feed Automations Modal and associated logic
- Also addresses #19284 

![Screenshot-2024-05-24-at-21725PM](https://github.com/fleetdm/fleet/assets/61553566/1afc62f7-eeb3-49a8-a545-b971f2a19921)

- [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-28 13:18:02 -07:00
Tim Lee 14fa3e2cbe Ubuntu Kernel Vulns Part 1: Generate OVAL JSON (#19210) 2024-05-28 13:40:32 -06:00
Noah Talerman 84a1c84244 Update docs: Best practice infra for deploy security agents (#19251)
- Add S3 to AWS reference architecture docs
- Add note that GCP support for add/install software (deploy security
agents) and file carves is coming soon
- Add note that Render support for add/install software (deploy security
agents) is coming soon
- Update links to best practice Terraform example
2024-05-28 14:41:54 -04:00
Lucas Manuel Rodriguez 984711060f Some docs added while learning DDM for iOS/iPadOS support research (#18561)
Some docs added while working on #18423.
2024-05-28 15:03:39 -03:00
Rachael Shaw 8f2ea71cd2 Update story issue template (#19309)
Add :product label to user story issue template
2024-05-28 13:54:54 -04:00
Gabe Lopez ad761456fe Update release-qa.md (#19237)
fixed typo and removed migration testing for Percona since the customer
has switched to mySQL

# Checklist for submitter

If some of the following don't apply, delete the relevant line.
2024-05-28 10:03:42 -07:00
Noah Talerman 78037e246b Add attribution for Mac Admins tables (#19302)
- Add note for all tables
2024-05-28 12:59:35 -04:00
Eric d9594ba2bf Website: update quote links on landing pages (#19307)
Closes: #18966

Changes:
- Updated the styles of the quote links on the product category landing
pages.
2024-05-28 11:45:25 -05:00
Lucas Manuel Rodriguez f8cee672e0 Support environment variables in config profiles (#18891)
#17309

I added some missing env var replacement tests for policies, queries,
etc.

- [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-28 13:44:43 -03:00
Jahziel Villasana-Espinoza ddcdaa61c0 feat: enabled locking for windows admins (#19145)
> Related issue: #18461

# 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-28 12:06:38 -04:00
Tim Lee 1d2d9d4222 Support status and label filters in bulk opts (#17723) 2024-05-28 08:53:16 -06:00
Tim Lee 6f008b40f2 Fix backoff in vuln stream logging (#19148) 2024-05-28 08:13:46 -06:00
Lucas Manuel Rodriguez 363c4bdd77 Friday cleanup ld: warning: ignoring duplicate libraries: '-lproc' (#18581)
To get rid of the warning:
```
ld: warning: ignoring duplicate libraries: '-lproc'
```
See https://github.com/elastic/go-sysinfo/releases/tag/v1.11.2.

```
go mod why github.com/elastic/go-sysinfo
# github.com/elastic/go-sysinfo
github.com/fleetdm/fleet/v4/server/contexts/ctxerr
go.elastic.co/apm/v2
github.com/elastic/go-sysinfo
```

I ran:
```
go get github.com/elastic/go-sysinfo@v1.11.2
go mod tidy
```
2024-05-28 10:31:09 -03:00