Skip to content

Create a scalable activity system for collecting, storing, and querying audit logs #536

@scotwells

Description

@scotwells

Summary

Create a new aggregated apiserver that lets a user search for audit logs that have been generated from the platform. This apiserver will serve as the foundation that will let us develop activity logs as a human readable versions of audit logs.

This will also let us adjust the backend storage system for the audit logs over time without having to update API client. We'll also use this opportunity to move to Clickhouse for audit log storage as it's a better storage backend for structured audit logs.

Motivation

The portals are retrieving audit logs directly from Loki. Loki was intended to be a short-term option for storing audit logs while we developed a hardened backend for audit log storage. Introducing an API in front of the portals and backend will allow us to adjust the backend over time without impacting client integrations. This also will allow us to expose an API to end-users to retrieve audit logs for their projects or organizations.

Goals

  • Introduce an API that lets users search audit logs stored in the system
  • Move to Clickhouse for audit log storage
  • Design such that we can easily bolt on activity log descriptors in the future

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions