Skip to content

feat(anton): Turn-Key Data Vault for cloud OAuth connectors - #400

Merged
tino097 merged 2 commits into
stagingfrom
oauth-proxy-datavault-mvp
Aug 27, 2026
Merged

feat(anton): Turn-Key Data Vault for cloud OAuth connectors#400
tino097 merged 2 commits into
stagingfrom
oauth-proxy-datavault-mvp

Conversation

@martyna-mindsdb

@martyna-mindsdb martyna-mindsdb commented Aug 26, 2026

Copy link
Copy Markdown
Contributor

Linear ticket: https://linear.app/mindsdb/issue/ENG-208/mindshub-oauth-proxy-and-data-vault

What was changed

  • Turn-Key Token Handoff — new TurnKeyDataVault class (satisfying the same DataVault protocol LocalDataVault does) fetches a live connector token from auth using the turn's turn key, for cloud turns only. Wired into build_cloud_chat_session() in place of the previous data_vault=None. Desktop/local-mode turns are unaffected.

Notes

  • New ANTON_CLOUD_AUTH_BASE_URL env var defaults to auth.mindshub.ai, correct for production, but isn't set anywhere yet for other environments — needs to be explicitly set to the real auth hostname of whichever environment this gets tested in (e.g. staging's auth.staging.mindshub.ai, or a PR-environment's own per-instance auth URL).

TODO: set ANTON_CLOUD_AUTH_BASE_URL to the target environment's real auth hostname before testing there.

Related PRs

…mail)

Adds TurnKeyDataVault, a DataVault Protocol implementation backed by a
live call to auth's POST /v1/oauth/{engine}/token endpoint with the turn
key as bearer auth. build_cloud_chat_session() now wires it in when the
turn's new `oauth` field (forwarded by scratchpad-controller) is present,
calling the same restore_namespaced_env() desktop's harness already uses
so DS_* env vars and credential scrubbing work identically in the cloud.

Part of the 6-repo cloud OAuth connectors MVP (auth, cowork-server,
cowork, Mind-Castle, anton, scratchpad-controller).

@tino097 tino097 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Inline notes from a review pass on the OAuth Proxy + Data Vault change set.

Comment thread anton/core/datasources/data_vault.py
Comment thread anton/core/datasources/data_vault.py
Comment thread anton/cloud_turn/session.py
Comment thread anton/cloud_turn/session.py
…nnection name so multi-connection orgs resolve correctly, and stop gmail OAuth credentials from being misclassified against the legacy IMAP registry entry
@tino097
tino097 merged commit 9e9e7d3 into staging Aug 27, 2026
11 checks passed
@tino097
tino097 deleted the oauth-proxy-datavault-mvp branch August 27, 2026 19:08
@github-actions github-actions Bot locked and limited conversation to collaborators Aug 27, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants