* Fix config validation for auth query when there is no PAM module available in system
* Fix compiler warns
Co-authored-by: Kirill Reshke <reshke@qavm-da1bb86b.qemu>
* Move auth query server querying logic to separate file
* Refactor query code to support not only "auth_query" like queries
* Move storage logic to separate file & add storage watchdog
* Force several settings on starts
* Fix simple query parsing
* Fixed bugs
* Fix config reload
* Add tests
* Move cathcup logic to separate func
* Fix tests[2]
Co-authored-by: Andrey Borodin <amborodin@acm.org>
* Reject extraneous data after SSL negatiation
This prevents attacks like in CVE-2021-23214 and CVE-2021-23222.
* Fix fmt issue
Co-authored-by: reshke <reshkekirill@gmail.com>
* Early implementation
* Added description for gauges
* Added prometheus lib finding to Cmake
* Fixed FindProm comments
* Small changes
* free to prom_free
* Moved metrics to separate file
* Refactored & added new methods to prom_metrics
* Refactored cron.c to use prom_metrics.h
* Refactored CMake & odyssey.h
* Added new metrics
* Small refactoring
* Small method renaming
* Small fix in init
* Added methods for use in od_cron_stats_cb
* Small fixes
* Refactored metrics to use separate collectors
* Small fix
* Passing metrics to od_cron_stat_cb now.
* Removed unused imports
* Removed old od_log calls
* Removed TODO
* Revert "Removed old od_log calls"
This reverts commit 60000c8321.
* Uncommented od_log calls
* Added processed clients field to metrics
* Refactored metrics init
* Fixed write_stat
* Added method for worker stats
* Added method for worker stat to metrics header file
* Refactored worker stat method
* Reverted changes in odyssey.h
* Added writing metrics to od_worker
* Added new method to logger
Method provides writing big strings to log without formatting.
* Fixed prometheus log writing
* More fixes
* Fixed log writing
* Fixed log calls
* Added TODO
* Added assertion whether prom.h found
* Fixed no format logger method
Now logs follow log format
* Fixed logger
* Added log_stats_prom option to config
* Renamed od_logger_write_no_fmt to od_logger_write_plain
* Formatted
* More ifdefs
* Added memory deallocating in od_cron_stop
* Updated configuration.md
* Removed outdated TODO
* Changed label
* Formatted
* Better indentation for client_max, print ldap endpoint name for ldap-auth route
* Better logging in ldap connection initialization
* Fix compiler usused arg warning
* Fix reload of ldap endpoints: make them a part of od rules struct;
Co-authored-by: reshke <Kirill Reshke>