Commit Graph

129 Commits

Author SHA1 Message Date
Nadja Reitzenstein
a43c38c118 Better errors when the db directory is missing 2022-05-31 13:11:48 +02:00
Kai Jan Kriegel
50b4394cfd update fabfire desfire appid 2022-05-24 23:41:42 +02:00
Nadja Reitzenstein
f905b1f375 Slightly more logging during authentication 2022-05-20 18:19:05 +02:00
Nadja Reitzenstein
25df5bf5b2 Switch to shadow-rs
Closes #58
2022-05-18 17:01:24 +02:00
Nadja Reitzenstein
c435f76d08 --version talks about API version too 2022-05-14 15:36:32 +02:00
Nadja Reitzenstein
d591daa884 Start on improving a few version thingies 2022-05-14 15:09:35 +02:00
Nadja Reitzenstein
d6858ab5a5 rustfmt 2022-05-05 19:22:02 +02:00
Nadja Reitzenstein
9e2be12fbd Make unit tests compile 2022-05-05 17:22:54 +02:00
Nadja Reitzenstein
2d9f30b55b Run rustfmt 2022-05-05 15:50:44 +02:00
Nadja Reitzenstein
cae3b3a83e Correcly dump and recreate user db on --load 2022-04-30 20:52:32 +02:00
Nadja Reitzenstein
cfaf4d509e Better error reporting for auth
Fixes: #49
2022-04-30 20:22:51 +02:00
Nadja Reitzenstein
505afccbf8 Implement addUserFallible instead of addUser 2022-04-28 20:38:44 +02:00
Nadja Reitzenstein
ed10b15a10 Only set search cap for manage for now 2022-04-28 20:35:06 +02:00
Nadja Reitzenstein
869f3d5e5f Add user search impl 2022-04-28 20:33:46 +02:00
Nadja Reitzenstein
b6c9b61511 impl relevant proto changes 2022-04-27 20:27:14 +02:00
Nadja Reitzenstein
46e3552e04 Implements a first bit of User management. 2022-04-27 20:19:04 +02:00
Nadja Reitzenstein
f4d793621c Remove doc warnings for now and fix others 2022-04-27 17:30:04 +02:00
Nadja Reitzenstein
4e10a981b2 Return full version string for --version
Fixes #53
2022-04-27 17:23:05 +02:00
Kai Jan Kriegel
df64d43e03 ran cargo fix 2022-04-26 23:21:43 +02:00
Kai Jan Kriegel
ba99f6f131 fixed Dockerfile 2022-04-26 23:18:50 +02:00
Kai Jan Kriegel
2c4b3c9cd0 also build machine if user has read perm 2022-04-24 20:10:06 +02:00
Nadja Reitzenstein
3300105082 Implement changes from fabaccess-api#24 2022-04-22 20:09:34 +02:00
Nadja Reitzenstein
047f7bc1de sensible search return values for non-existant/non-visible resources 2022-04-22 19:57:58 +02:00
Nadja Reitzenstein
15c878e1d2 comp 2022-04-21 23:04:07 +02:00
Nadja Reitzenstein
5538dd6751 User admin methods 2022-04-21 23:04:07 +02:00
Nadja Reitzenstein
3eab5b8702 Make auditlog log 2022-04-21 23:04:07 +02:00
Nadja Reitzenstein
c402c71abc Keep old config system 2022-04-21 23:04:07 +02:00
Nadja Reitzenstein
e6682ca8a8 Remove copyright for now 2022-04-21 23:04:07 +02:00
Nadja Reitzenstein
b02afe5575 Splitting config 2022-04-21 23:04:07 +02:00
Kai Jan Kriegel
831b18128d fix fabfire mechanism integration and improve logging 2022-03-19 06:00:21 +01:00
Nadja Reitzenstein
33e8a62d2a Implement more API to make Borepin happier 2022-03-16 20:17:59 +01:00
Nadja Reitzenstein
538b0b28f1 Importing X-FABFIRE auth mechanism 2022-03-16 19:32:03 +01:00
Nadja Reitzenstein
29a44bdb6a Make capnp machines api work again 2022-03-16 19:01:09 +01:00
Nadja Reitzenstein
2b7044d498 Compile with new DB system 2022-03-16 18:10:59 +01:00
Nadja Reitzenstein
1156174d7a Remove DB code that assumes alignment 2022-03-15 21:53:21 +01:00
Nadja Reitzenstein
a145efc948 LMDB does not guarantee alignment. 2022-03-15 21:24:21 +01:00
Nadja Reitzenstein
648026574f Commit on useradd 2022-03-15 20:00:52 +01:00
Nadja Reitzenstein
c0b311e14c Cargo fix 2022-03-15 20:00:43 +01:00
Nadja Reitzenstein
2e5f343d52 Tracing and dumping 2022-03-15 19:56:41 +01:00
Nadja Reitzenstein
48003ef51c Cleanup authentication 2022-03-15 19:16:33 +01:00
Nadja Reitzenstein
a111a86266 Impl roles 2022-03-15 19:14:04 +01:00
Nadja Reitzenstein
d7467989ef Splitting bffhd setup routines 2022-03-15 19:13:55 +01:00
Nadja Reitzenstein
5c9b72c37d Session initialization 2022-03-15 17:52:47 +01:00
Nadja Reitzenstein
2e9c7fbc19 Make Users DB a global resource 2022-03-15 16:28:11 +01:00
Nadja Reitzenstein
4ff0abd161 DB indexing code 2022-03-15 16:27:52 +01:00
Nadja Reitzenstein
ddd8add270 User db & loading 2022-03-13 22:50:37 +01:00
Nadja Reitzenstein
c4dac55b23 Copy actor types 2022-03-13 21:54:48 +01:00
Nadja Reitzenstein
613e62c7e6 Actor loading & configuring 2022-03-13 21:34:05 +01:00
Nadja Reitzenstein
bd98f13f67 Simplify Actor impl to have a static source 2022-03-13 20:38:11 +01:00
Nadja Reitzenstein
07a7cbe42b Resources lookup impl 2022-03-13 20:33:26 +01:00
Nadja Reitzenstein
d5833f30c4 Adding machines back to config 2022-03-13 20:14:50 +01:00
Nadja Reitzenstein
cc48dcca17 DB up/down/sidegrade 2022-03-13 20:11:37 +01:00
Nadja Reitzenstein
df5ee9a0a1 Api framework impl 2022-03-13 17:29:21 +01:00
Nadja Reitzenstein
87af5fde94 Implement more API 2022-03-12 17:31:53 +01:00
Nadja Reitzenstein
c5852d50fb Cleaning up code 2022-03-12 14:23:07 +01:00
Nadja Reitzenstein
7015fd755a move things for the new API schema 2022-03-12 02:00:55 +01:00
Nadja Reitzenstein
20a47d9444 Improve examples 2022-03-12 01:28:07 +01:00
Nadja Reitzenstein
f367207d01 Pull more things from 0.3.2 2022-03-12 01:27:58 +01:00
Nadja Reitzenstein
495f9cb36a Make auditlog work 2022-03-12 01:27:41 +01:00
Nadja Reitzenstein
3e4350d2cf Import auditlog from v0.3.2 2022-03-11 23:00:02 +01:00
Nadja Reitzenstein
c54b44e720 Run until signal 2022-03-11 22:43:50 +01:00
Nadja Reitzenstein
f79e73d669 update config parsing to new format 2022-03-11 22:17:51 +01:00
Nadja Reitzenstein
13bfb2fbee Moving towards implementing the 0.3.2 featureset 2022-03-11 22:13:54 +01:00
Nadja Reitzenstein
4f36eedf6a Let's try to get this as the next v0.3 2022-03-10 20:52:34 +01:00
Nadja Reitzenstein
487dc2270d Move API back to v0.3 2022-03-10 20:52:03 +01:00
Nadja Reitzenstein
520a33f0aa Module refactor part 2 2022-03-08 18:56:03 +01:00
Nadja Reitzenstein
e643a50f4d Module refactor part 2 2022-03-08 18:52:49 +01:00
Nadja Reitzenstein
10e4ff080c Modules renaming 2022-03-08 16:41:38 +01:00
Nadja Reitzenstein
f932ff8e7a reduce warnings and do more things 2022-03-07 18:27:54 +01:00
Nadja Reitzenstein
4778c7a8d3 Commit current state 2021-12-17 16:43:31 +01:00
Nadja Reitzenstein
d7a66e2149 Actors, Initators, and Sensors first draft 2021-12-15 23:42:16 +01:00
Nadja Reitzenstein
8db5580c90 Stuff 2021-12-06 21:53:42 +01:00
Nadja Reitzenstein
8c28e50cac Start with API implementation 2021-11-26 22:11:24 +01:00
Nadja Reitzenstein
26b2888a09 DB Refactor 2021-11-26 21:01:43 +01:00
Nadja Reitzenstein
b16c660058 Clean up structure a bit 2021-11-26 02:25:48 +01:00
Nadja Reitzenstein
32894300f4 Kick out asyncio into an external crate for later 2021-11-25 23:36:17 +01:00
Nadja Reitzenstein
3231b51f89 Make more things burn less 2021-10-28 01:10:35 +02:00
Nadja Reitzenstein
150b2e68d9 More fragmentation 2021-10-28 00:32:25 +02:00
Nadja Reitzenstein
0cca818cc1 Restructure 2021-10-27 23:20:46 +02:00