Martin Angers
4f4185372d
Add support for context in datastore/mysql layer ( #1962 )
...
This is just to pass down the context to the datastore layer, it doesn't
use it just yet - this will be in a follow-up PR.
2021-09-14 08:11:07 -04:00
Martin Angers
a099854045
Add missing db transactions, read from primary when after a write ( #1957 )
2021-09-08 14:43:22 -04:00
Martin Angers
3755a58070
Add support for MySQL read replicas ( #1786 )
...
Adds configuration options to use a read-only MySQL replica,
and uses it instead of the primary for reads.
2021-09-01 15:50:52 -04:00
Tomas Touceda
a1ceebf267
Make team schedule names more user friendly and hide them from host pack stats ( #1737 )
...
* Make team schedule names more user friendly and hide them from host pack stats
* Delete test for a different bug and add migration
* Update name template
2021-08-23 14:23:47 -03:00
Tomas Touceda
9863b0f4bb
Issue 1361 fleetctl teams ( #1405 )
...
* WIP
* Add get user_roles and apply for a user_roles spec to fleetctl
* Uncomment other tests
* Update test to check output
* Update test with the new struct
* Mock token so that it doesn't pick up the one in the local machine
* Address review comments
* Fix printJSON and printYaml
* Fix merge conflict error
* WIP
* wip
* wip
* Finish implementation
* Address review comments
* Fix flaky test
2021-07-19 16:48:49 -03:00
Zach Wasserman
c5280c0517
Add v4 suffix in go.mod ( #1224 )
2021-06-25 21:46:51 -07:00
Zach Wasserman
6a18b2a250
Appropriately filter teams returned in targets API ( #1042 )
...
Fixes #1021 by adding the appropriate teams filtering.
2021-06-09 18:05:04 -07:00
Zach Wasserman
fb32f0cf40
Remove kolide types and packages from backend ( #974 )
...
Generally renamed `kolide` -> `fleet`
2021-06-06 15:07:29 -07:00
Zach Wasserman
64f2cfc9cd
Refactor enroll secrets to support Teams ( #903 )
...
- Add `team_id` field to secrets.
- Remove secret `name` and `active` fields (migration deletes inactive secrets).
- Assign hosts to Team based on secret provided.
- Add API for retrieving secrets by Team.
2021-05-31 09:02:05 -07:00
Zach Wasserman
8ee47f8b23
Add support for Teams in targets and live queries ( #880 )
...
- Accept Teams as a searchable target type for the target selection API.
- Accept Teams for targets in running live queries.
- Refactoring to support these changes.
- Update API documentation.
2021-05-27 13:18:00 -07:00
Zach Wasserman
fef1ce579e
Fix host count for list teams ( #861 )
...
- Add test
2021-05-25 15:30:01 -07:00
Zach Wasserman
79138d4b60
Move and refactor host team transfer endpoint ( #778 )
...
- Move API endpoint to `/hosts/transfer`.
- Refactor service and datastore methods from teams to hosts.
2021-05-17 12:23:21 -07:00
Zach Wasserman
1a29a408ce
Add support for bulk transfer of hosts for team ( #761 )
...
- Relevant datastore method.
- Expose via API endpoint /teams/:id/hosts.
2021-05-12 19:05:45 -07:00
Zach Wasserman
b2b53ecbbe
Add agent options on a per-team basis ( #696 )
...
Solely API implementation. Does not yet handle returning the options
during agent requests.
2021-05-03 09:32:04 -07:00
Zach Wasserman
e8f4860d51
Add team user management ( #672 )
...
- Add list team users endpoint.
- Add add/delete team users endpoints.
- Update list users to support filter by team.
2021-04-21 20:54:09 -07:00
Zach Wasserman
af802dc15f
Add host and user counts to list teams response ( #668 )
2021-04-20 13:35:15 -07:00
Zach Wasserman
9ade086448
Add delete teams endpoints ( #666 )
...
Tested to work with frontend calls.
2021-04-20 10:20:52 -07:00
Zach Wasserman
2d2ebaf634
Add list teams endpoint ( #601 )
2021-04-06 11:40:14 -07:00
Zach Wasserman
3286864d9d
Initial work on user team information storage and retrieval ( #483 )
...
There are more migrations to come, but this is a foundation for the
DB changes that will be needed for Teams.
2021-03-31 11:49:44 -07:00