Commit Graph
100 Commits
Author SHA1 Message Date
Jamie Curnow 4ec1b4ed5a Missed a line in CI script 2023-07-27 14:31:40 +10:00
Jamie Curnow 43d989474e Use Publish HTML in CI 2023-07-27 14:25:04 +10:00
Jamie Curnow 1e0baa3911 Archive backend coverage in ci 2023-07-27 13:50:13 +10:00
Jamie Curnow d8a3726f3a Expose backend coverage in dev mode through web
Generate backend coverage in ci
2023-07-27 13:44:38 +10:00
Jamie Curnow 9faa36315f More unit tests and html coverage report
also fixes a limit bug on listquery
2023-07-27 12:38:35 +10:00
Jamie Curnow e4e70ae6be Added some db unit tests 2023-07-26 13:29:12 +10:00
Jamie Curnow d555af68fe Fix acme.sh ci test 2023-07-25 12:15:58 +10:00
Jamie Curnow 26f708d980 Fix acme.sh ci test 2023-07-25 12:12:27 +10:00
Jamie Curnow 2ffb54a720 Fix acme.sh ci test 2023-07-25 12:07:33 +10:00
Jamie Curnow b123ca4fd0 Add backend unit tests 2023-07-25 11:59:02 +10:00
Jamie Curnow 72b071dbaa Use govulncheck instead of nancy 2023-07-24 14:45:39 +10:00
Jamie Curnow fd277973cd Complete the removal of Sentry 2023-07-24 14:41:46 +10:00
Jamie Curnow aae95798b2 Refactor some reflection 2023-07-24 13:42:50 +10:00
Jamie Curnow d437c6b743 Fix test 2023-07-24 13:02:06 +10:00
Jamie Curnow f3018115ba Fix hosts index list 2023-07-24 11:50:13 +10:00
Jamie Curnow a0e17f9678 Better checking for api sort param to prevent sql injection
And moved filters out and cached object reflection
2023-07-24 11:49:08 +10:00
Jamie Curnow 9b32329f41 Apply fixes from v2 2023-07-24 08:08:05 +10:00
Jamie Curnow 001583b308 Fix test after removing error reporting 2023-07-20 16:39:37 +10:00
Jamie Curnow 3df8e74bc8 Fix CI 2023-07-20 16:25:08 +10:00
Jamie Curnow 042a74cc21 Updated go deps 2023-07-20 15:25:05 +10:00
Jamie Curnow fd7095ad88 Remove sentry and error reporting 2023-07-20 15:19:42 +10:00
Jamie Curnow 6d6021c9bb Converted to Vite since create-react-app is no longer being developed 2023-07-20 15:11:41 +10:00
Jamie Curnow 824a22efad Small tweaks 2023-07-19 11:52:47 +10:00
Jamie Curnow ed609f0bec Remove cypress color output 2023-06-01 11:37:45 +10:00
Jamie Curnow b437119535 Remove last use of v4 jwtauth 2023-06-01 11:37:25 +10:00
Jamie Curnow d5a75bb708 Move schema output to a running stack step 2023-05-31 22:10:57 +10:00
Jamie Curnow 512f5109d4 Remove testing sleep 2023-05-31 21:58:34 +10:00
Jamie Curnow d300095ab5 Ignore nancy 2023-05-31 21:51:06 +10:00
Jamie Curnow 8d8921a0dd Clean up users before each test,
as we don't know which order they run
2023-05-31 21:44:27 +10:00
Jamie Curnow ac8fa0d737 Cleanup CI file 2023-05-31 21:44:06 +10:00
Jamie Curnow b2592d9351 Testing 2023-05-31 21:34:05 +10:00
Jamie Curnow adf0030b1c Add missing json schema types 2023-05-31 16:34:20 +10:00
Jamie Curnow 63845377d9 Another tweak for postgres sigh 2023-05-31 15:11:25 +10:00
Jamie Curnow 4b4c7baea4 Updates 2023-05-31 13:52:58 +10:00
Jamie Curnow 94b6971ef7 Test 2023-05-31 13:00:16 +10:00
Jamie Curnow b725153a5e Test 2023-05-31 12:46:46 +10:00
Jamie Curnow da82020be4 Cypress config for ci 2023-05-31 11:56:48 +10:00
Jamie Curnow e7791c2a0f Updated cypress entirely 2023-05-31 11:36:58 +10:00
Jamie Curnow 0461689d65 Fix panic using wrong err object 2023-05-31 11:35:24 +10:00
Jamie Curnow aec0a606af Fix swagger bits 2023-05-31 11:35:09 +10:00
Jamie Curnow f55a7a792f Update testing packages, revert to nullable in swagger schema 2023-05-31 08:47:13 +10:00
Jamie Curnow 4b0d901c93 Schema updates 2023-05-31 00:08:50 +10:00
Jamie Curnow 4a57956093 More work to support nullable foreign keys
Adds nullable int/uint types
2023-05-30 22:26:44 +10:00
Jamie Curnow 88f3953f92 Use null for optional foreign keys 2023-05-30 21:18:12 +10:00
Jamie Curnow 0d3e152306 Add ON DELETE CASCADE for testing query 2023-05-30 18:11:48 +10:00
Jamie Curnow 9234c2c007 Fix validation 2023-05-30 16:02:02 +10:00
Jamie Curnow 98ff4a7dcc Fix inconsistencies between int and bool in db 2023-05-30 15:51:57 +10:00
Jamie Curnow 7edcb8e3cc CI Fix 2023-05-30 14:15:33 +10:00
Jamie Curnow 0387d36ebe Don't fully remove built images between tests 2023-05-30 13:58:36 +10:00
Jamie Curnow 047c4bf6e6 CI Debug 2023-05-30 13:57:05 +10:00
Jamie Curnow 8cefea916a CI Fix 2023-05-30 13:41:28 +10:00
Jamie Curnow 3c1b4fdf34 Added migrations for mysql and postgres, added ci testing suites for them 2023-05-30 13:26:46 +10:00
Jamie Curnow e0773b1c06 Fix change password function 2023-05-29 15:26:28 +10:00
Jamie Curnow 3301800f42 prevent panic when sse token is not found 2023-05-29 15:18:18 +10:00
Jamie Curnow 4dd6fd06f4 Fix settings test 2023-05-29 15:01:41 +10:00
Jamie Curnow 1c57a9b2a5 Prevent adding another user with the same email 2023-05-29 14:51:42 +10:00
Jamie Curnow a9d1ccde38 Fix inconsistency with settings storage 2023-05-29 14:45:00 +10:00
Jamie Curnow dde368f733 Skip auto dumping database migration
Fix user id from context
2023-05-29 14:33:58 +10:00
Jamie Curnow cbcb0cc0f8 Remove cruft 2023-05-29 14:26:45 +10:00
Jamie Curnow fd365dc8fd Remove debug 2023-05-29 14:19:40 +10:00
Jamie Curnow c849938da2 Fix schema responses not matching tests 2023-05-29 14:19:17 +10:00
Jamie Curnow 4b39ef0eba Add entity filters back in for api 2023-05-29 13:53:16 +10:00
Jamie Curnow 1ae247b2a6 Fix swagger doc and rename references for time db fields 2023-05-29 08:50:27 +10:00
Jamie Curnow a2f192280b Fix deleteall users sql 2023-05-29 08:29:53 +10:00
Jamie Curnow 81c1a7eb16 Re-enable arm64 2023-05-27 12:43:40 +10:00
Jamie Curnow 030f3c9d83 Switch to forked repos for Dbmate/Modernc-sqlite so that they use a non-cgo library for sqlite
thus hopefully enabling native compilation on arm/arm64
2023-05-27 12:43:07 +10:00
Jamie Curnow b4365f5c54 Enable Cgo again for use with embedded dbmate 2023-05-26 22:06:06 +10:00
Jamie Curnow e889714642 Avoid excess builds for now 2023-05-26 21:53:24 +10:00
Jamie Curnow e61cf52a65 Fix wrong chi version 2023-05-26 19:48:09 +10:00
Jamie Curnow e6ae25d081 Remove debug logs 2023-05-26 18:46:55 +10:00
Jamie Curnow ceb62fb0f2 Move jwt keys to database
Moved code for it to one place
Updated to chi v5
2023-05-26 14:50:41 +10:00
Jamie Curnow 29990110b1 Convert db backend to use Gorm, with basis for support
for Mysql and Postgres in addition to existing Sqlite
2023-05-26 11:37:39 +10:00
Jamie Curnow b4e5b8b6db Remove cruft 2023-05-16 08:39:18 +10:00
Jamie Curnow d6e96dc3cb Fix ci build 2023-05-12 09:58:50 +10:00
Jamie Curnow ab772d645b Support for dynamic ip ranges from urls
- Adds ipranges command to fetch ip ranges from Cloudfront and Cloudflare
- Write the ipranges file on docker start
- Support disabling ipv4 as well as ipv6 now
- Prevent disabling both
2023-05-12 09:40:45 +10:00
Jamie Curnow f43e41d7d0 Fixes for npm user rename 2023-05-11 11:37:21 +10:00
Jamie Curnow fb8ca0b02f Bring up to recent v2 changes around s6 2023-05-11 10:55:30 +10:00
Jamie Curnow e7ef809b10 Remove cruft 2023-04-11 21:44:17 +10:00
Jamie Curnow 798db6cb21 Fix formatting 2023-04-11 21:43:40 +10:00
Jamie Curnow 7745f8242b Debug ci 2023-04-11 21:36:13 +10:00
Jamie Curnow 00aaa024a6 Replace sqlite module with a non-cgo version. Removed usql from dev 2023-04-11 21:26:09 +10:00
Jamie Curnow a5166435ff Update all frontend libraries 2023-04-11 21:24:18 +10:00
Jamie Curnow e3ce8b4d12 Add missing folder 2023-04-11 09:55:19 +10:00
Jamie Curnow c0c89e5d15 Updates to user/group determination after recent changes to v2 branch 2023-04-11 09:12:48 +10:00
Jamie Curnow fe46da3355 Fix escaping in groovy 2023-03-15 16:08:04 +10:00
Jamie Curnow 6ab5224353 Fix escaping in groovy 2023-03-15 16:06:42 +10:00
Jamie Curnow 12909de3c1 Moved base images docker repo back to jc21, as
docker is sunsetting free teams and this open source project isn't prepared to pay 300 shmackaroos for a nicer image url
2023-03-15 15:28:28 +10:00
Jamie Curnow 700518a0a2 Added fail2ban, though not sure its configured correctly yet 2023-03-09 22:11:28 +10:00
Jamie Curnow e959e54dc8 Strip colors in CI error outputs 2023-03-09 15:43:22 +10:00
Jamie Curnow 471ffa8dff Fix syntax 2023-03-08 16:15:20 +10:00
Jamie Curnow 35cc486fd7 Add comments to pr for failures 2023-03-08 16:12:57 +10:00
Jamie Curnow 292a209195 Ported #2582 to v3 2023-03-08 08:37:43 +10:00
Jamie Curnow 215083f6cf Certificates Renewal + SSE
- Certificate renewal is just a re-request as it's forced already
- Rejig the routes for readability
- Added Server Side Events so that the UI would invalidate the
cache when changes happen on the backend, such as certs being
provided or failing
- Added a SSE Token, which has the same shelf life as normal token
but can't be used interchangeably. The reason for this is, the
SSE endpoint needs a token for auth as a Query param, so it would
be stored in log files. If someone where to get a hold of that,
it's pretty useless as it can't be used to change anything, only
to listen for events until it expires
- Added test endpoint for SSE testing only availabe in debug mode
2023-03-07 16:42:26 +10:00
Jamie Curnow 35550082bf Fix test 2023-03-06 08:59:36 +10:00
Jamie Curnow 15e4900133 locales 2023-03-05 22:37:54 +10:00
Jamie Curnow 6df4ea4d69 Cert creation fixes 2023-03-05 22:37:34 +10:00
Jamie Curnow cc9d556665 Fix wrong lang key 2023-03-05 22:37:06 +10:00
Jamie Curnow cb3f0ec9b4 Add locale picker to app header 2023-03-05 22:36:52 +10:00
Jamie Curnow 0244187c29 Improved pdns dev config 2023-03-05 22:36:14 +10:00
Jamie Curnow 0dd713e634 more help docs 2023-03-05 22:35:42 +10:00