Repository navigation
Connect community web and CLI to shared Cosift accounts - #58
Merged
Merged
Conversation
TeoSlayer
marked this pull request as draft
September 16, 2026 15:47
This was referenced Sep 16, 2026
TeoSlayer
marked this pull request as ready for review
September 16, 2026 15:55
Codecov Report❌ Patch coverage is 📢 Thoughts on this report? Let us know! |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The community web app and CLI can now use the accounts and tokens issued by
cosift-auth, and share followed topics and article requests withcosift-mcp. This keeps the proposed web platform, saved searches, contributions and credit ledger while connecting them to Andrei's agent onboarding infrastructure.Integration
COSIFT_AUTH_MODE=shared: email-code browser login, HttpOnly session cookies, direct Firestore account/token verification using the versioned Secret Manager token contract, and revocation/ban handling that fails closed.COSIFT_TOKENfor Search/Answer/Research, contributions, local indexing and credits; explicit origin-bound session persistence remains supported. Routine token commands do not revoke an agent's credential.kand retriever parameters and applies the same account quotas/credits as web and CLI requests.The PR also retains the community search/answer/research interface, saved requests, URL/CSV/sample contributions, content/embedding revalidation, durable contribution credits and quota reservations, disabled-by-default Stripe checkout, public route restrictions, and the revert of draft ranking PR #54.
Validation
go test -race -timeout 10m ./...,go vet, Linux ARM64 static compilation, and real crawl/serve smoke passed locally.See
docs/SHARED-ACCOUNTS.mdanddocs/SHARED-ACCOUNTS-VALIDATION.mdfor topology, configuration, reproducible checks and limitations.Security follow-up: the independent Go scan found affected gRPC v1.82.1 call paths and missing Go 1.26.0 standard-library security fixes. The PR now requires gRPC v1.83.2 and Go 1.26.8, and CI runs pinned
govulncheckv1.8.0. The final package-level scan reports 0 vulnerabilities in imported packages; it still lists the unused OpenPGP advisory inside the required x/crypto module. CI gates imported packages. A passing Snyk check on the final commit is still required.Rollout gates — not deployed
Live GCP verification was blocked by expired local Google credentials. Provision the gateway's ADC/IAM access, verify the exact Cloud Run URLs/audiences and Firestore index, and test real email login, credential refresh, revocation/bans and proxy attribution in staging. Without correct client-IP attribution, all web users would share auth's gateway-IP email cap; do not fix that by blindly increasing a public service's trusted-hop count.
Review and land the companion changes before routing production MCP searches through the community gateway. The existing model/load/Stripe acceptance gates still apply. No merge, release, deployment, DNS/org-policy change, updater activation or real Stripe charge has been performed. Auto-merge remains disabled.
Current status: the full local race/coverage suite and 11 web regressions passed after the latest failure sweep; shared-account package coverage is now 90.0%. Commit
baf6451fixes Cloud Run IAM failures being mistaken for user revocation or suspension and adds gateway/CLI/auth failure regressions. Application CI is running on that commit. Snyk still reports an error; its report requires sign-in. Do not override that result based only on the independent Go scan.Deployment preparation now includes the connected installer/CLI handoff and companion service changes. Live Google access must be restored before IAM, public installer ingress, and staging acceptance can be verified. No production deployment or merge has occurred.