Commit Graph

230 Commits

Author SHA1 Message Date
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
Bernard Crnković e18df74d5a
extract hardcoded jwt claim names into config (#97)
* extract hardcoded jwt field names into config

* Update config.go

Co-authored-by: James Read <contact@jread.com>
2023-01-10 22:29:31 +00:00
jamesread 49cb2e5c0a fmt: Ineffectual assignment 2022-11-13 14:23:35 +04:00
jamesread 2244d2c3ef Merge branch 'main' of ssh://github.com/OliveTin/OliveTin 2022-11-13 08:36:20 +00:00
jamesread 37c54b5f77 feature: Look for webui in more directories 2022-11-13 12:35:47 +04:00
jamesread f48e7dac83 fmt: gofmt 2022-11-13 07:54:50 +00:00
jamesread 21b33086ae fmt: ST1005 https://staticcheck.io/docs/checks/#ST1005 2022-11-13 07:34:23 +00:00
jamesread d53c88f314 fmt: gofmt 2022-11-12 12:20:17 +04:00
jamesread f42ac5d744 depbump: Migrate from go-cron to cron (the underlying lib) 2022-11-12 12:19:20 +04:00
James Read 244404afbc
Sidebar (#88)
* feature: allow configurable title

* feature: sidebar prototype

* Spelling fix - Thanks @jonny7read

Spelling fix - Thanks @jonny7read

Co-authored-by: Jonny Read <jonny7read@gmail.com>

* feature: sidebar support

* bugfix: pagetitle

* fmt: hide sidebar under feature toggle

* fmt: Codestyle in style.css and main.js

Co-authored-by: Matthew Strasiotto <39424834+matthewstrasiotto@users.noreply.github.com>
Co-authored-by: Jonny Read <jonny7read@gmail.com>
2022-11-11 12:13:47 +04:00
jamesread e950a00a1e fmt: fmt 2022-10-24 23:17:31 +01:00
jamesread f9ac78d27f fmt: Remove unused sliceutil 2022-10-24 22:51:31 +01:00
jamesread 984dae7450 feature: #61 - Descriptions in arguments 2022-10-21 15:14:58 +01:00
jamesread 08a1ac2591 feature: #71 URL argument type! 2022-10-19 13:26:22 +01:00
jamesread b14a1f411d test: Unsupported argument type 2022-10-19 12:42:22 +01:00
jamesread fadc616a67 doc: Allow "test" for unittests, integration tests, etc 2022-10-19 10:02:41 +01:00
jamesread cfde9e5148 bugfix: Safer handling of username/usergroup metadata 2022-10-19 09:48:36 +01:00
jamesread e9fbcce220 fmt: Reduce cyclo complexity 2022-08-24 20:52:13 +01:00
jamesread 0949999840 feature: Initial version of JWT/ACLs 2022-08-24 12:00:33 +01:00
jamesread b816884e94 feature: Default to relative API path, which should help reverse proxy configs 2022-05-01 10:03:11 +01:00
Fabio Alessandro Locati 8485a0e446
bugfix: update code to reflect new repository name 2022-04-26 13:43:40 +02:00
jamesread 17c1804129 bugfix: Issue #33 - argument names now allow a-zA-Z0-9_ 2022-04-05 22:58:00 +01:00
jamesread e05083ebeb bugfix: installation ID now follows configdir 2022-04-05 14:24:40 +01:00
jamesread ebd1c4e938 security: Use quoted values for origin, URL, and force quoting. 2022-04-05 12:19:24 +01:00
jamesread 6f5fd20a2c fmt: gofmt cleanup 2022-04-05 11:28:35 +01:00
jamesread a725b377cc feature: Customizable external rest address 2022-04-05 11:06:41 +01:00
James Read 24b8857165
Merge branch 'main' into rej_shownavigation 2022-03-23 15:43:43 +00:00
Russell Jones 5bd90adc1f bugfix: Rename "HideNavigation" to "ShowNavigation" 2022-03-22 20:04:27 +00:00
Russell Jones af78385759 feature: Show/Hide footer 2022-03-22 00:43:28 +00:00
jamesread cabf045202 feature: Switch from MachineID to InstanceID in update checks 2022-02-23 14:18:12 +00:00
jamesread 62a45bd214 feature: Send isInContainer to update service 2022-01-11 23:17:50 +00:00
jamesread 5edeace62e bugfix: Working stderr! 2022-01-05 09:54:40 +00:00
jamesread 395c5bea99 Still set currentVersion if update checking is disabled 2021-11-17 11:48:24 +00:00
jamesread 7ee404f44c Restored goreleaser packages for now, as I just want to release. Still want them separate later. 2021-11-17 00:38:52 +00:00
jamesread b3b5b6fe60 codestyle stuff 2021-11-04 10:32:53 +00:00
jamesread 91ce4e93a2 codestyle, fmt, unit tests, etc 2021-11-04 09:35:51 +00:00
jamesread 08eff24dda Spelling mistake 2021-11-04 08:45:15 +00:00
jamesread 78efc5c94e Yay more unit tests 2021-11-04 00:30:36 +00:00
jamesread 3aa7c97bfb Search additional dirs for the webui dir 2021-11-03 22:52:38 +00:00
jamesread 12475cd310 gofmt emoji.go 2021-11-03 22:17:37 +00:00
jamesread 6357c9dc61 Add default title to choices 2021-11-02 22:01:01 +00:00
jamesread bc73ba340c emojis are not runes 2021-11-02 16:30:54 +00:00
jamesread 2a767199e2 Improved default config to include TA examples 2021-11-02 16:04:34 +00:00
jamesread 30d681690a #6 - task arguments, that was a lot of work! 2021-11-02 01:25:07 +00:00
jamesread 614c3b73fc work on sanitizing configs 2021-10-18 20:14:38 +01:00
jamesread ca36434a48 gofmt 2021-10-18 13:39:53 +01:00
jamesread afd8353b6f Ongoing UI work 2021-10-18 13:39:53 +01:00
jamesread 39647c6d2d Rebase past all the recent CI work 2021-10-18 13:38:53 +01:00
jamesread 2d27128477 Merge branch 'hide-navigation-buttons' 2021-10-18 13:03:52 +01:00
jamesread d7bd0cfe74 gocyclo simplify getButtons 2021-10-18 10:26:53 +01:00
jamesread 4de2a12aab Initial version 2021-10-16 07:51:27 +01:00
jamesread 03d7250cf6 go fmt 2021-10-16 07:38:47 +01:00
jamesread 5d125bb39c Entities, config comment 2021-08-08 20:42:29 +01:00
jamesread 5a151859d7 Initial work on auth 2021-07-19 14:22:57 +01:00
jamesread c072e16cc4 Log support 2021-07-19 08:13:37 +01:00
jamesread 7c8bdb0670 Code cleanup for updates 2021-07-16 22:45:46 +01:00
jamesread fe02130596 gofmt 2021-07-16 22:12:13 +01:00
jamesread 1df36ae196 Work on log support 2021-07-16 21:03:14 +01:00
jamesread ef5e71fa94 Additional error check 2021-07-12 23:27:10 +01:00
jamesread 800598b199 Fixed bug of timeout being hardcoded 2021-07-12 01:10:15 +01:00
jamesread 2f26aa65a6 #11 - Initial theme support 2021-07-11 21:01:00 +01:00
jamesread a4def7571c Update check cleanup, gofmt and gocyclo = 3 2021-06-22 06:01:04 +01:00
jamesread 4bd2be6317 Update notification in logs, see docs for more info 2021-06-22 00:27:01 +01:00
jamesread 5d01183198 Buttons are refreshed every 3s 2021-06-20 00:12:51 +01:00
jamesread 37b9e2d66f Single endpoint for web+ui (Issue #4). Migrated to modern protobuf+grpc. 2021-05-24 22:02:21 +01:00
jamesread 8cc405eb8a Merge branch 'main' of github.com:jamesread/OliveTin 2021-05-18 22:28:09 +01:00
jamesread 846311b46d More tests, pass config to executor 2021-05-18 22:28:04 +01:00
jamesread ae11c252f6 int32 for exit status 2021-05-18 21:57:31 +01:00
jamesread 66c7bddb2e Golang unit tests. 2021-05-18 00:27:48 +01:00