Martin Angers
0b5fcd8e27
Add support for custom headers in fleetctl ( #6118 )
2022-06-07 16:00:09 -04:00
Kelvin Oghenerhoro Omereshone
ee28866fea
fix: change fleet to uppercase to conform to style guide ( #4346 )
2022-02-24 17:58:12 +01:00
Martin Angers
69a4985cac
Use new error handling approach in other packages ( #2954 )
2021-11-22 09:13:26 -05:00
Martin Angers
e61cb7e0db
Configure golangci-lint for the whole repository
...
Add a relatively minimal set of linters that raise safe and
mostly un-opinionated issues with the code. It runs
automatically on CI via a github action.
2021-08-24 13:35:03 -04:00
Martin Angers
a3714d2ed9
Add fleetctl debug connection command ( #1706 )
...
Adds the `fleetctl debug connection` command to investigate
connection issues to the fleet server.
Closes #1579 .
2021-08-24 08:50:03 -04:00
Martin Angers
3c9d7fd4bb
Add explicit sync to disk for critical file writes ( #1686 )
...
For Orbit operations, make an explicit *os.File.Sync() call and check the
error, to make sure the writes are fully flushed to disk.
Closes #1679 .
2021-08-17 08:41:56 -04:00
Tomas Touceda
989e638cc0
Make creating dirs and files more secure by checking permissions ( #1566 )
...
* Add safe mkdirall and open
* Use secure as much as possible and merge gomodules for orbit to fleet
* Improve openfile and mkdirall to check for permissiveness instead of equality
* Don't shift
* Fix links
* Address review comments
2021-08-11 11:02:22 -03:00
Zach Wasserman
416038a689
Update usage of os.IsNotExist ( #1539 )
...
Per [godoc](https://pkg.go.dev/os#IsNotExist ), this is the preferred method.
2021-08-03 13:02:15 -07:00
Zach Wasserman
4cfcb1b084
Upgrade fleetctl github.com/urfave/cli to v2 ( #471 )
...
This is intended to upgrade to the new API without changing fleetctl
functionality.
2021-03-12 16:42:38 -08:00
Zach Wasserman
f95aa37646
Fixes for fleetctl preview ( #295 )
...
- Better documentation and error for missing docker-compose.
- Handle case of no existing config file.
- Make logs directory world-writable (to allow writes from inside container).
Fixes #286
2021-02-13 08:41:46 -08:00
Zach Wasserman
368632b3fa
Minor refactor in fleetctl config handling ( #246 )
...
Move CLI context out of get/set config functions.
2021-01-28 17:15:38 -08:00
Zach Wasserman
d52f850702
Complete setup with fleetctl preview ( #167 )
...
- Run the `fleetctl setup` command to set up the Fleet server with
default username ('admin') and password ('admin123#').
- Configures fleetctl if it has not yet been configured.
Closes #152
2021-01-04 17:11:10 -08:00
Zach Wasserman
ab94d94da0
Fix fleetctl Windows issues ( #40 )
...
- Properly set the path for the config file on Windows.
- Check for appropriate settings for TLS config.
Fixes #39
2020-11-17 16:02:14 -08:00
Zachary Wasserman
adf87140a7
Add ability to prefix Fleet URLs ( #2112 )
...
- Add the server_url_prefix flag for configuring this functionality
- Add prefix handling to the server routes
- Refactor JS to use appropriate paths from modules
- Use JS template to get URL prefix into JS environment
- Update webpack config to support prefixing
Thanks to securityonion.net for sponsoring the development of this feature.
Closes #1661
2019-10-16 16:40:45 -07:00
adamenger
a99313533d
Added custom CA support to fleetctl client ( #1931 )
2018-10-01 15:23:46 -07:00
Zachary Wasserman
28be59c9a5
Rename ignore-tls flag to insecure ( #1779 )
2018-05-17 16:52:38 -06:00
Zachary Wasserman
d7b0abd782
Clean up flag descriptions ( #1778 )
2018-05-09 16:54:07 -07:00
Zachary Wasserman
e8cd007810
Consistent permissions for ~/.fleet/config file ( #1772 )
2018-05-08 17:04:38 -07: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
920f4afab6
Scaffold the login command ( #1748 )
2018-05-01 16:58:53 -06:00