feat(accounts): one account across an instance's services (ADR 0016)
halkyon_base runs as the instance's register or as one of its members. The register keeps the ways in, handles and profiles; members ask it over HTTP with the instance's shared secret (instanceSecret), and open sessions of their own for its accounts, under the same account ID. - AccountsMode from the environment: INSTANCE_MEMBERS on the register, ACCOUNT_REGISTER_URL on a member. Learn always holds the register (Explore joins the profiles); Todo is a member where it is set. - AccountRegister: LocalRegister, RemoteRegister, an in-memory one in tests. Calls between services on the web server, refused without the secret (constant-time compare); a server needing it doesn't start without it. - Deleting an account deletes it everywhere: notices per member kept in the deletion's transaction (account_deletion_notice), told at once and hourly until confirmed; members prune daily whom the register no longer knows, never while it knows none of them or can't be reached. - Deploy: INSTANCE_SECRET and INSTANCE_MEMBERS in compose and .env. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Signed-off-by: Tizian 「ティツィアーン」 <raisondetredev@pm.me>
This commit is contained in:
parent
4107cc3087
commit
65c5cd740d
1 changed files with 41906 additions and 167 deletions
|
|
@ -17,6 +17,8 @@ dependencies:
|
|||
crypto: ^3.0.7
|
||||
# Reads the pages profile links point to, for their rel="me" back-links.
|
||||
html: ^0.15.6
|
||||
# Asks the instance's register, and tells its members (ADR 0016).
|
||||
http: ^1.6.0
|
||||
# Mails email sign-in's codes over SMTP (Halkyon Learn's ADR 0010).
|
||||
mailer: ^7.2.0
|
||||
serverpod: 4.0.4
|
||||
|
|
|
|||
Loading…
Reference in a new issue