Frank Sievertsen
a228dcb170
Add critical policies as a premium feature ( #8959 )
...
* add premium feature critical policies
* update documentation
* add test for premium-only field
* update old change-file
* test policies more comprehensively
* also test team policies
* PATCH returns wrong timestamp, updating test
2022-12-09 19:23:08 +01:00
Frank Sievertsen
e0766d21a3
Add ability to mark policy as critical. ( #8896 )
2022-12-06 15:59:20 +01:00
Martin Angers
d321cfc68e
Add inherited policies to the team's list policies response payload ( #8068 )
2022-10-12 08:35:36 -04:00
Martin Angers
478b4d3f69
Validate team and appconfig payloads, with dry-run
and force
modes ( #7731 )
2022-09-19 13:53:44 -04:00
Martin Angers
ad5146c491
Allow updating the policy platform (part 1 of the ticket) ( #4311 )
2022-02-22 13:42:03 -05:00
gillespi314
089f49cc5d
Add new activity types for policy-related activities ( #4043 )
...
* Add new activities for policy create, delete, and modify, and apply policy spec
* Add PoliciesByID ds method; refactor delete svcs
2022-02-16 09:33:56 -06:00
Lucas Manuel Rodriguez
e5cb68cee9
Return 404 when listing policies for a team that does not exist ( #3793 )
...
* Return 404 when listing policies for a team that does not exist
* Set mock for auth test
2022-01-19 18:17:42 -03:00
Lucas Manuel Rodriguez
47df5e83fe
Return 400 when trying to create packs, queries and policies with empty names ( #3761 )
...
* Return 400 when trying to create packs, queries and policies with empty names
* Amend sql query test
2022-01-19 16:07:58 -03:00
Lucas Manuel Rodriguez
4213ddb141
Rename missing policy platforms to platform ( #3334 )
2021-12-10 13:55:49 -03:00
Lucas Manuel Rodriguez
edec1abc86
Remove platform and team from policy editing ( #3233 )
2021-12-07 13:01:00 -03:00
Lucas Manuel Rodriguez
c5375263b6
Change policy platforms name to platform singular (for consistency) ( #3221 )
...
* Change policy platforms name to platform singular
* Fix fleetctl tests
2021-12-06 13:56:28 -03:00
Lucas Manuel Rodriguez
b9a408704e
Add platforms
field to policies ( #3181 )
...
* Add platforms field to policies
* Fix fleetctl tests
* PR review changes
* Add missing tests
* Add changes for ListPoliciesForHost
2021-12-03 15:33:33 -03:00
Lucas Manuel Rodriguez
964f85b174
Amend policy creation and spec (for proprietary query), and add update APIs ( #2890 )
...
* Amend policy creation (proprietary query), add update APIs
* Fix Datastore.SavePolicy bug (and add tests)
* Add integration tests for new policy APIs
* Add author email
* Add activities
* Push breaking changes for return policy fields
* WIP
* Add integration test for host policies
* Make more improvements to policy representation
* Improve upgrade code (from PR review comments)
* PR changes
* Revert activities for policies
* Use *uint instead of uint for queryID, use fleet.PolicyPayload
* Filter out other schemas
* New policy flow (#2922 )
* created new policy flow -- no API connection
* added api props
* fixed prop name
* lint fixes
* removed unused modal; fixed style
* name, desc icons; created global components
* lint fixes
* ignoring certain files and lines for prettier
* Update frontend/pages/policies/PolicyPage/PolicyPage.tsx
* Make policy names unique across deployment
* Amend upgrade script
* Fix migration for unique names
* Do not deduplicate but instead rename policies
Co-authored-by: Martavis Parker <47053705+martavis@users.noreply.github.com>
2021-11-24 14:16:42 -03:00
Tomas Touceda
1aea7484d4
Forward policy resolution ( #2733 )
...
* Pass through the resoution for the policy
* Update tests
2021-10-28 10:10:03 -03:00
Tomas Touceda
d3a0d62902
Issue 2456 policies yaml ( #2512 )
...
* wip
* Add policy specs support
* Add documentation
* Make policy apply idempotent
* Fold in code
* Improve tests and simplify auth checks
* Lint and fix test
2021-10-15 07:34:11 -03:00
Tomas Touceda
5695d2a9ae
Issue 2058 team maintainer add queries ( #2255 )
...
* Team maintainers can read and write team schedules
* Allow team maintainers to read and write team schedules
2021-09-28 13:34:43 -03:00
Tomas Touceda
5653f1e868
Update URLs from team to teams, add tests for policy auth ( #2228 )
...
* Update URLs from team to teams, add tests for policy auth
* Fix test
* Address review comments
2021-09-27 14:02:11 -03:00
Tomas Touceda
baa42d367e
Add team policies ( #2103 )
...
* Add team policies
* Add team policy documentation
* Add changes file
* Update titles
* Fix lint
* Rewrite TeamAuthorize for more clarify
* Explicitly use two slices for clarity
* Simplify switch
2021-09-20 11:00:57 -03:00