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