fleet/server/vulnerabilities/macoffice
Gabriel Hernandez 119d1df76f
add permission check to software titles/versions endpoints (#16561)
relates to #16052

This adds a team permission check the `GET software/titles/:id`
endpoint. If the user should not be able to get the software title if it
is not on a host that is on the same team as the user (e.g. software
title 1 is on host 1, which is on team 1. A user who is only on team 2
should get a 403 response)

The UI is also updated to show the access denied error page when the we
receive a 403 response for the software title

<!-- 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

---------

Co-authored-by: Roberto Dip <dip.jesusr@gmail.com>
Co-authored-by: Roberto Dip <me@roperzh.com>
2024-02-15 17:22:27 -03:00
..
analyzer.go add permission check to software titles/versions endpoints (#16561) 2024-02-15 17:22:27 -03:00
analyzer_test.go add permission check to software titles/versions endpoints (#16561) 2024-02-15 17:22:27 -03:00
integration_analyzer_test.go Feature 10196: Add filepath to end-points and third party integrations (#11285) 2023-05-17 16:53:15 -04:00
integration_parser_test.go Improve test coverage and bug fix (#10301) 2023-03-06 15:07:27 -04:00
integration_sync_test.go HotFix - ambiguous policy search name (#15312) 2023-11-27 12:21:39 -07:00
parser.go Feature 9386: Parse the Mac Office release notes for vulnerability processing (#9993) 2023-02-24 14:18:25 -04:00
release_note.go Fixed iCloud false positives (#12551) 2023-06-30 13:05:34 -04:00
release_note_test.go Feature 9386: Parse the Mac Office release notes for vulnerability processing (#9993) 2023-02-24 14:18:25 -04:00
sync.go Improve test coverage and bug fix (#10301) 2023-03-06 15:07:27 -04:00
sync_test.go Improve test coverage and bug fix (#10301) 2023-03-06 15:07:27 -04:00