You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
multi: persist full mac root key in sql actions db
When migrating the actions store from kvdb to sql, we will update the
existing actions to include the full mac root key, instead of just the
last 4 bytes (currently called `MacaroonIdentifier`). In order to do so,
we change the sql implementation of the `actions` store to persist the
full mac root key, instead of just the last 4 bytes. As no production
data in the sql actions store exists for users yet, it's fine for us to
change this without having to address old sql actions which only stored
the last 4 bytes.
Note though that we do not update the kvdb implementation, and the full
macaroon root key will be ignored by the kvdb store even if set.
Therefore, the rest of `litd` will still have to just expect the last 4
bytes of the mac root key when accessing an `Action`'s
MacaroonIdentifier. Therefore, we we currently never expose the rest of
the mac root key outside of the sql actions store.
Once the kvdb store has been fully deprecated and removed, we can then
update the rest of `litd` to also use the full mac root key, and change
the `Action` struct's field to reflect this.
0 commit comments