Add client identities in storage
Before raising this MR, consider whether the following are required, and complete if so:
-
Unit tests -
Metrics -
Documentation update(s)
If not required, please explain in brief why not.
Description
This PR adds the ClientIdentity
model and related DB changes.
The optional new model is to track the identities of clients that create operations. This enables us to track usage data of remote execution.
The attributes of the new model are inspired by JWT spec: https://www.rfc-editor.org/rfc/rfc7519
Changes proposed in this merge request:
- Add
ClientIdentity
model - In
Operation
, add a new column to reference the new model - Update
data_store
implementation
Validation
- Unit tests
Edited by Zehao Chen