feat: update access token environment variables and enhance device signing process for E2EE agents; add verification script and system flow documentation
This commit is contained in:
@@ -115,7 +115,7 @@ tools:
|
||||
matrix:
|
||||
homeserver: "https://matrix-af2f3d.organic-machine.com"
|
||||
user_id: "@asistente-2:matrix-af2f3d.organic-machine.com"
|
||||
access_token_env: MATRIX_TOKEN_ASISTENTE2
|
||||
access_token_env: MATRIX_TOKEN_ASISTENTE_2
|
||||
device_id: "XUGTSZJYFQ"
|
||||
|
||||
encryption:
|
||||
|
||||
@@ -116,7 +116,7 @@ tools:
|
||||
matrix:
|
||||
homeserver: "https://matrix-af2f3d.organic-machine.com"
|
||||
user_id: "@assistant-bot:matrix-af2f3d.organic-machine.com"
|
||||
access_token_env: MATRIX_TOKEN_ASSISTANT
|
||||
access_token_env: MATRIX_TOKEN_ASSISTANT_BOT
|
||||
device_id: "SMWMRKMHDH"
|
||||
|
||||
encryption:
|
||||
|
||||
@@ -68,6 +68,13 @@ func New(cfg *config.AgentConfig, rules []decision.Rule, logger *slog.Logger) (*
|
||||
}
|
||||
}
|
||||
|
||||
// Sign own device with the self-signing key so Element shows it as verified.
|
||||
if err := matrixClient.SignOwnDevice(context.Background()); err != nil {
|
||||
logger.Warn("failed to sign own device (non-fatal)", "err", err)
|
||||
} else {
|
||||
logger.Info("own device signed with cross-signing key")
|
||||
}
|
||||
|
||||
logger.Info("e2ee ready")
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user