TeskaLabs / seacat-auth

SeaCat Auth provides authentication, authorization, identity management, session management and other access control features.
GNU General Public License v3.0
11 stars 7 forks source link

Endpoint for pruning old audit entries #259

Closed byewokko closed 11 months ago

byewokko commented 11 months ago

closes #255 closes #254

Changes

No searching in audit

All methods that used searching in audit have been refactored. It is recommended that you drop all indexes from the audit collection (called a) in your mongo database.

Pruning old audit entries

Superuser-only endpoint. Deletes audit entries older than specified age.

PUT /audit/prune
{
  "max_age": <number of seconds or duration string>
}

New collection for last credentials events

Last login and authorization data are now stored in a dedicated collection separate from audit.