mirror of
https://github.com/dani-garcia/vaultwarden.git
synced 2026-07-18 09:52:56 -05:00
[PR #7320] Add GET /public/events Public API endpoint #41358
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/dani-garcia/vaultwarden/pull/7320
Author: @svrforum
Created: 6/9/2026
Status: 🔄 Open
Base:
main← Head:feat/public-events-api📝 Commits (3)
989fa9aAdd Event::to_json_public for Public API event model1c91b8aMake get_continuation_token reusable across modules283467fAdd GET /public/events Bitwarden-compatible Public API endpoint📊 Changes
3 files changed (+101 additions, -5 deletions)
View changed files
📝
src/api/core/events.rs(+1 -1)📝
src/api/core/public.rs(+48 -4)📝
src/db/models/event.rs(+52 -0)📄 Description
Implements the Bitwarden-compatible Public API
GET /public/eventsendpoint, which was previously missing.This lets organization API keys export event logs (e.g. for SIEM integration), matching upstream Bitwarden. It reuses the existing event store,
PublicTokenauth, pagination, and continuation-token mechanism. A newEvent::to_json_publicemits the Public API field names (itemId,memberId,object: "event", ...).Notes:
Verified locally with
cargo fmt --check,cargo clippy --features sqlite,mysql,postgresql -- -D warnings, andcargo test --features sqlite,mysql,postgresql(all pass), plus typos.🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.