Commit Graph

100 Commits

Author SHA1 Message Date
fc27159c46 WIP: add pipeline for publishing debs 2025-05-12 13:21:27 +02: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
8ba946976d README: add better description
Some checks failed
Build / build (push) Has been cancelled
Build / check (push) Has been cancelled
Build / docs (push) Has been cancelled
2025-03-18 12:38:28 +01:00
1cfe9ab350 LICENSE: change from GPLv2-only to BSD3
All checks were successful
Build / check (push) Successful in 12m24s
Build / build (push) Successful in 13m47s
Build / docs (push) Successful in 15m32s
2025-01-18 22:40:48 +01:00
7aadb016a2 README.md: add badge for rust docs
All checks were successful
Build / build (push) Successful in 13m10s
Build / docs (push) Successful in 16m44s
Build / check (push) Successful in 11m18s
2025-01-18 21:51:57 +01:00
d9b11f6e38 Update rust dependencies
All checks were successful
Build / check (push) Successful in 12m25s
Build / build (push) Successful in 14m3s
Build / docs (push) Successful in 18m5s
2025-01-18 20:44:53 +01:00
3fb7c143fb flake.nix: update to nixpkgs-unstable
Some checks failed
Build / docs (push) Failing after 15s
Build / check (push) Has been cancelled
Build / build (push) Has been cancelled
2025-01-18 20:36:35 +01:00
c1cf591492 .envrc: init
All checks were successful
Build / build (push) Successful in 12m38s
Build / check (push) Successful in 11m36s
Build / docs (push) Successful in 12m5s
2024-12-10 00:36:41 +01:00
d24be4eee6 .gitea/build: init
Some checks failed
Build / check (push) Has been cancelled
Build / docs (push) Has been cancelled
Build / build (push) Has been cancelled
2024-12-10 00:35:45 +01:00
a0be0d3b92 Wrap database users and database names in newtypes
Also, use less cloning where possible
2024-08-20 17:46:43 +02:00
8c2754c9d7 cargo-deny: init 2024-08-20 17:46:43 +02:00
338694a64e Add more --json flags 2024-08-20 17:46:43 +02:00
cdb1fb4181 Integrate better with systemd + better logs and protocol usage
This commits adds the following:

- Better systemd integration and usage:
  - More hardening
  - A watchdog thread
  - Journald native logging

as well as

- Better logs
- Some protocol usage fixes
2024-08-20 17:46:40 +02:00
a4067975b6 flake.nix: add rust-src to rust toolchain for devshell 2024-08-19 19:34:55 +02:00
e993644844 core/database_privileges: test edit-db-privs -p parser 2024-08-19 19:26:27 +02:00
fe60441c89 README: fix outdated command names 2024-08-19 19:03:04 +02:00
0ce90ab42a list-db -> show-db 2024-08-19 18:58:26 +02:00
51302d75f0 create-users: default to setting no password in prompt 2024-08-19 18:06:47 +02:00
b9a1d91630 Add nixos module 2024-08-19 18:00:57 +02:00
b21aa0eece Fix sql regex to work like ownership validation 2024-08-19 17:59:13 +02:00
d1d06514a9 cargo fmt + clippy 2024-08-19 17:52:16 +02:00
3556eb37ea Dont drop privs as server 2024-08-19 17:46:08 +02:00
20669569f3 Fix binary collation issues for privs as well
Ref #66
2024-08-19 17:44:21 +02:00
f43499fca0 "downgrade" nixpkgs to stable, to avoid rust 1.80 breakage
grcov is breaking, see https://github.com/NixOS/nixpkgs/issues/332957
2024-08-19 17:11:19 +02:00
ed12a3153b server/config: revamp
- Adds options `socket_path` and `password_file`
2024-08-19 16:57:25 +02:00
48240489a7 Have server notify the client about db connection errors 2024-08-19 16:57:24 +02:00
8fdfe457ac Remove a few TODOs, either solved or converted to issue 2024-08-19 02:43:05 +02:00
94e0e5d6c7 build.rs: small cleanup 2024-08-19 02:23:49 +02:00
807017ea70 add shell completion 2024-08-19 02:23:31 +02:00
0e38fbb7e9 flake.lock: update 2024-08-19 02:23:30 +02:00
5d049390b8 passwd-user: check for user existence before password input 2024-08-19 00:49:20 +02:00
a6f00d4313 Ensure user/db prefix has a _ behind it 2024-08-19 00:48:13 +02:00
cd0b2c3e6d sd_notify(ready) 2024-08-19 00:13:22 +02:00
93469a6e84 Add more serverside logging 2024-08-19 00:11:11 +02:00
e4da639d5c Fix sqlx parse error 2024-08-19 00:09:27 +02:00
daa8e069d3 Fix sql statement for show-user 2024-08-18 22:57:01 +02:00
86b5b47f1e Add some logging 2024-08-18 22:26:00 +02:00
9d88c95f33 Fix systemd socket activation 2024-08-18 22:24:28 +02:00
53f19b3d05 Replace socket authentication mechanism with SO_PEERCRED 2024-08-18 22:22:58 +02:00
94c9a54c14 Bump all deps, fix db connection closing issues 2024-08-18 01:33:55 +02:00
168f832aec Readd "databases where user has privileges" to show-user 2024-08-18 00:17:55 +02:00
f957bbd9da Don't validate prefixes and postfixes for db item ownership 2024-08-17 22:30:30 +02:00
54a38255e6 privs editor: "New user" ->"Previously unprivileged" 2024-08-17 21:27:46 +02:00
466d4a8b96 Use db name as example for privs editor 2024-08-17 21:24:59 +02:00
af86893acf Rewrite entire codebase to split into client and server 2024-08-17 20:21:05 +02:00
20e60ca5c7 Add protocol for authenticating a unix socket 2024-08-09 19:09:04 +02:00
dc29dd274a flake.nix: create packaging, generate coverage 2024-08-09 19:05:16 +02:00
e420c1f4d5 edit-db-privs: display diffs and ask before commiting 2024-08-08 21:48:41 +02:00
7ee60dacdc Misc fixups to priv diff logic, add tests 2024-08-08 21:02:25 +02:00
8a91e9a3d0 core/database_operations: replace single field struct with sqlx unwrap 2024-08-08 19:45:28 +02:00