fix(mcp): route to cloud /v1 HTTP client in self_hosted mode (0.2.2)#7
Merged
Conversation
The identities MCP server previously only knew the local file store and the in-VPC Postgres DSN path (HASNA_IDENTITIES_STORAGE_MODE=cloud). On a client machine with the self_hosted env vars set it silently ignored them and read local. Prefer the locked API-client path: when HASNA_IDENTITIES_API_URL and HASNA_IDENTITIES_API_KEY are set, route ALL reads/writes to <app>/v1 with the bearer key (no DSN on clients). Unsetting restores the local store. Bump 0.2.1 -> 0.2.2.
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.
MCP client path ignored self_hosted API env vars (only local + in-VPC Postgres DSN). Now prefers the locked API-client path: when HASNA_IDENTITIES_API_URL+HASNA_IDENTITIES_API_KEY are set, routes ALL reads/writes through CloudHttpIdentityStore -> identities.hasna.xyz/v1 with bearer key (no DSN on clients). Matches CLI/SDK resolver from #6. verify:release green (64 tests). Live CLI create/verify/delete proven against cloud; unset -> local. Bump 0.2.1 -> 0.2.2.