digitalbazaar / digitalbazaar/bedrock-tokenization

Explore solutions to preserving usage of document registrations when HMACs rotate

Open
#42 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

enhancement
Dominant language
JavaScript
Stars
3
Forks
2
Avg merge
5m
Merged PRs (30d)
1

Description

Currently when a tokenizer rotates (hmac rotation) and a new one becomes current, all existing document registrations will no longer be reused when generating new tokens. In other words, a "new identity" will be created for every document registration that occurs after the rotation. There are a number of ways to address this for workflows where it matters. At least two ways include:

  1. Pre-duplicating all document registrations using the new tokenizer prior to making it current.
  2. Hashing for every possibly "still in use" tokenizer -- instead of just the current one -- when looking up existing records. When an existing record is found, it could be updated to use the next tokenizer. Eventually, the "previous" tokenizer would drop off. See bedrock-resource-restriction for some patterns to consider.

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

No files or tests are named. Start by tracing tokenizer rotation and document-registration lookup in bedrock-tokenization, then review the linked bedrock-resource-restriction patterns. Done requires selecting and implementing a design that preserves registration reuse across rotation, with validation for the affected workflows.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
backend, security
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.