Commit Graph

119 Commits

Author SHA1 Message Date
c2dcd40442 cargo fmt
Some checks failed
Build / check (push) Successful in 11m49s
Build / build (push) Successful in 12m51s
Build / docs (push) Has been cancelled
2025-11-10 23:50:55 +09:00
7514d5e738 flake.nix: set vim as default editor in test vm
Some checks failed
Build / check (push) Failing after 5m52s
Build / build (push) Successful in 13m18s
Build / docs (push) Successful in 15m43s
2025-11-10 22:56:37 +09:00
c6d3bbca6f Add warning comments for functions running as SUID/SGID
Some checks failed
Build / check (push) Failing after 5m22s
Build / build (push) Successful in 14m47s
Build / docs (push) Successful in 15m41s
2025-11-10 12:11:24 +09:00
d932b57aaa Use multithreaded tokio runtime for external server
Some checks failed
Build / check (push) Failing after 5m19s
Build / build (push) Successful in 13m21s
Build / docs (push) Successful in 18m22s
2025-11-10 01:28:01 +09:00
f90e60d856 server: don't unset NOTIFY_SOCKET on enabling watchdog 2025-11-10 01:06:37 +09:00
46c5d372b2 Deduplicate common username/group prefixes in error msg
Some checks failed
Build / check (push) Failing after 5m20s
Build / build (push) Successful in 12m54s
Build / docs (push) Successful in 16m35s
2025-11-10 00:50:36 +09:00
e8b28f5116 flake.nix: misc fixes to test vm
Some checks failed
Build / docs (push) Has been cancelled
Build / build (push) Has been cancelled
Build / check (push) Has been cancelled
2025-11-10 00:40:01 +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
05a4f9ad1d module.nix: don't run with debug logging by default (move to test vm) 2025-11-09 20:28:19 +09:00
a57eefa5be module.nix: render config to /etc 2025-11-09 20:27:36 +09:00
45fbec1ad4 module.nix: default runtimedir to /run, improve systemd unit 2025-11-09 20:14:48 +09:00
968c71ba79 example-config.toml: improve comments, default runtimedir to /run 2025-11-09 20:14:10 +09:00
44c2fe3eca Cargo.toml: add additional metadata
All checks were successful
Build / check (push) Successful in 11m32s
Build / build (push) Successful in 14m50s
Build / docs (push) Successful in 15m40s
2025-11-09 19:26:07 +09:00
3405010508 README: add note about nixos vm
All checks were successful
Build / check (push) Successful in 11m53s
Build / build (push) Successful in 12m53s
Build / docs (push) Successful in 16m38s
2025-11-09 18:49:48 +09:00
0294381804 module.nix: explicitly disable PrivateIPC
All checks were successful
Build / build (push) Successful in 12m55s
Build / check (push) Successful in 11m32s
Build / docs (push) Successful in 15m46s
2025-11-09 16:07:19 +09:00
0457a2317d flake.nix: add runnable vm configuration 2025-11-09 16:06:55 +09:00
1ee79a5b47 flake.lock: bump, Cargo.toml: update inputs 2025-11-09 16:06:08 +09:00
92f6561190 .gitea/workflows: update gitea-web target host
Some checks failed
Build / docs (push) Failing after 1m20s
Build / check (push) Failing after 6m10s
Build / build (push) Successful in 13m44s
2025-08-03 04:53:25 +02:00
f212ef1bfb Cargo.toml: update deps, flake.nix: add cargo-edit, bump nixpkgs
Some checks failed
Build / build (push) Failing after 1m25s
Build / check (push) Failing after 6m32s
Build / docs (push) Failing after 7m37s
2025-07-11 19:09:43 +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