Commit Graph

218 Commits

Author SHA1 Message Date
James Read e36fedf4b2
Check for updates default disabled (#333)
* feature: Checking for updates is now disabled by default (#93)

* feature: Default config has checkForUpdates: false (it defaults to false anyway) to make people aware of the update checking feature
2024-06-04 18:37:59 +00:00
James Read 362a97c59e
feature: No more tracking in update checking! :-) (#93) (#332) 2024-06-04 12:21:11 +00:00
James Read c82beb61a9
feature: Vastly improved logs and tests for killing actions (#330)
* bugfix: Sleep testing

* feature: Vastly improved testing for killing actions (#328)

* cicd: Add find-flakey-tests target

* cicd: Better debugging for domStatus

* cicd: Debug flakey test

* cicd: Debug flakey test

* cicd: Is cors messing with killaction?

* cicd: Slip broken test in CI

* cicd: Skip broken test in CI

* cicd: Skip broken test in CI
2024-06-03 16:19:15 +00:00
James Read 238abc95ad
feature: Customizable default directory, back and action icons (#326) 2024-05-31 22:43:05 +00:00
James Read ac0f3ab6f8
feature: Live command output! (#325)
* feature: Live command output WIP

* cicd: Fix live command output build errors

* feature: Live command output WIP, remove stdout/stderr split

* feature: Live command output

* Restore output im stepExecAfter, rename so to ost for OutputStreamer

* Update executor.go

* feature: Remove output from log message, bad for long messages, binary output, and security

* feature: Live command output WIP
2024-05-31 20:56:49 +00:00
James Read 4bac315568
feature: The executor now controls the public action map - meaning actions work without the API, and pages load faster (and much more!) (#324)
* feature: The executor now controls the public action map

* bugfix: Build the action map if there are no entities!

* bugfix: Sort by title if the actions have the same config order
2024-05-27 22:52:06 +00:00
James Read dc7ff40da6
bugfix: #316 Entity file change debouce timer now uses delay after initial event (#321) 2024-05-26 17:01:37 +00:00
James Read 3904f8563d
feature: Refresh dashboards when entity files change. (#319)
* feature: Refresh dashboards when entities change

* feature: Refresh dashboards when entities change

* bugfix: Concurrency, lock around websocket write
2024-05-24 22:10:38 +00:00
guangwu 7e34efd453
chore: remove refs to deprecated io/ioutil (#309)
Signed-off-by: guoguangwu <guoguangwug@gmail.com>
Co-authored-by: James Read <contact@jread.com>
2024-05-13 15:20:58 +00:00
James Read 80083fedab
bugfix: Race condition in stringvariables (#311) 2024-05-13 14:10:44 +00:00
James Read f43ece4263
feature: Better sosreports (#308) 2024-05-13 07:01:45 +00:00
James Read 8625e1fc0a
fmt: Clean REST API Testing (#307)
* fmt: Clean REST API Testing

* fmt: Clean REST API Testing
2024-05-06 21:44:12 +00:00
James Read 8fd98874e2
feature: Save logs! #174 (#300) 2024-04-28 07:58:25 +00:00
James Read dc6f6c2896
feature: Kill support in the UI (#297)
* feature: Kill command API (wip)

* feature: Kill support in the UI
2024-04-27 21:51:45 +00:00
James Read a783fc8cd4
feature: Arguments are now also passed as ENV variables (#296) 2024-04-26 23:03:17 +00:00
James Read 6a16a7c6c2
fmt: onfileindir (#295) 2024-04-26 23:02:40 +00:00
James Read d6cb634824
feature: Extra file info using onfileindir (#293) 2024-04-26 22:05:28 +00:00
James Read 500419307b
Nullable args (#292)
* feature: Argument values can be null be default. Use RejectNull to change.

* feature: Argument values can be null be default. Use RejectNull to change.
2024-04-26 17:36:33 +00:00
James Read 12cf0013e2
feature: extra args for fileindir (#291) 2024-04-25 23:32:58 +00:00
James Read 5057ba2e1c
bugfix: Start filewatcher on different goroutines (#286) 2024-04-21 19:51:49 +00:00
jamesread 8f1dfffa49 fmt: Clean up log statement 2024-04-21 20:12:47 +01:00
James Read 6991724258
bugfix: Unexpected message #283 (#284) 2024-04-20 19:58:38 +00:00
James Read 5a644b0856
bugfix: The web interface now refreshes when the config file is changed! (#281) 2024-04-19 23:11:40 +00:00
James Read 86b2187236
cicd: Increase coverage (#280) 2024-04-19 21:56:45 +00:00
James Read fafacfeafb
bugfix: Move all inotify to filehelper (#279) 2024-04-19 21:56:21 +00:00
jamesread 4c2cc5da1c bugfix: Remove debug log left in the code 2024-04-19 00:58:05 +01:00
James Read 30e2aa141b
feature: Rate limit for actions (#76) (#275) 2024-04-18 23:51:59 +00:00
James Read db5de9be97
feature: #135 Permissions for logs (#273) 2024-04-18 20:52:04 +00:00
James Read f60ab6ce85
feature: Show username in header (#270) 2024-04-15 00:09:55 +00:00
James Read 43c48aef17
feature: Renamed authJwtSecret to authJwtHmacSecret (#271)
* feature: Renamed authJwtSecret to authJwtHmacSecret

* feature: rename authJwtSecret
2024-04-15 00:01:30 +00:00
James Read 8341b1d6d0
feature: Huge JWT improvements for CloudFlare, etc (#269) 2024-04-14 22:59:45 +00:00
jamesread dd11961a11 bugfix: custom-webui prefix 2024-04-12 22:07:06 +01:00
James Read 3de819a0e9
feature: add prometheus metrics (#268)
* feature: add prometheus metrics

* bugfix: ixed issue with path
2024-04-11 23:23:40 +00:00
jamesread 179f1be19a bugfix: Null JWT verifier 2024-04-11 00:04:34 +01:00
James Read f13a5c070a
feature: JWT Validation wip for Cloudflare (#264) 2024-04-10 22:14:33 +00:00
James Read 1d446ace04
custom-webui and faster theme loading (#262)
* feature: custom-webui and faster theme loading

* feature: custom-webui and faster theme loading
2024-04-09 08:26:18 +00:00
James Read ce670cf58c
Bug ignored signals (#257)
* bugfix: Signals, like SIGKILL etc were ignored. Now we capture them and add the err to stderr

* bugfix: Signals, like SIGKILL etc were ignored. Now we capture them and add the err to stderr
2024-04-01 20:30:34 +00:00
James Read 709223bd46
feature: Removed unimplemented CSS rules from config, but added ID for buttons to allow for easy theming (#255) 2024-03-24 22:35:19 +00:00
jamesread a5a1c64dcb bugfix: Entity buttons didnt support popupOnStart 2024-03-24 22:20:39 +00:00
James Read a8c4db197d
Bug webui search order (#253)
* bugfix: Search order of webui directories was not deterministic

* bugfix: webui dir search order was not deterministic

* bugfix: webui dir search order was not deterministic

* bugfix: webui dir search order was not deterministic
2024-03-23 22:14:08 +00:00
James Read 1319f314ff
Argument suggestions (#252)
* feature: Suggestions for inputs

* feature: #103 Completed suggestions support
2024-03-23 21:52:53 +00:00
James Read 781abaaf40
feature: Entitiys in dropdowns #247 (#251) 2024-03-22 23:49:41 +00:00
James Read 77321c1bcd
cicd: Try {configdir}/var/entities/ when looking for entity files as well (#246) 2024-03-15 10:07:51 +00:00
James Read c97fd60c25
feature: #56 custom tegex for arguments (#244) 2024-03-08 22:17:10 +00:00
James Read 2fb40ff443
feature: Exec on Calendar file support (#243)
* feature: Exec on calendar file

* feature: support for datetime args

* feature: Schedule commands based on seconds
2024-03-08 20:31:51 +00:00
James Read f15235d120
Msot recent execution output on the dashboard. (#238)
* feature: Support for most recent action output on dashboard

* feature: Support for most recent action output on dashboard
2024-03-04 23:33:50 +00:00
jamesread 32cb8dd873 feature: entity filepaths are relative to the config dir 2024-02-29 23:20:48 +00:00
jamesread 27ab530ba6 bugfix: StartAction responds with used tracking ID, not necessarily the requested tracking ID 2024-02-28 23:18:31 +00:00
jamesread e953dfb017 fmt: Ansible -> Automation, robot icon 2024-02-25 22:45:12 +00:00
jamesread 54170f3da6 feature: Better default config file, restart icons 2024-02-25 22:39:29 +00:00
jamesread 77ec2fea63 feature: sosreport in the browser outputs text/plain 2024-02-25 21:10:47 +00:00
jamesread 29b6d12454 feature: Trigger another action after first action completes 2024-02-25 00:29:55 +00:00
jamesread 866a38f286 bugfix: All execution tracking IDs must now be unique 2024-02-25 00:11:35 +00:00
jamesread 0ec2e7069b bugfix: All previous entity files are removed when file is updated 2024-02-25 00:01:51 +00:00
jamesread d13f0a7acf fmt: regex raw string 2024-02-23 21:36:28 +00:00
jamesread b747199528 fmt: Removed uneeded assign 2024-02-23 21:35:55 +00:00
jamesread 6a1af44aa0 fmt: actionName -> actionTitle 2024-02-23 21:30:35 +00:00
jamesread 6da050e3b9 bugfix: Allow static IDs 2024-02-23 21:30:13 +00:00
jamesread fbbf168e88 cicd: fix tests 2024-02-23 00:08:50 +00:00
jamesread a8e770726a bugfix: unittests 2024-02-22 23:42:40 +00:00
jamesread 0c5a99cc03 bugfix: Use better hash algo 2024-02-22 23:31:13 +00:00
jamesread 381bf59fbd feature: The mega dashboards & entities commit. 2024-02-22 23:16:43 +00:00
James Read c12431d8a3
feature: popupOnStart allows for many feedback options when actions are started (#227) 2024-02-08 21:54:08 +00:00
jamesread 99460beafd feature: box icon for containers 2024-02-07 10:52:46 +00:00
James Read 5b0cfb5c33
feature: entities wip (#226) 2024-02-07 09:36:57 +00:00
James Read 759e747f54
feature: readyz API endpoint support (#225) 2024-02-07 09:36:50 +00:00
James Read 6892a679ee
feature: Dashboards, at long last (#224)
* feature: Dashboards, at long last

* fmt: action button IDs now use hypens. Removed ;
2024-02-07 08:54:22 +00:00
James Read 0615a7e353
feature: #202 Cron seconds support optional. Example in default config. (#223) 2024-02-02 21:58:30 +00:00
James Read 6b3e9e4676
feature: clock and ashtonished emoji (#207) 2023-12-28 23:48:27 +00:00
jamesread 6b0e414932 More debug info for auth 2023-12-21 01:26:17 +00:00
jamesread 00927f3ba3 Revert "ACL check was broken, addToEveryAction should come first (#204)"
This reverts commit b0faecfa75.
2023-12-21 01:22:18 +00:00
James Read b0faecfa75
ACL check was broken, addToEveryAction should come first (#204) 2023-12-21 00:07:40 +00:00
James Read d0f74c1ab7
feature: Additional APIs for StartAction (#188) 2023-10-31 18:17:35 +00:00
jamesread 3b60bbce0a feature: Reduce websocket logging 2023-10-25 23:03:34 +01:00
James Read 8f6b384fe6
Notification support (#183)
* feature: #158 shellAfterComplete support for notifications

* fmt: reduce cyclo
2023-10-25 21:32:18 +00:00
James Read 5739091773
feature: Add actionTitle to blocked log messages (#179) 2023-10-25 19:38:27 +00:00
James Read 3db8ae53b5
bugfix: #173 Websocket fixes 1) The upgrader was refusing reverse proxies, 2) The upgrader was "listening" on /, not /websocket (#177) 2023-10-24 04:48:16 +00:00
James Read 311f9a1d00
feature: Reduce debug log spam in ACL/getDashboardComponents (#176) 2023-10-24 04:43:38 +00:00
James Read 2ada67be04
Migrate integration-test infrastucture from Cypress to Selenium+Mocha (#170)
* cicd: Move cypress to selenium+mocha

* cicd: with is not supported unless using an a container

* cicd: relative path to mocha

* cicd: the integration-tests runner now starts/stops OliveTin

* cicd: Knowing the CWD helps debugging

* cicd: Headless chrome

* cicd: wait for integration-test server to be started

* fmt: Mostly fix isses from eslint

* cicd: #169 - Test multiple combo boxes

* fmt: let should be const

* cicd: Remove cypress entirely
2023-10-09 21:44:29 +00:00
jamesread e1930c0899 fmt: codestyle 2023-10-05 00:21:02 +01:00
jamesread 37269cef02 fmt: reduce cyclo 2023-10-04 21:42:35 +01:00
jamesread abd13b756c cicd: Disable a broken test for now 2023-10-04 10:33:37 +01:00
jamesread 2b4a3ab137 bugfix: broken unit tests 2023-10-03 23:24:36 +01:00
James Read 43ceb33b53
feature: onfileindir (#161)
* feature: onfileindir

* fmt: ActionButton.js
2023-09-26 21:29:11 +00:00
James Read e8cb661938
feature: #146 Support for maxConcurrent (#156) 2023-08-25 15:30:58 +00:00
jamesread e5a870ed94 feature: websocket implemenation at last! 2023-08-25 15:11:29 +01:00
jamesread 56ef7ce95c fmt: fix cyclo complexity in recent jwt key merge 2023-08-24 12:56:03 +01:00
Bernard Crnković 6e2e585175
add support for asymmetric crypto based jwt signatures (#145)
* add support for asymmetric crypto based jwt signatures

* wip: e2e test example

* wip: rsa key parse error...

* fix: test works

---------

Co-authored-by: James Read <contact@jread.com>
2023-08-24 12:33:10 +01:00
jamesread 4b5a579b0b fmt: codestyle formatting 2023-08-24 12:11:28 +01:00
jamesread f7fd8af124 feature: Websocket early impl 2023-08-09 21:24:05 +01:00
jamesread 8736f5e387 feature: websocket wip 2023-08-09 21:15:47 +01:00
jamesread 89f08ae6c7 feature: log-popup 2023-08-09 21:15:47 +01:00
jamesread 63fe78b4fe feature: webui directory is now configurable 2023-03-21 10:20:17 +00:00
James Read afe0f0986c
feature: sosreport (#132) 2023-03-20 12:47:52 +00:00
jamesread 9df61ab044 feature: Rudimentary "windows support" 2023-02-16 16:40:24 +00:00
jamesread 11bb3f129f fmt: gofmt 2023-02-16 16:21:53 +00:00
jamesread 0335e58b12 feature: Cleaned up jwt auth, and added header auth 2023-02-15 17:41:33 +00:00
James Read 2d173266df
feature: Cron support (#102) 2023-02-03 08:53:10 +00:00
James Read f05de1c726
feature: Execute actions on startup. Externalize the executor and add… (#101)
* feature: Execute actions on startup. Externalize the executor and add tags to logs.

* fmt: Codestyle fixes
2023-02-02 09:35:18 +00:00
Bernard Crnković b6196a4b3f
fix wrong source of "usergroup" metadata (#99)
* extract hardcoded jwt field names into config

* Update config.go

* bugfix: source group from usergroup field instead of password

Co-authored-by: James Read <contact@jread.com>
2023-01-11 20:41:52 +00:00