-
fc27159c46
WIP: add pipeline for publishing debs
publish-deb-pipeline
h7x4
2025-05-12 13:21:27 +02:00
-
c2d22ee7f8
flake.lock: bump, Cargo.lock: bump, Cargo.toml: update inputs, format, etc
main
h7x4
2025-05-07 10:39:10 +02:00
-
8ba946976d
README: add better description
h7x4
2025-03-18 12:38:17 +01:00
-
3c84dd5be1
Create deb package
dpkg-packaging
h7x4
2024-04-26 00:31:23 +02:00
-
-
1cfe9ab350
LICENSE: change from GPLv2-only to BSD3
h7x4
2025-01-18 22:40:48 +01:00
-
7aadb016a2
README.md: add badge for rust docs
h7x4
2025-01-18 21:51:57 +01:00
-
d9b11f6e38
Update rust dependencies
h7x4
2025-01-18 20:44:53 +01:00
-
3fb7c143fb
flake.nix: update to nixpkgs-unstable
h7x4
2025-01-18 20:36:35 +01:00
-
c1cf591492
.envrc: init
h7x4
2024-12-10 00:36:22 +01:00
-
d24be4eee6
.gitea/build: init
h7x4
2024-12-10 00:35:45 +01:00
-
a0be0d3b92
Wrap database users and database names in newtypes
h7x4
2024-08-20 17:46:43 +02:00
-
8c2754c9d7
cargo-deny: init
h7x4
2024-08-20 17:46:43 +02:00
-
338694a64e
Add more --json
flags
h7x4
2024-08-20 17:46:43 +02:00
-
cdb1fb4181
Integrate better with systemd + better logs and protocol usage
h7x4
2024-08-20 17:46:40 +02:00
-
a4067975b6
flake.nix: add rust-src
to rust toolchain for devshell
h7x4
2024-08-19 19:34:55 +02:00
-
e993644844
core/database_privileges: test edit-db-privs -p
parser
h7x4
2024-08-19 19:26:27 +02:00
-
fe60441c89
README: fix outdated command names
h7x4
2024-08-19 19:03:04 +02:00
-
0ce90ab42a
list-db
-> show-db
h7x4
2024-08-19 18:58:26 +02:00
-
51302d75f0
create-users
: default to setting no password in prompt
h7x4
2024-08-19 18:06:47 +02:00
-
b9a1d91630
Add nixos module
h7x4
2024-08-19 18:00:57 +02:00
-
b21aa0eece
Fix sql regex to work like ownership validation
h7x4
2024-08-19 17:57:35 +02:00
-
d1d06514a9
cargo fmt + clippy
h7x4
2024-08-19 17:52:16 +02:00
-
3556eb37ea
Dont drop privs as server
h7x4
2024-08-19 17:46:08 +02:00
-
20669569f3
Fix binary collation issues for privs as well
h7x4
2024-08-19 17:44:21 +02:00
-
f43499fca0
"downgrade" nixpkgs to stable, to avoid rust 1.80 breakage
h7x4
2024-08-19 17:11:19 +02:00
-
ed12a3153b
server/config: revamp
h7x4
2024-08-19 16:47:34 +02:00
-
48240489a7
Have server notify the client about db connection errors
h7x4
2024-08-19 16:46:12 +02:00
-
8fdfe457ac
Remove a few TODOs, either solved or converted to issue
h7x4
2024-08-19 02:43:05 +02:00
-
94e0e5d6c7
build.rs: small cleanup
h7x4
2024-08-19 02:23:49 +02:00
-
807017ea70
add shell completion
h7x4
2024-08-19 02:22:18 +02:00
-
0e38fbb7e9
flake.lock: update
h7x4
2024-08-19 02:23:23 +02:00
-
5d049390b8
passwd-user
: check for user existence before password input
h7x4
2024-08-19 00:49:20 +02:00
-
a6f00d4313
Ensure user/db prefix has a _
behind it
h7x4
2024-08-19 00:48:13 +02:00
-
cd0b2c3e6d
sd_notify(ready)
h7x4
2024-08-19 00:13:22 +02:00
-
93469a6e84
Add more serverside logging
h7x4
2024-08-19 00:11:11 +02:00
-
e4da639d5c
Fix sqlx parse error
h7x4
2024-08-19 00:09:27 +02:00
-
daa8e069d3
Fix sql statement for show-user
h7x4
2024-08-18 22:57:01 +02:00
-
86b5b47f1e
Add some logging
h7x4
2024-08-18 22:26:00 +02:00
-
9d88c95f33
Fix systemd socket activation
h7x4
2024-08-18 22:22:31 +02:00
-
53f19b3d05
Replace socket authentication mechanism with SO_PEERCRED
h7x4
2024-08-18 22:20:56 +02:00
-
94c9a54c14
Bump all deps, fix db connection closing issues
h7x4
2024-08-18 01:33:22 +02:00
-
168f832aec
Readd "databases where user has privileges" to show-user
h7x4
2024-08-18 00:17:55 +02:00
-
f957bbd9da
Don't validate prefixes and postfixes for db item ownership
h7x4
2024-08-17 22:30:30 +02:00
-
54a38255e6
privs editor: "New user" ->"Previously unprivileged"
h7x4
2024-08-17 21:27:46 +02:00
-
466d4a8b96
Use db name as example for privs editor
h7x4
2024-08-17 21:24:59 +02:00
-
af86893acf
Rewrite entire codebase to split into client and server
h7x4
2024-08-10 02:16:38 +02:00
-
20e60ca5c7
Add protocol for authenticating a unix socket
h7x4
2024-08-09 19:08:48 +02:00
-
dc29dd274a
flake.nix: create packaging, generate coverage
h7x4
2024-08-09 19:05:16 +02:00
-
e420c1f4d5
edit-db-privs: display diffs and ask before commiting
h7x4
2024-08-08 21:48:17 +02:00
-
7ee60dacdc
Misc fixups to priv diff logic, add tests
h7x4
2024-08-08 21:02:25 +02:00
-
8a91e9a3d0
core/database_operations: replace single field struct with sqlx unwrap
h7x4
2024-08-08 19:45:28 +02:00
-
e2193f47c1
Only pass the mysql config portion when connecting
h7x4
2024-08-08 19:40:57 +02:00
-
452fa22e9c
flake.nix: add cargo-nextest to devshell
h7x4
2024-08-08 19:31:02 +02:00
-
39a3f8ffd1
core/common: make testable, fix some status messages
h7x4
2024-08-08 19:30:27 +02:00
-
69870147f5
Add a few more status prints to the commands
h7x4
2024-08-08 00:56:30 +02:00
-
f78c88517f
Add lock-user
and unlock-user
h7x4
2024-08-08 00:53:26 +02:00
-
7e71b5071f
Report back more detailed results from commands
h7x4
2024-08-07 23:33:07 +02:00
-
21c1f8cc87
Fix clippy warnings
h7x4
2024-08-07 23:10:37 +02:00
-
011bcf9edc
More spring cleaning for privs, add test
h7x4
2024-08-07 23:00:38 +02:00
-
1bb1c133e8
Consistently name db connection connection
h7x4
2024-08-07 21:54:13 +02:00
-
5a7516aed8
Rename most instances of "permission" to "privilege"
h7x4
2024-08-07 21:51:03 +02:00
-
7025982d44
flake.nix: add mysql-client to devshell
h7x4
2024-08-07 20:50:56 +02:00
-
71c712dce0
treewide: move some code around, spring cleaning
h7x4
2024-08-07 20:50:39 +02:00
-
833251a1a2
show-user: add databases field, report when no users
h7x4
2024-08-07 20:30:16 +02:00
-
a3c894061c
Remove already fixed TODO
h7x4
2024-08-07 17:27:29 +02:00
-
e1f89b7b72
cargo clippy + fmt
h7x4
2024-08-07 17:25:28 +02:00
-
3d7d001f65
show-user: add --json
flag
h7x4
2024-08-07 17:21:26 +02:00
-
a9b8f7cee7
user_operations: don't fetch auth_string/password, only check existence
h7x4
2024-08-07 17:14:24 +02:00
-
d0b750cd33
cargo clippy + fmt
h7x4
2024-08-07 16:55:51 +02:00
-
d1c42dac8b
Wrap all operations in database transactions
h7x4
2024-08-07 16:54:26 +02:00
-
cb83942cc8
tokio: use single thread
h7x4
2024-08-07 16:45:24 +02:00
-
dadfa786ef
create-user: ask for password by default
h7x4
2024-08-07 16:43:55 +02:00
-
f75d2fee7a
replace deps edit
and rpassword
with dialoguer
h7x4
2024-08-07 16:43:26 +02:00
-
404e5371e3
build.rs: don't fail on symlink creation
h7x4
2024-08-07 16:19:40 +02:00
-
05c15da59d
Remove already fixed TODOs
h7x4
2024-08-07 16:18:48 +02:00
-
9d0b632e9c
Inline database quotation functions
h7x4
2024-08-07 16:17:14 +02:00
-
01d502337d
Don't fail on erroneus db connection closure
h7x4
2024-08-07 16:16:46 +02:00
-
460a8d6abb
core/user_operations: add a few docstrings
h7x4
2024-08-07 00:02:14 +02:00
-
21c2fc2e8b
cargo fmt + clippy
h7x4
2024-08-06 23:48:31 +02:00
-
fb7391a29c
edit-db-perm: ensure user exists before applying changes
h7x4
2024-08-06 23:41:11 +02:00
-
4353689a03
create compatibility layer for mysql-admutils commands
h7x4
2024-08-05 22:37:23 +02:00
-
c473a4823e
flake.nix: remove openssl from devshell
h7x4
2024-08-06 01:30:26 +02:00
-
eddc0ad5e9
Fix issue where groupless users own all users/dbs
h7x4
2024-08-04 14:29:34 +02:00
-
0b1b8c296c
.gitignore: add nix ignores
h7x4
2024-08-04 14:30:35 +02:00
-
44e23413ff
Align privilege tables in edit-db-perm and show-db-perm, fixes #5
Felix Albrigtsen
2024-07-12 23:35:57 +02:00
-
4a94265eae
Remove randomly generated example, run clippy. Fixes #6
Felix Albrigtsen
2024-07-12 21:59:44 +02:00
-
1a5dc96f0d
Simplify docker networking and clarify the README, fixes #8
Felix Albrigtsen
2024-07-12 21:27:15 +02:00
-
34dfc562a9
Remove group support on macOS, fixes #10
Felix Albrigtsen
2024-07-12 20:53:03 +02:00
-
e6e05df77e
flake.nix: replace fenix with rust-overlay
h7x4
2024-07-10 17:08:53 +02:00
-
2b056942eb
make database connection timeout configurable
h7x4
2024-07-09 21:34:59 +02:00
-
4dedde5edb
flatten subcommands and add better doc comments
h7x4
2024-07-09 19:54:27 +02:00
-
b0bffc45ee
Add large parts of the permission editor
h7x4
2024-04-26 00:30:32 +02:00
-
0837ac9fc7
README: add better documentation
h7x4
2024-05-14 02:21:39 +02:00
-
57a5c79be1
example-config: fix typo
h7x4
2024-05-14 02:21:23 +02:00
-
3c1a36861a
flake.nix: fix RUST_SRC_PATH
in devshell
h7x4
2024-05-14 02:21:06 +02:00
-
3deeeb45c2
Let mysql connection shut down gracefully
h7x4
2024-04-26 00:29:39 +02:00
-
561241d589
Add timeout to mysql connection
h7x4
2024-04-26 00:23:59 +02:00
-
2f039c0b1d
Add TUI stub
h7x4
2024-04-23 00:36:06 +02:00
-
ccf1b78ce8
Reimplement most of the tool:
h7x4
2024-04-21 06:03:25 +02:00
-
77f7085d2b
WIP: Create command structure
h7x4
2024-04-20 04:17:16 +02:00