Skip to content

Conversation

@Traubert
Copy link
Collaborator

@Traubert Traubert commented Dec 16, 2025

This is quite a big PR, accomplishing three closely related things:

  1. Add support in the DB and auth code for entitlements. They live in their own table, and both they and users can be "grantees" referenced by the GRANTS table. In practice, Mink corpora will have grants referencing users, and KP corpora will have grants referencing entitlements.

  2. Add admin endpoints for editing the database. Also nerfed the Mink endpoints so that Mink will only be able to affect Mink corpora, not (accidentally) production KP corpora. Also add a bunch of tests.

  3. Add admin tool for adding KP corpora to the database. It accepts the TSV format emitted by the legacy "korp-authdb.py lbr_map" See tools/README.md.

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