f1c135850c
lacre.admin: Report misconfiguration
...
Also: log more info when the daemon starts.
2024-03-01 19:47:10 +00:00
aa2eb604d4
lacre.admin: Add a sub-command to manipulate database schema
...
- It supports option '-i' to initialise the schema.
- It logs a warning-level record of the schema manipulation.
2024-02-21 21:10:49 +01:00
bfd3541b18
Retrieve data from db result before returning from Context Manager
...
SQLAlchemy's connection is a Context Manager and if we return a result from
code wrapped in a Context Manager, its cursor might already be closed.
2024-01-20 18:52:47 +01:00
8d2bf403a7
Add lacre.admin queue --list option, log query parameters
2024-01-16 20:33:23 +01:00
55a369df83
Add debug sqlalchemy logs (disabled by default)
2024-01-08 22:45:59 +01:00
cd67b0934e
Unify configuration requirements
2024-01-08 22:19:10 +01:00
41b7535412
Add more logging, add --delete option to admin queue sub-command
2023-12-19 09:02:42 +01:00
90da933bf9
Make disconnect handling configuration explicit
...
- Provide a new reuqired parameter: [database]pooling_mode and use it during
SQLAlchemy engine initialisation.
- Update tests and configuration (including sample configuration).
- Adjust repository unit test to load config during setup.
- Pass an engine instance to repository constructors instead of connections.
Engine keeps a connection pool and we rely on it.
2023-12-17 14:03:20 +01:00
d51c675881
lacre.admin: Make import -r option a flag (Boolean)
2023-12-05 21:51:35 +01:00
abaf8820d7
lacre.admin: Add -r / --reload option to import command
...
With -r option, import command will first remove all identities and then load
them again from pubring.kbx.
2023-12-05 21:49:23 +01:00
0975ce3a69
lacre.admin: Handle database exceptions
2023-11-26 19:52:58 +01:00
b44bd7b150
lacre.admin: Implement identity import, fix identity list
...
- Let the user specify a directory, using the one from configuration by
default.
- If user requested identity list without a specific email, list all. Drop
support for '-a' option.
2023-11-26 18:30:25 +01:00
626fce5f2c
lacre.admin: Implement 'identities' sub-command
2023-11-25 16:08:54 +01:00
7fe52ae8b5
Don't pass table definition to KeyConfirmationQueue
2023-11-25 15:02:48 +01:00
1ad0d2df0e
Implement lacre.admin CLI tool
2023-11-25 14:07:10 +01:00