Commit Graph

21 Commits

Author SHA1 Message Date
30d02775c2 Make compile-time feature for SUID/SGID mode
All checks were successful
Build / check (push) Successful in 1m27s
Build / build (push) Successful in 2m46s
Build / docs (push) Successful in 6m33s
2025-11-11 00:28:34 +09:00
9e23f03ca2 Use non-templated systemd service
The previous setup was broken

This commit also adds some code to check that the database connection is
valid before it starts, as well as refactors the code that splits
between starting and external or internal server.
2025-11-10 00:38:26 +09:00
bd4791dc17 Check that executable is not SUID/SGID for unrelated subcommands 2025-11-10 00:33:53 +09:00
c2d22ee7f8 flake.lock: bump, Cargo.lock: bump, Cargo.toml: update inputs, format, etc
Some checks failed
Build / build (push) Has been cancelled
Build / check (push) Has been cancelled
Build / docs (push) Has been cancelled
2025-05-07 10:39:10 +02:00
a0be0d3b92 Wrap database users and database names in newtypes
Also, use less cloning where possible
2024-08-20 17:46:43 +02:00
af86893acf Rewrite entire codebase to split into client and server 2024-08-17 20:21:05 +02:00
39a3f8ffd1 core/common: make testable, fix some status messages 2024-08-08 19:30:42 +02:00
7e71b5071f Report back more detailed results from commands 2024-08-07 23:33:07 +02:00
21c1f8cc87 Fix clippy warnings 2024-08-07 23:10:37 +02:00
011bcf9edc More spring cleaning for privs, add test 2024-08-07 23:00:38 +02:00
1bb1c133e8 Consistently name db connection connection 2024-08-07 21:54:13 +02:00
71c712dce0 treewide: move some code around, spring cleaning 2024-08-07 21:17:27 +02:00
d0b750cd33 cargo clippy + fmt 2024-08-07 16:55:51 +02:00
9d0b632e9c Inline database quotation functions 2024-08-07 16:17:14 +02:00
01d502337d Don't fail on erroneus db connection closure 2024-08-07 16:16:46 +02:00
21c2fc2e8b cargo fmt + clippy 2024-08-06 23:48:31 +02:00
4353689a03 create compatibility layer for mysql-admutils commands 2024-08-06 23:31:47 +02:00
eddc0ad5e9 Fix issue where groupless users own all users/dbs 2024-08-04 17:51:49 +02:00
34dfc562a9 Remove group support on macOS, fixes #10 2024-07-12 20:53:03 +02:00
b0bffc45ee Add large parts of the permission editor 2024-07-09 19:51:59 +02:00
ccf1b78ce8 Reimplement most of the tool:
Most of the tool has been reimplemented, with the exception of the
permission editing feature, which is currently half implemented. There
are also several TODOs spread around that would benefit from some action
2024-04-23 00:47:58 +02:00