Commit graph

58 commits

Author SHA1 Message Date
b93bf456b5
fix: Fixes 100% CPU usage in the backend runtime
This makes the backend runtime not constantly search for messages to be
processed. Instead, it only wakes up when it needs to be woken up via
goroutines.
2025-03-21 13:17:08 -04:00
d56a8eb7bf
feature: Change state management from global variables to object passing
This restructures dbcore (now the db package) and jwtcore (now the jwt
package) to use a single struct. There is now a state package, which
contains a struct with the full application state.

After this, instead of initializing the API routes directly in the main
function, the state object gets passed, and the API routes get
initialized with their accompanying code.

One fix done to reduce memory usage and increase speed is that the
validator object is now persistent across requests, instead of
recreating it each time. This should speed things up slightly, and
improve memory usage.

One additional chore done is that the database models have been moved to
be a seperate file from the DB initialization itself.
2025-03-21 12:59:51 -04:00
17b10c9b19
fix: Add system to detect duplicate running remote processes and kill them accordingly
All checks were successful
Release code / build (push) Successful in 6m3s
2025-03-18 20:31:28 -04:00
5c503f0421
fix: Make logging options more clear for the backend runtime's backend logs 2025-03-18 20:27:40 -04:00
959718163e
fix: Fix disconnect handler not working in production
All checks were successful
Release code / build (push) Successful in 8m28s
2025-03-16 21:34:20 -04:00
34b605c1b1
feature: Adds API manifest definitions, and implement GetAllClientConnections()
Some checks failed
Release code / build (push) Has been cancelled
2025-02-20 09:11:28 -05:00
f8a4fe00a0
feature: Adds basic UDP support. 2025-02-19 07:58:42 -05:00
15176831e6
feature: Adds basic TCP support for SSHAppBackend. 2025-02-18 13:15:09 -05:00
432d457ad7
feature: Adds remote implementation of code. 2025-02-16 21:51:33 -05:00
cf90ddb104
chore: Strip unneeded components from code. 2025-02-16 19:12:17 -05:00
62cc8b39ad
chore: Cleanup code by switching to type switching instead of string switching. 2025-02-16 18:11:01 -05:00
17e1491f96
feature: Adds basic data command support. 2025-02-16 15:02:50 -05:00
ede4d528aa
feature: Adds basic backend starting for sshappbackend. 2025-01-27 07:36:29 -05:00
a35602a6f2
chore: Initialize sshappbackend. 2025-01-24 13:26:25 -05:00
4101ce7007
Revert "chore: Delete old commonbackend code."
Wrong branch oops

This reverts commit 737ba2887f.
2025-01-10 20:44:02 -05:00
737ba2887f
chore: Delete old commonbackend code. 2025-01-10 20:34:50 -05:00
48adfc88db
fix: Fixes performance regression introduced in 4cb648cd66 / v2.1.0. (closes #7)
All checks were successful
Release code / build (push) Successful in 5m43s
2025-01-10 16:37:38 -05:00
0efda4b283
feature: Add profiling documentation for backends based on BackendUtil. 2025-01-10 16:23:26 -05:00
356cfb8dca
fix: Fixes action workflows.
All checks were successful
Release code / build (push) Successful in 5m33s
2025-01-09 08:00:37 -05:00
ea0a953b0e
chore: Remove unneeded debug messages.
Some checks failed
Release code / build (push) Failing after 3m20s
2025-01-09 07:50:32 -05:00
3429f2cd37
chore: Reword restart notification message. 2025-01-09 07:39:35 -05:00
a3519220be
fix: Adds automatic restarting upon failure for SSH. 2025-01-09 07:22:12 -05:00
4cb648cd66
fix: Fixes errors showing for no reason. 2025-01-08 12:38:10 -05:00
7837334361
fix: Fixes various crashes. 2025-01-08 11:40:42 -05:00
f8d32fb1c6
fix: Fixes more instability issues. :) 2025-01-08 09:12:48 -05:00
1e1a330a4b
feature: Refactors backend runtime's communication mechanism to be more stable. 2025-01-06 01:24:11 -05:00
93f2f9cbee
fix: Adds missing backend status command implementations. 2025-01-06 00:09:14 -05:00
605ad31dd6
feature: Adds semi-broken stability improvements into the runtime environment. 2025-01-05 23:45:44 -05:00
f505ff6605
fix: Fixes SQLite not working with Docker. 2025-01-05 20:51:30 -05:00
49db323e81
chore: Prepare for frontend support by moving the Go module files.
This moves the Go module files to the root of the project and fixes
all of the imports.
2024-12-28 15:37:32 -05:00
201007f7a0
chore: Make lookup fields in the API omit when they're empty.
This makes the API more accurate to the previous API's responses.
2024-12-28 15:26:48 -05:00
c55510eb04
fix: Fixes migration code incorrectly decoding bcrypt basswords as hex.
All checks were successful
Release code / build (push) Successful in 11m56s
2024-12-27 09:10:17 -05:00
538c5b6c51
chore: Adds "day-one"/v2.0.1 bug fixes.
All checks were successful
Release code / build (push) Successful in 11m41s
This fixes database error reporting, as well as majorly fixes users
not being able to authenticate to the API if you used the automated
migration setup, as the password would remain in hex encoding.

We now decode the hexadecimal and then change it to the far more
compact base64 encoding before adding it to the database. This should
fix login, and not cause 500 Interal Server Errors anymore.

Sorry folks!
2024-12-27 00:10:13 -05:00
d334878599
feature: Fixes all backup and API related things to make everything work in production.
All checks were successful
Release code / build (push) Successful in 14m13s
2024-12-26 22:54:05 -05:00
c2eb2d15aa
fix: Fixes migration Dockerfile. 2024-12-26 21:56:47 -05:00
0bc41c430a
fix: Fixes PostgreSQL database deletion.
All checks were successful
Release code / build (push) Successful in 10m1s
2024-12-26 18:26:26 -05:00
e056911af4
feature: Implements backup code.
All checks were successful
Release code / build (push) Successful in 9m35s
2024-12-26 15:14:26 -05:00
862f307e56
fix: Fixes documentation and migration code.
All checks were successful
Release code / build (push) Successful in 9m48s
2024-12-26 14:59:01 -05:00
217e73d9ec
feature: Adds backup importing support. 2024-12-25 19:21:22 -05:00
b0b11413fb
feature: Adds production support. 2024-12-23 22:37:28 -05:00
5c45533371
feature: Adds autostart support. 2024-12-23 22:03:59 -05:00
8ba0424512
fix: Fixes getting inbound connections. 2024-12-23 21:45:26 -05:00
bcf97fde6d
fix: Fixes API routes. 2024-12-23 20:47:01 -05:00
imterah
495dff3de1
fix: Fixes API routing for connections. 2024-12-23 19:57:39 -05:00
af6ee6ab66
Merge remote-tracking branch 'origin/dev' into dev 2024-12-23 19:04:59 -05:00
imterah
5495fc4ae2
feature: Implement connections API. 2024-12-23 19:00:46 -05:00
d73380e647
add(api): all forward api endpoints except connections 2024-12-23 19:00:43 -05:00
5ad69f6bbe
connections file (not finished) (stupid) 2024-12-23 17:22:14 -05:00
greysoh
216936fe50
feature: Adds backend lookup support. 2024-12-23 16:47:35 -05:00
greysoh
3484760f41
feature: Adds backend removal support. 2024-12-23 16:18:35 -05:00