Skip to content

Add data collection access logging app - #456

Open
kvo3 wants to merge 1 commit into
masterfrom
kristenliu/dc-access-logging-app
Open

Add data collection access logging app#456
kvo3 wants to merge 1 commit into
masterfrom
kristenliu/dc-access-logging-app

Conversation

@kvo3

@kvo3 kvo3 commented Jul 29, 2026

Copy link
Copy Markdown

Adds a new Workbench devcontainer app for auditing data collection access grants. The app is a Flask web application that queries BigQuery monitoring tables (workbench-bq-log-sink) to provide visibility into who has access to a data collection, how they got it (directly or via group membership), and when.

Views

  • Forensic: Data Collection (landing page) — Full history of access grants for a data collection. Shows GROUP, MEMBER, and INDIVIDUAL grants with role,
    timestamp, and actor. Group rows are expandable to show who was in the group at the time of the grant. Supports hiding revoked access and toggling between
    user-facing and internal group names.
  • Group Membership Audit — Full grant/revoke history for a Workbench group, with a "current members only" filter.

Features

  • Configurable org and environment via env vars, config.yaml, or auto-detected from wb workspace describe
  • Org override field on all views for cross-org lookups without restarting the app
  • Search values persist across tab navigation
  • Client-side table filtering (AND/OR keyword search), column sorting, column-level filters, and resizable columns

Infrastructure

  • Dockerized with docker-compose.yaml and .devcontainer.json for Workbench devcontainer deployment
  • Python 3.11 slim base image, Gunicorn with 2 workers / 4 threads
  • .gitignore added to exclude .venv/, pycache/, and .env files

BENCH-8927

Flask app for auditing data collection access grants via BigQuery
monitoring tables. Includes forensic views for DC access history and
group membership audit with filtering, sorting, and org override.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@kvo3
kvo3 requested review from a team as code owners July 29, 2026 21:25
@kvo3
kvo3 requested review from NavidZ and emmarogge July 29, 2026 21:34
@kvo3 kvo3 closed this Jul 29, 2026
@kvo3 kvo3 reopened this Jul 30, 2026
@kvo3
kvo3 requested review from june-hua and pantherman594 July 30, 2026 14:45

@emmarogge emmarogge left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants