Commit graph

37 commits

Author SHA1 Message Date
Firstyear 82a883089f
Allow versioning of server configs ()
This allows our server configuration to be versioned, in preparation
for a change related to the proxy protocol additions.
2025-04-02 02:44:19 +00:00
Sebastiano Tocci 9611a7f976
Fixes : add configurable maximum queryable attributes for LDAP () 2025-02-21 12:14:47 +10:00
Jalil David Salamé Messina c4bc1ff546
fix(server/config): reduce string allocations ()
Previously the code would do `key.replace("KANIDM_", "")`, this
allocates a new string, which is unnecessary, as we can simply call
`strip_prefix("KANIDM_")`.

This removes the `KANIDM_` prefix from a bunch of places, and doubles as
a check that the variable is prefixed with `KANIDM_`. Overall I believe
this change makes the code more robust and slightly reduces allocations,
speeding up an admittedly cold function (only called very infrequently).
2025-01-10 23:20:15 +00:00
Firstyear 226274da23
20250102 freebsd client ()
Support freebsd as a unix client
2025-01-04 09:22:44 +10:00
Firstyear 2e6d940691
Remove WASM ()
liberal party took over, more cuts
2024-10-26 17:19:13 +10:00
James Hodgkinson c8b3b6214c
Cache buster buster () 2024-10-15 01:54:46 +00:00
James Hodgkinson 5313c5ffdc
Reorganising the daemon startup so it doesn't fail with OTEL configured () 2024-07-26 07:28:35 +00:00
James Hodgkinson 2a7a009482
clippying all the things ()
* clippying all the things
2024-07-26 07:02:37 +00:00
Firstyear b58370adc8
Configurable thread count ()
* added `thread_count` configuration for the server
* added `thread_count` to orca

---------

Co-authored-by: Sebastiano Tocci <sebastiano.tocci@proton.me>
2024-06-21 11:47:36 +10:00
James Hodgkinson 1d0a606e69
WIP: serialization and domain info setting wonkiness () 2024-05-28 11:49:30 +10:00
Lukas Schulte Pelkum f5be44f2fc
fix DB_PATH variable propagation () 2024-05-25 23:27:08 +00:00
Firstyear 58cfc8bdf9
Minor upgrade fixes () 2024-04-24 17:21:45 +10:00
Firstyear 3760951b6d
Add domain version test framework ()
Co-authored-by: James Hodgkinson <james@terminaloutcomes.com>
2024-02-28 21:04:33 +00:00
James Hodgkinson 4096b8f02d
Changing to allow startup without a config file ()
* Changing to allow startup without a config file, using environment variables
2024-02-27 15:40:00 +10:00
James Hodgkinson 84b2c4956d
Removing unused constant and updating docstring for LDAP bind address () 2024-02-20 11:10:02 +10:00
Firstyear 3549c8562f
Remove replication is in dev flag () 2024-02-16 11:39:43 +10:00
Firstyear 50c324c063
Fix inverted key/chain logic from TLS error improvement () 2024-01-24 16:51:41 +10:00
Firstyear 967bc7c9df
Improve TLS configuration errors ()
This improves the errors during TLS configuration to localise them to
the error site, as well as calling our file path diagnostics tool
to assist with permission errors.
2024-01-23 16:13:14 +10:00
Firstyear cc79b2a205
20231222 piv authentication ()
Foundations of PIV authentication
2023-12-29 23:15:26 +00:00
James Hodgkinson 307a66ea29
Update docs, closes SQLite Write-Ahead Logging might make page size immutable () 2023-12-30 08:34:50 +10:00
James Hodgkinson 916bb4ec04
Adding env var configs for the server ()
* env var config for server
* I am my own clippy now
* Man, that got complicated quick
2023-11-24 01:27:49 +00:00
James Hodgkinson 60e5935faa
Moving daemon tracing to OpenTelemetry ()
* sally forth into the great otel unknown
* make the build env identification slightly more durable
* docs updates
* wasm recompile
2023-11-09 05:15:12 +00:00
James Hodgkinson cf35a7e667
Feature: configurable replication poll interval ()
* Feature: configurable replication poll interval ()
* Updating log messages because REPL != LDAP
2023-11-02 02:07:53 +00:00
James Hodgkinson ef96ca6aa1
started writing docs and ended up in another rabbit hole ()
* started writing docs and ended up in another rabbit hole
* updoots
* dangit fedora
2023-10-31 19:15:35 +10:00
James Hodgkinson f28d5cef22
OpenAPI/swagger docs autogen ()
* always be clippyin'
* pulling oauth2 api things out into their own module
* starting openapi generation
2023-10-14 12:39:14 +10:00
Firstyear 88da55260a
Add file diagnosis () 2023-10-12 12:09:54 +10:00
Firstyear f6d2bcb44b
68 20230929 replication finalisation ()
Replication is now ready for test deployments!
2023-10-05 11:11:27 +10:00
Firstyear 3e345174b6
68 20230919 replication configuration () 2023-09-29 12:02:13 +10:00
James Hodgkinson c998a1eda5
bindaddress default doesn't match documentation ()
Fixes 
2023-09-26 09:38:07 +10:00
James Hodgkinson 9a6168b67d
Fixing test release ()
* Fixing cargo test --release

* more tracing less dbg
2023-08-15 15:42:15 +10:00
Sebastiano Tocci c742497866
providing server configuration in the testkit::test macro () 2023-08-08 20:01:18 +10:00
Firstyear e17dcc0ddb
1788 admin unix socket () 2023-07-24 10:05:10 +10:00
James Hodgkinson cc35654388
Converting from tide to axum ()
* Starting to chase down testing
* commenting out unused/inactive endpoints, adding more tests
* clippyism
* making clippy happy v2
* testing when things are not right
* moar checkpoint
* splitting up testkit things a bit
* moving https -> tide
* mad lad be crabbin
* spawning like a frog
* something something different spawning
* woot it works ish
* more server things
* adding version header to requests
* adding kopid_middleware
* well that was supposed to be an hour... four later
* more nonsense
* carrying on with the conversion
* first pass through the conversion is DONE!
* less pub more better
* session storage works better, fixed some paths
* axum-csp version thing
* try a typedheader
* better openssl config things
* updating lockfile
* http2
* actually sending JSON when we say we will!
* just about to do something dumb
* flargl
* more yak shaving
* So many clippy-isms, fixing up a query handler bleep bloop
* So many clippy-isms, fixing up a query handler bleep bloop
* fmt
* all tests pass including basic web logins and nav
* so much clippyism
* stripping out old comments
* fmt
* commenty things
* stripping out tide
* updates
* de-tiding things
* fmt
* adding optional header matching ,thanks @cuberoot74088
* oauth2 stuff to match  but in axum
* CLIPPY IS FINALLY SATED
* moving scim from /v1/scim to /scim
* one day clippy will make sense
* cleanups
* removing sketching middleware
* cleanup, strip a broken test endpoint (routemap), more clippy
* docs fmt
* pulling axum-csp from the wrong cargo.toml
* docs fmt
* fmt fixes
2023-07-05 22:26:39 +10:00
James Hodgkinson cc1cc691f3
Started chasing noise, found some code to delete... ()
logging changes:

* Offering auth mechanisms -> debug
* 404's aren't really warnings
* double tombstone message, one goes to debug

other changes:

* CSP changes to allow the bootstrap images to load
* more testing javascriptfile things, I R 
* it's nice to know where things are
* putting non-rust web things in static/ instead of src/
* RequestCredentials::SameOrigin is the default, also adding a utility function to save dupe code. Wow this saved... kilobytes.
* removing commented code, fixing up codespell config
* clippyisms
* wtf, gha
* dee-gloo-ing some things
* adding some ubuntu build test things
* sigh rustwasm/wasm-pack/issues/1138
* more do_request things
* packaging things
* hilarious dev env setup script
* updated script works, all the UI works, including the experimental UI for naughty crabs
* deb package fixes
* fixed some notes
* setup experimental UI tweaks
2023-06-27 11:38:22 +10:00
James Hodgkinson f25bd5bb65
Kanidmd is a bit noisy ()
* the log_level config option works in kanidmd now
* anon event -> debug
* some more debuggy things
* removing some dupe events for the same thing
2023-06-24 15:56:01 +10:00
Firstyear 33f0034b80
20230424 clippppppppppppyyyyyyyy ()
* Resolve a lot of clips
2023-04-26 21:55:42 +10:00
Firstyear 00cca81012
1399 cleanup reorg () 2023-03-01 13:10:52 +10:00
Renamed from kanidmd/core/src/config.rs (Browse further)