Commit Graph
11473 Commits
Author SHA1 Message Date
Gabriel HernandezandMartin Angers 2fc4e520b8 add ability to create manual labels (#18303)
relates to #17031

Adds functionality to create manual labels in fleet.

- [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] M0anual QA for all new/changed functionality

---------

Co-authored-by: Martin Angers <martin.n.angers@gmail.com>
2024-04-16 17:22:08 +01:00
Jacob ShandlingandJacob Shandling de94299b65 UI – Show percentages of passing and failing hosts when a live policy run completes (#18257)
## Addresses #16500
![Screenshot 2024-04-12 at 4 11
22 PM](https://github.com/fleetdm/fleet/assets/61553566/8f1cf17c-7378-4246-8f17-6f8fe3321b54)


- [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-04-16 09:00:23 -07:00
Victor Lyuboslavsky ba6315f27a Setting DOGFOOD_WORKSTATIONS_CANARY_CALENDAR_WEBHOOK_URL (#18298)
To fix failing gitops flow.

Related to https://github.com/fleetdm/confidential/issues/6015

Needs DOGFOOD_WORKSTATIONS_CANARY_CALENDAR_WEBHOOK_URL GitHub secret if
not set already.
2024-04-16 10:19:58 -05:00
Dante Catalfamo 48036577eb Interpret windows exit codes as a signed integer (#18282)
#17695

The windows exit code is a 32-bit unsigned integer, but the command
interpreter treats it like a signed integer. When a process is killed,
it returns 0xFFFFFFFF (interpreted as -1). We convert the integer to an
signed 32-bit integer to flip it to a -1 to match our expectations, and
fit in our db column.

https://en.wikipedia.org/wiki/Exit_status#Windows

FIxed on both the client and server side.
2024-04-16 10:53:50 -04:00
RachelElysia 6b3b159827 [Unreleased bug and Unit tests] Test all disabled dropdown options on host actions dropdown (#18231) 2024-04-16 10:48:40 -04:00
RachelElysia 41ef4e3ac0 [Small released styling bugs] Fleet UI: Fix last activity's styling (#18279) 2024-04-16 10:43:06 -04:00
Victor Lyuboslavsky f58947012b In fleetctl debug db-locks and fleetctl debug db-innodb-status, fixed 500 errors (#18285) 2024-04-16 07:52:03 -05:00
Lucas Manuel Rodriguez a86da9f74b Fix enroll request retry in osquery-perf (#18227)
This was discovered by @xpkoala while performing a load test for the
calendar backoff feature.

Some enroll requests were failing due to enrolling hosts too fast (`-var
loadtest_containers` from `0` to `40` at once), and osquery-perf had a
bug in the enroll request where the `bytes.Buffer` was being incorrectly
reused thus sending an empty body on the enroll retries, getting 400s
from Fleet due to `Expected JSON Body`:
```
2024/04/11 18:57:49 request failed: 400
```
2024-04-16 08:39:34 -03:00
Lucas Manuel Rodriguez e7f61305a9 New APIs to add/remove manual labels to/from a host (#18283)
#16767

To create a manual label:
```sh
cat labels.yml
---
apiVersion: v1
kind: label
spec:
  name: Manually Managed Example
  label_membership_type: manual
  hosts:
    - lucass-macbook-pro.local
```

To add/delete a manual label to/from a host:
```
curl -k -v -X POST -H "Authorization: Bearer $TEST_TOKEN" https://localhost:8080/api/latest/fleet/hosts/1/labels -d '{"labels": ["Manually Managed Example"]}'

curl -k -v -X DELETE -H "Authorization: Bearer $TEST_TOKEN" https://localhost:8080/api/latest/fleet/hosts/1/labels -d '{"labels": ["Manually Managed Example"]}'
```

API draft changes: https://github.com/fleetdm/fleet/pull/16979/files
Figma with error strings:
https://www.figma.com/file/JiWoAiuHlkt76s3o3Uyz6h/%2316767-API-endpoint-for-updating-a-host's-manual-labels?type=design&node-id=2-130&mode=design&t=pxRPhrn6E1bOCrEd-0

- [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
- ~[ ] 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`).~
- [x] 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-04-16 06:37:58 -03:00
Drew Baker b45079e261 Add lead follow up to communications (#17237) 2024-04-15 20:11:30 -05:00
Eric 5692598143 Website: update guaranteed locals in custom hook (#18296)
Closes: #18295

Changes:
- Updated the custom hook to set `res.locals` for HEAD requests to
prevent 500 errors when a request is sent to a page that references
`res.locals.me`
2024-04-15 19:51:50 -05:00
EricandMike Thomas 5311aec0fe Website: Add calendar section to homepage (#18209)
Closes: https://github.com/fleetdm/confidential/issues/6059

Changes:
- Updated the layout and styles of the homepage to match the latest
wireframes.


@mike-j-thomas I'm creating this as a draft PR so you can review the
changes while I set up the Salesforce integration.

---------

Co-authored-by: Mike Thomas <78363703+mike-j-thomas@users.noreply.github.com>
2024-04-15 18:09:16 -05:00
Rachael Shaw 160448f7d3 Add spaces after emojis in team names (#18249)
Kind of a silly PR 😅 
The team names used to have spaces after the emojis and I thought it
looked a little more polished 💅
2024-04-15 17:52:15 -05:00
Luke Heath 04e88afba4 Add myself to codeowners for /it-and-security/ as a fallback approver (#18292) 2024-04-15 17:49:28 -05:00
Luke Heath 79fbc00647 As of Go 1.21, toolchain versions must use the 1.N.P syntax (#18288) 2024-04-15 17:29:03 -05:00
Tim Lee 46f7b6b043 Add Failing Policy Counts to Health API (#17758) 2024-04-15 16:14:21 -06:00
Martin Angers 775fa70c53 Fix Apple profile upload error message when identifier is a duplicate. (#18272)
#18081 

# 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] Input data is properly validated, `SELECT *` is avoided, SQL
injection is prevented (using placeholders for values in statements)
- [x] Manual QA for all new/changed functionality
2024-04-15 16:50:14 -05:00
George Karr fa5e224a4a Add feature to resend MDM configuration profiles (#18280)
Includes PRs #18111, #18212, and #18271
2024-04-15 16:48:42 -05:00
Sam Pfluger 1cc76c7cec Fixed label (#18286)
cc @JoStableford
2024-04-15 16:10:11 -05:00
Sarah Gillespie 9897649696 Update osquery-perf with DDM functionality (#18273) 2024-04-15 15:56:25 -05:00
dependabot[bot] 8b9099717d Bump tar from 6.1.11 to 6.2.1 in /tools/fleetctl-npm (#18179) 2024-04-15 15:44:54 -05:00
Sarah Gillespie ecdcb7c2fb Add activity item for resend configuration profile (#18271) 2024-04-15 14:18:09 -05:00
Joanne Stableford 9703711c24 Update receive-from-github.js (#18261) 2024-04-15 14:18:04 -05:00
Tim Lee 8194b6e379 Optimize cve/generate to use last release (#18269) 2024-04-15 13:17:28 -06:00
Martin Angers ea0da5e2fa Add tool to get a profile as defined in Apple BM (#18274) 2024-04-15 15:11:46 -04:00
Eric 3e8ebf84cf Website: Reduce number of requests to the Algolia crawler (#18277)
Related to: #18242

Changes:
- Updated the request that is sent to the Algolia crawler to only be
sent from the `web.1` dyno in Heroku.
2024-04-15 14:03:52 -05:00
Victor Lyuboslavsky 7785aa5070 vulnerabilities.current_instance_checks=no is now an alias for vulnerabilities.disable_schedule=true (#18184)
#16661 
vulnerabilities.current_instance_checks=no is now an alias for
vulnerabilities.disable_schedule=true

PR for doc changes: https://github.com/fleetdm/fleet/pull/18186

# Checklist for submitter

- [x] Changes file added for user-visible changes in `changes/` or
`orbit/changes/`.
See [Changes
files](https://fleetdm.com/docs/contributing/committing-changes#changes-files)
for more information.
- [ ] Added/updated tests
- [x] Manual QA for all new/changed functionality
2024-04-15 12:10:52 -05:00
Rachael Shaw 2da3ac368d Fix typo in calendar events modal (#18255)
"remidiation" → "remediation"
2024-04-15 10:49:44 -05:00
Tim Lee a47f59ef36 Implement NVD Feed with Vulncheck Data (#18168) 2024-04-15 09:44:44 -06:00
Victor Lyuboslavsky 1dc1e23b65 Removed current_instance_checks from docs. (#18186)
#16661 

Removed current_instance_checks from docs.
2024-04-15 10:25:04 -05:00
Gabriel HernandezandRoberto Dip 1e6839c004 Feat UI resend profile (#18111)
relates to #17896

UI implementation of the resend profile feature. This adds a resend
button on the OS Settings modal row items that will request the profile
is resent.


![image](https://github.com/fleetdm/fleet/assets/1153709/f9072ccc-2d28-4638-adea-da3cb25da33b)

- [x] Changes file added for user-visible changes in `changes/` or
`orbit/changes/`.
See [Changes
files](https://fleetdm.com/docs/contributing/committing-changes#changes-files)
for more information.
- [x] Manual QA for all new/changed functionality

---------

Co-authored-by: Roberto Dip <me@roperzh.com>
2024-04-15 14:17:08 +01:00
Sharon KatzandLucas Manuel Rodriguez b3c2e25794 Separate the chrome extension changelog (#18080)
Separating the chrome extension changelog.

---------

Co-authored-by: Lucas Manuel Rodriguez <lucas@fleetdm.com>
2024-04-15 09:09:40 -04:00
Gabriel Hernandez 5df04c8cca Merge branch 'main' into feat-resend-config-profile 2024-04-15 11:35:14 +01:00
Award MalisiandSam Pfluger bcba0efd55 Documentation Feature-Request(Issue# 17485): Details For Skip Level 1:1 Meetings For Leadership.MD (#17545)
## Description of Change 
The Fleet handbook is currently without specific details regarding
Skip-Level 1:1s for non-managerial Fleeties. This change request is
being made to help the multiple parties involved by, outlining the Skip
Level 1:1 process, listing recommendations for non-managerial Fleeties,
and describing actions for managers to take to support their direct
reports and the CEO in this process.

Closes #17485

---------

Co-authored-by: Sam Pfluger <108141731+Sampfluger88@users.noreply.github.com>
2024-04-15 04:57:21 -05:00
Luke Heath 364117bffd Document new vulnerabilities repo (#18236)
Note that as we transition to the new `vulnerabilities` repo we will
archive the `nvd` repo, so ultimately we will end up with the same
number of repos as we have currently.
2024-04-15 04:49:58 -05:00
Mike McNeil 158931046e Handbook: shortlinks and personalization redirects (#18258) 2024-04-13 17:36:51 -05:00
Sam Pfluger 5f6d7dbf85 Add schedule a press release to Digital Experience page (#18263) 2024-04-13 15:03:56 -05:00
Sam Pfluger d39d42cbb9 Update communications.md (#18262) 2024-04-13 13:32:07 -05:00
Noah Talerman c60fea52c4 #help-product-design => #help-design (#18247)
Handbook changes for moving product discussion to
#g-mdm/#g-endpoint-ops: fleetdm/confidential#6056

- Replace #help-product design w/ #help-design or #g-mdm or #g-endpoint
ops
- Cut "Maintain current versions". It's documented in product rituals
2024-04-13 00:36:11 -05:00
Mike McNeil 383fa4f252 Update README.md (#18259)
situation agnostic
2024-04-12 20:27:09 -05:00
Eric 500f33c512 Website: Update personalization on /endpoint-ops page (#18252)
Changes:
- Updated the /endpoint-ops page to display different content in the
hero based on a users `primaryBuyingSituation`
2024-04-12 18:21:56 -05:00
Rachael ShawandNoah Talerman 29b482fffa #17230 API design: Fleet in your calendar (#17552)
REST API updates for #17230.

---------

Co-authored-by: Noah Talerman <47070608+noahtalerman@users.noreply.github.com>
2024-04-12 18:01:52 -05:00
Noah TalermanandRachael Shaw 0888cdb8de Update end user auth and SSO docs (#18127)
Docs improvements uncovered during
[dogfooding](https://github.com/fleetdm/confidential/issues/2506):

- Update end user auth docs to link to SSO docs. So the user knows what
do to get the necessary info from their IdP (create an Okta/GW app)
- Cut content from SSO docs and move Okta and Google Workspace to top
level headers
- "IDP" => "IdP"
- Use **bold** styling to indicate UI elements in docs (instead of
_italics_)

---------

Co-authored-by: Rachael Shaw <r@rachael.wtf>
2024-04-12 16:39:56 -05:00
Marko Lisica b032ddf06e Add missing searchable fields to docs (#17825)
Docs are missing some of the searchable fields.
2024-04-12 17:34:38 -04:00
Joanne StablefordandNoah Talerman 419634d368 Configure google calendar integration in dogfood with API key (#18220)
Related: https://github.com/fleetdm/confidential/issues/6015

---------

Co-authored-by: Noah Talerman <47070608+noahtalerman@users.noreply.github.com>
2024-04-12 16:54:41 -04:00
RachelElysia 8859fe3ad7 [FE unit tests] Test agent information shown in host summary of host details page (#18246) 2024-04-12 16:36:37 -04:00
Roberto Dip 3b96743932 document research done to extract name and version from installers (#18241)
copying what's described here
https://github.com/fleetdm/fleet/issues/17984#issuecomment-2051911744
for future reference.
2024-04-12 17:16:13 -03:00
Sarah Gillespie 03bd837c9c Add backend to resend host MDM profiles (#18212)
Issue #17897 

# Checklist for submitter

<!-- Note that API documentation changes are now addressed by the
product design team. -->

- [x] Changes file added for user-visible changes in `changes/` or
`orbit/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] Manual QA for all new/changed functionality
2024-04-12 14:34:54 -05:00
Rachael Shaw de7f4b09c6 Add redirect for fleetd doc links in the product (#18237)
The old one was pointing to a section that doesn't exist anymore. (Part
of changes for https://github.com/fleetdm/fleet/pull/18138/)
2024-04-12 12:25:00 -05:00
Sam Pfluger 82806d07ef Update README.md (#18235) 2024-04-12 10:34:42 -05:00