Zach Wasserman
9b4976ef8f
Prevent modify user to include global and team roles ( #695 )
...
A user should have a global role or roles on some teams, but not both.
This ensures that is set properly and does validation.
2021-05-12 08:31:20 -07:00
Zach Wasserman
596e017d44
Fix admin setup ( #701 )
...
Fixes a null pointer issue and clarifies setup logic.
2021-05-03 09:31:51 -07:00
Zach Wasserman
b12a6cb4c1
Migrate old admin field to new global role ( #609 )
...
- Migrate old admins to global admins
- Migrate old non-admins to global maintainers
- Remove old admin column
- Give initial user global admin privilege
- Comment out some tests (to be refactored for new permissions model later)
2021-04-06 18:27:10 -07:00
Mike Arpaia
af96e52a00
Update the Go import paths to new repo name ( #27 )
2020-11-11 09:59:12 -08:00
Zachary Wasserman
7c923d9d19
Implement fleetctl user create ( #9 )
...
- Allow user creation via `fleetctl user create`
- Cleanup and rename existing methods for clarity
Fixes https://github.com/kolide/fleet/issues/2306
2020-11-04 17:06:55 -08:00
Zachary Wasserman
c1aa8355cb
Add support for multiple enroll secrets ( #2238 )
...
- Support multiple enroll secrets
- Record name of enroll secret used when host enrolls
- Update fleetctl and UI to support these features
2020-05-29 09:12:39 -07:00
Thordur Bjornsson
6a4d50c7a6
ensure email and passwords are set during setup ( #1786 )
2018-05-17 08:29:04 -06:00
Mike Arpaia
018e10ea66
Add fleetctl config and auth commands ( #1751 )
...
```
$ fleetctl config set address https://localhost:8080
[+] Set the "address" config key to "https://localhost:8080 " in the "default" context
$ fleetctl config set ignore_tls true
[+] Set the "ignore_tls" config key to "true" in the "default" context
$ fleetctl setup --email mike@arpaia.co --password "abc123"
[+] Fleet setup successful and context configured!
$ cat ~/.fleet/config
contexts:
default:
address: https://localhost:8080
email: mike@arpaia.co
ignore_tls: true
token: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzZXNzaW9uX2tleSI6IlUvdm05Vk9wSG0xUlA4SUtjQnBhb2ovWlo1TXppSEVXcFRCNFNPb2tHQnNLUFpDQXFieVpWWnpJb0UvczQzcWkyd1pHZXJOa29SNFVIQ2hNZUc0K09RPT0ifQ.rHawSN8JvD4jjWAPTYX2Ep9ZpMt3u4mSIQcu920C-_s
$ fleetctl logout
[+] Fleet logout successful and local token cleared!
$ cat ~/.fleet/config
contexts:
default:
address: https://localhost:8080
email: mike@arpaia.co
ignore_tls: true
token: ""
```
2018-05-04 10:53:21 -06:00
Mike Arpaia
9d21cbdb8a
removing license code ( #1551 )
2017-09-01 10:42:46 -06:00
Mike Arpaia
018b91ab2c
Rename project to Kolide Fleet ( #1529 )
2017-06-22 15:50:45 -04:00
Zachary Wasserman
715d908613
Update go-kit to 0.4.0 ( #1411 )
...
Notable refactoring:
- Use stdlib "context" in place of "golang.org/x/net/context"
- Go-kit no longer wraps errors, so we remove the unwrap in transport_error.go
- Use MakeHandler when setting up endpoint tests (fixes test bug caught during
this refactoring)
Closes #1411 .
2017-03-15 08:55:30 -07:00
John Murphy
7988076799
Licensed endpoints ( #1188 )
2017-02-10 02:43:45 +08:00
Mike Arpaia
a000751bfe
renaming kolide-ose to kolide ( #1143 )
2017-02-01 10:20:50 -07:00
Victor Vrantchan
54408ff9e4
move osquery enroll secret to appconfig ( #1004 )
...
For #995
2017-01-20 14:48:54 -05:00
John Murphy
41517aa7d9
Log in user automatically after successful setup ( #993 )
...
* Log in user automatically after successful setup
* Handle login failure by omitting token from response
2017-01-18 04:24:13 +08:00
Victor Vrantchan
ac14215e21
create first time setup endpoint ( #436 )
...
The endpoint is only active if there are no users in the datastore.
While the endpoint is active, it also disables all the other API endpoints, and /config returns `{"require_setup":true}`
for #378
2016-11-09 12:19:07 -05:00