feat(workspace): add workspace resource model with scoping, membershi…#2243
Draft
derekwaynecarr wants to merge 1 commit into
Draft
feat(workspace): add workspace resource model with scoping, membershi…#2243derekwaynecarr wants to merge 1 commit into
derekwaynecarr wants to merge 1 commit into
Conversation
b45cc4a to
2468c04
Compare
…p, and CLI/TUI support Implement Phase 1 of RFC 0011 (multi-player workspace support): - Add Workspace resource with CRUD RPCs (Create, Get, List, Delete) - Add workspace field to ObjectMeta; all workspace-scoped resources (sandbox, provider, service endpoint, SSH session, policy, settings, provider refresh state, inference route) inherit workspace from context - Add membership store with Add/Remove/List WorkspaceMember RPCs - Create default workspace on gateway startup for backwards compat - Shift name uniqueness from (object_type, name) to (object_type, workspace, name) with migration backfill - Add ObjectWorkspace trait with requires_workspace() and debug_assert validation in store write helpers - Add all_workspaces field on list RPCs for cross-workspace visibility - Add cross-workspace list_by_type store method for infrastructure ops - Thread workspace through StoredProviderCredentialRefreshState - Provider profiles use two-tier scoping with independent scope listing (workspace custom + built-in, or platform custom + built-in) - Service endpoint hostnames include workspace prefix for collision avoidance - Add WORKSPACE column to CLI list outputs (kubectl convention) - Add TUI workspace awareness: selector, workspace column, title bar - Clean up membership records on workspace deletion - Workspace-scope inference routes: rename Cluster* RPCs and messages to Route* (SetInferenceRoute, GetInferenceRoute, InferenceRouteConfig), thread workspace through set/get/bundle handlers and CLI commands, derive workspace from sandbox principal for bundle resolution - Add workspace isolation tests for inference routes Signed-off-by: Derek Carr <decarr@redhat.com>
2468c04 to
77ef1fc
Compare
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.
Summary
Implements Phase 1 of RFC 0011 — the workspace and membership model that provides hard isolation boundaries for multi-player OpenShell deployments.
from context
method for infrastructure operations (reconciler, resume, provider refresh)
principal for bundle resolution; thread --workspace through CLI inference commands
CRUD and membership subcommands; inference help text updated from "gateway-level" to "workspace-level"
Related Issue
#1977
Changes
workspace fields on set/get request/response messages
Testing
Known remaining work