Skip to content

fix(auth): prevent credential session races and move OAuth ownership - #663

Merged
senamakel merged 5 commits into
epic/8369-security-migrationfrom
epic-8369-636-pr-scoped
Oct 24, 2026
Merged

senamakel merged 5 commits into
epic/8369-security-migrationfrom
epic-8369-636-pr-scoped

Conversation

@senamakel

@senamakel senamakel commented Oct 24, 2026 •

Copy link
Copy Markdown
Owner

Closes #636

This moves provider OAuth acquisition, import, refresh, pending state, and controller wiring into openhuman-tinyhumans, while keeping the existing RPC surface. It also prevents stale credential failures from invalidating a replacement session, rolls back failed credential scope rebinds, and serializes OAuth refresh and token rotation safely on current-thread runtimes.

The TinyAgents gitlink includes request-time credential provenance fingerprints. TinyVoice is pinned to the compatible revision required by the current TinyAgents API.

Regression coverage includes stale session expiry and RPC suppression, failed credential rebind rollback, concurrent/current-thread OAuth refresh, refresh metadata preservation, disconnect failure propagation, and request-time credential fingerprint matching.

Verification: focused Rust regression suites, cargo check, app cargo check, crate-chain and Rust layout checks passed. The layout check reports existing TinyChannels schema errors unrelated to this change. The upstream PR (tinyhumansai#8373) also passed coverage, AppImage RPATH, and PR checklist checks; its Markdown-link check reports two pre-existing stale links on both main and the epic base.

senamakel and others added 5 commits October 24, 2026 11:48
Session expiry events now carry the credential fingerprint captured before
dispatch, so a backend 401 that arrives after a credential replacement can no
longer clear the newly stored session. The publisher suppresses both the bus
event and the RPC auth-expired marker when the fingerprint no longer matches
the current credential.

Auto-committed-on: cuttlefish
Co-authored-by: Medulla <medulla@tinyhumans.ai>
Update the vendored tinyagents submodule to the latest upstream commit.

Auto-committed-on: cuttlefish
Co-authored-by: Medulla <medulla@tinyhumans.ai>
Add sha2 to the tinyinference dependency set and pin tinyjuice-module back to 0.11.3, while advancing the vendored tinyvoice submodule to its new revision.

Auto-committed-on: cuttlefish
Co-authored-by: Medulla <medulla@tinyhumans.ai>
Co-authored-by: Medulla <medulla@tinyhumans.ai>
Co-authored-by: Medulla <medulla@tinyhumans.ai>
@senamakel
senamakel merged commit 9941be7 into epic/8369-security-migration Oct 24, 2026
0 of 4 checks passed
@senamakel
senamakel deleted the epic-8369-636-pr-scoped branch October 24, 2026 12:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant