ClickHouse/programs/server/users.d
Vasily Nemkov c902afddde Added system.session_log table
Which logs all the info about LogIn, LogOut and LogIn Failure events.
Additional info that is logged:
- User name
- event type (LogIn, LogOut, LoginFailure)
- Event date\time\time with microseconds
- authentication type (same as for IDENTIFIED BY of CREATE USER statement)
- array of active settings profiles upon login
- array of active roles upon login
- array of changed settings with corresponding values
- client address and port
- interface (TCP\HTTP\MySQL\PostgreSQL, etc.)
- client info (name, version info)
- optional LoginFailure reason text message.

Added some tests to verify that events are properly saved with all necessary info via following interfaces:
- TCP
- HTTP
- MySQL

Known limitations
- Not tested against named HTTP sessions, PostgreSQL and gRPC, hence those are not guaranteed to work 100% properly.
2021-08-30 18:28:28 +03:00
..
access_management.xml Replace duplicate development config files with symlinks. (#16486) 2020-11-04 23:45:06 +03:00
allow_introspection_functions.xml Enable "allow_introspection_functions" for development 2020-05-10 04:18:16 +03:00
allow_only_from_localhost.xml Move all folders inside /dbms one level up (#9974) 2020-04-02 02:51:21 +03:00
log_queries.xml Replace duplicate development config files with symlinks. (#16486) 2020-11-04 23:45:06 +03:00
readonly.xml Replace duplicate development config files with symlinks. (#16486) 2020-11-04 23:45:06 +03:00
session_log_test.xml Added system.session_log table 2021-08-30 18:28:28 +03:00