Commit graph

8 commits

Author SHA1 Message Date
Elle Mouton
8527969031
accounts: remove accountFromMacaroon helper
We only use it in one place and we can just handle the unwrap of the
option there.
2025-05-21 14:14:12 +02:00
Elle Mouton
03712e6067
accounts: add an IDFromCaveates helper
And use that from the existing accountFromMacaroon helper (which will
then test the new helper by proxy).

We add this helper so that we can use it later on from the sessions
package where we want to extract an account ID from a caveat (we wont
have a full macaroon available).
2025-03-04 13:43:13 +02:00
Elle Mouton
86fc2ccf79
accounts: let interface methods take a context
Update the accounts `Store` and `Service` interfaces take a context.
This is in preparation for when the backend DB of the accounts service
is a SQL store which will have methods that take a context.
2025-01-16 09:19:04 +02:00
Elle Mouton
fde86d3136
accounts+mid: support for error handlers in accounts
We also want to be able to see via the trace logs if a request has
errored. So first we need to update the framework to be ready for this.
2024-06-06 12:43:56 -04:00
Elle Mouton
e807639f82
accounts: start adding request ID to context
In preperation for the trace logging we want to implement in an upcoming
commit (where logs for requests & responsescan be linked via their
request ID), we start adding the request ID to an intercepted account
request/response in this commit.
2024-06-06 12:43:56 -04:00
Viktor Tigerström
a49422f36f
accounts: disallow requests after critical errors 2023-09-28 12:58:36 +02:00
Oliver Gugger
568d7ad508
accounts+itest: fix linter and code style issues 2023-07-26 18:37:49 +02:00
Oliver Gugger
e4e51fbd8f
accounts: add account interceptor service
This commit introduces the account interceptor service which makes sure
that each request that contains an account macaroon is intercepted and
passed through the checkers component to track each RPC call's effects
on the account.
2022-12-02 10:06:50 +01:00