Skip to content

fix(authority): authenticate revision checks as the installed module - #27

Draft
crisfiorini-oss wants to merge 2 commits into
codefly-dev:mainfrom
crisfiorini-oss:fix/module-revision-credentials
Draft

crisfiorini-oss wants to merge 2 commits into
codefly-dev:mainfrom
crisfiorini-oss:fix/module-revision-credentials

Conversation

@crisfiorini-oss

Copy link
Copy Markdown

Summary

Current hosts require the calling module's Work Context on revision reads. The older Python client sends only the shared internal token, causing Model Gateway profile reads to return AuthorityUnavailable. Add an organization-scoped module broker client and a module-authenticated mesh revision client. Older clients retain their explicit older-host contract.

Build or reuse

Searched saas-sdk-python, sdk-python, saas-sdk-go and Model Gateway. Reuse existing revision transport, canonical request projection and async credential callbacks; extend the shared SDK with the Go broker's organization selector contract. No module-local client copy, retry, authorization cache or generated schema change. This is a fix at the protocol client owner.

Validation

81 targeted broker and revision tests passed, including real gRPC, organization isolation, rotating workload credentials, current denial, redacted errors and unsafe-origin refusal. Model Gateway hosted integration passed against a fixture requiring module proof, including process startup. Full suites run in CI. Live rollout pending; no authenticated user journey claimed.

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