Repository navigation
Releases
v0.1.10
Move the core pin from v0.1.9 to stable v0.1.10 and regenerate the Go bindings. Add SDK policy types and converters for the new cedar_policy, provider_credential_rules, and endpoint_settings fields so policy data survives conversion in both directions.
- Core changes: v0.1.9...v0.1.10.
- Generated bindings include the new secret, provider refresh, and sandbox provider token RPCs and authorization audit metadata. This PR adds typed SDK support for the new policy fields; the new RPCs are available through the generated client.
- Policy converters deep-copy the new fields, with round-trip, mutation-isolation, optional-field, and field-coverage tests. Document Cedar policy constraints and gateway-managed credential rules.
- Conformance fixtures are unchanged.
- E2E runs against
quay.io/ai-openshell/gateway:0.1.10, discovered by the registry selection already onmain.
Proto changes
diff --git a/proto/README.md b/proto/README.md
index 80e455a..7a31300 100644
--- a/proto/README.md
+++ b/proto/README.md
@@ -72,8 +72,9 @@ identifies the service being exposed.
wire identity and may therefore differ from declaration order.
- Document authorization-sensitive selector variants and omission semantics on
the containing request.
-- Give an RPC that changes gateway state a `*:write` scope and add it to the
- audit catalog in `crates/openshell-server/src/auth/audit/catalog.rs`.
+- Give an RPC that changes gateway state a `*:write` scope and an `audit`
+ activity (`create`, `update`, `delete`, or `other`) in its authorization
+ option. The gateway refuses to start without one.
## Schema evolution
diff --git a/proto/openshell.proto b/proto/openshell.proto
index 198990a..c01e88d 100644
--- a/proto/openshell.proto
+++ b/proto/openshell.proto
@@ -49,6 +49,7 @@ service OpenShell {
option (openshell.options.v1.authorization) = {
auth_mode: "bearer"
scope: "sandbox:write"
+ audit: "create"
workspace_role: "user"
};
}
@@ -66,6 +67,7 @@ service OpenShell {
option (openshell.options.v1.authorization) = {
auth_mode: "bearer"
scope: "sandbox:write"
+ audit: "create"
workspace_role: "user"
};
}
@@ -94,6 +96,7 @@ service OpenShell {
option (openshell.options.v1.authorization) = {
auth_mode: "bearer"
scope: "sandbox:write"
+ audit: "create"
workspace_role: "admin"
};
}
@@ -124,6 +127,7 @@ service OpenShell {
option (openshell.options.v1.authorization) = {
auth_mode: "bearer"
scope: "sandbox:write"
+ audit: "delete"
workspace_role: "admin"
};
}
@@ -144,6 +148,7 @@ service OpenShell {
option (openshell.options.v1.authorization) = {
auth_mode: "bearer"
scope: "sandbox:write"
+ audit: "create"
workspace_role: "user"
};
}
@@ -154,6 +159,7 @@ service OpenShell {
option (openshell.options.v1.authorization) = {
auth_mode: "bearer"
scope: "sandbox:write"
+ audit: "delete"
workspace_role: "user"
};
}
@@ -173,6 +179,7 @@ service OpenShell {
option (openshell.options.v1.authorization) = {
auth_mode: "bearer"
scope: "sandbox:write"
+ audit: "delete"
workspace_role: "user"
};
}
@@ -182,6 +189,7 @@ service OpenShell {
option (openshell.options.v1.authorization) = {
auth_mode: "bearer"
scope: "sandbox:write"
+ audit: "update"
workspace_role: "user"
};
}
@@ -191,6 +199,7 @@ service OpenShell {
option (openshell.options.v1.authorization) = {
auth_mode: "bearer"
scope: "sandbox:write"
+ audit: "update"
workspace_role: "user"
};
}
@@ -202,6 +211,7 @@ service OpenShell {
option (openshell.options.v1.authorization) = {
auth_mode: "bearer"
scope: "sandbox:write"
+ audit: "update"
workspace_role: "user"
};
}
@@ -211,6 +221,7 @@ service OpenShell {
option (openshell.options.v1.authorization) = {
auth_mode: "bearer"
scope: "sandbox:write"
+ audit: "update"
workspace_role: "user"
};
}
@@ -220,6 +231,7 @@ service OpenShell {
option (openshell.options.v1.authorization) = {
auth_mode: "bearer"
scope: "sandbox:write"
+ audit: "create"
workspace_role: "user"
};
}
@@ -229,6 +241,7 @@ service OpenShell {
option (openshell.options.v1.authorization) = {
auth_mode: "bearer"
scope: "sandbox:write"
+ audit: "create"
workspace_role: "user"
};
}
@@ -256,6 +269,7 @@ service OpenShell {
option (openshell.options.v1.authorization) = {
auth_mode: "bearer"
scope: "sandbox:write"
+ audit: "delete"
workspace_role: "user"
};
}
@@ -265,6 +279,7 @@ service OpenShell {
option (openshell.options.v1.authorization) = {
auth_mode: "bearer"
scope: "sandbox:write"
+ audit: "delete"
workspace_role: "user"
};
}
@@ -274,6 +289,7 @@ service OpenShell {
option (openshell.options.v1.authorization) = {
auth_mode: "bearer"
scope: "sandbox:write"
+ audit: "other"
workspace_role: "user"
};
}
@@ -283,6 +299,7 @@ service OpenShell {
option (openshell.options.v1.authorization) = {
auth_mode: "bearer"
scope: "sandbox:write"
+ audit: "other"
workspace_role: "user"
};
}
@@ -294,6 +311,7 @@ service OpenShell {
option (openshell.options.v1.authorization) = {
auth_mode: "bearer"
scope: "sandbox:write"
+ audit: "other"
workspace_role: "user"
};
}
@@ -303,6 +321,7 @@ service OpenShell {
option (openshell.options.v1.authorization) = {
auth_mode: "bearer"
scope: "provider:write"
+ audit: "create"
workspace_role: "admin"
};
}
@@ -358,6 +377,7 @@ service OpenShell {
option (openshell.options.v1.authorization) = {
auth_mode: "bearer"
scope: "provider:write"
+ audit: "create"
workspace_role: "admin"
};
}
@@ -368,6 +388,7 @@ service OpenShell {
option (openshell.options.v1.authorization) = {
auth_mode: "bearer"
scope: "provider:write"
+ audit: "update"
workspace_role: "admin"
};
}
@@ -387,6 +408,7 @@ service OpenShell {
option (openshell.options.v1.authorization) = {
auth_mode: "bearer"
scope: "provider:write"
+ audit: "update"
workspace_role: "admin"
};
}
@@ -407,6 +429,7 @@ service OpenShell {
option (openshell.options.v1.authorization) = {
auth_mode: "bearer"
scope: "provider:write"
+ audit: "update"
workspace_role: "admin"
};
}
@@ -417,6 +440,20 @@ service OpenShell {
option (openshell.options.v1.authorization) = {
auth_mode: "bearer"
scope: "provider:write"
+ audit: "update"
+ workspace_role: "admin"
+ };
+ }
+
+ // Copy each workspace secret referenced by one credential's refresh
+ // configuration into provider-owned refresh material and remove the
+ // references. Other material, including a rotated refresh token, is kept.
+ rpc InlineProviderRefreshSecrets(InlineProviderRefreshSecretsRequest)
+ returns (InlineProviderRefreshSecretsResponse) {
+ option (openshell.options.v1.authorization) = {
+ auth_mode: "bearer"
+ scope: "provider:write"
+ audit: "update"
workspace_role: "admin"
};
}
@@ -427,6 +464,7 @@ service OpenShell {
option (openshell.options.v1.authorization) = {
auth_mode: "bearer"
scope: "provider:write"
+ audit: "delete"
workspace_role: "admin"
};
}
@@ -436,6 +474,7 @@ service OpenShell {
option (openshell.options.v1.authorization) = {
auth_mode: "bearer"
scope: "provider:write"
+ audit: "delete"
workspace_role: "admin"
};
}
@@ -446,10 +485,68 @@ service OpenShell {
option (openshell.options.v1.authorization) = {
auth_mode: "bearer"
scope: "provider:write"
+ audit: "delete"
+ workspace_role: "admin"
+ };
+ }
+
+ // Create a workspace secret. Secrets are credential minting material only:
+ // OpenShell never injects them into sandboxes, and Get and List never
+ // return their values.
+ rpc CreateSecret(CreateSecretRequest) returns (SecretResponse) {
+ option (openshell.options.v1.authorization) = {
+ auth_mode: "bearer"
+ scope: "secret:write"
+ audit: "create"
+ workspace_role: "admin"
+ };
+ }
+
+ // Fetch workspace secret metadata by name. The value is never returned.
+ rpc GetSecret(GetSecretRequest) returns (SecretResponse) {
+ option (openshell.options.v1.authorization) = {
+ auth_mode: "bearer"
+ scope: "secret:read"
+ workspace_role: "user"
+ };
+ }
+
+ // List workspace secret metadata. Values are never returned.
+ rpc ListSecrets(ListSecretsRequest) returns (ListSecretsResponse) {
+ option (openshell.options.v1.authorization) = {
+ auth_mode: "bearer"
+ scope: "secret:read"
+ workspace_role: "user"
+ };
+ }
+
+ // Replace a workspace secret's value, description, or labels.
+ rpc UpdateSecret(UpdateSecretRequest) returns (SecretResponse) {
+ option (openshell.options.v1.authorization) = {
+ auth_mode: "bearer"
+ scope: "secret:write"
+ audit: "update"
workspace_role: "admin"
};
}
+ // Delete a workspace secret by name.
+ rpc DeleteSecret(DeleteSecretRequest) returns (DeleteSecretResponse) {
+ option (openshell.options.v1.authorization) = {
+ auth_mode: "bearer"
+ scope: "secret:write"
+ audit: "delete"
+ workspace_role: "admin"
+ };
+ }
+
+ // Return a workspace secret's plaintext value to a control-plane caller.
+ // Disabled unless the gateway sets enable_secret_reveal. Only d...v0.1.9
Move the core pin from v0.1.9-pre.4 to v0.1.9 (stable).
- Core changes: v0.1.9-pre.4...v0.1.9
- Regenerated bindings: 2 files changed, 1006 insertions(+), 414 deletions(-)
- E2E runs against
ghcr.io/nvidia/openshell/gateway:0.1.9 - Conformance fixtures:
- no fixture changes
Proto changes
diff --git a/proto/README.md b/proto/README.md
index 7dd67c6..80e455a 100644
--- a/proto/README.md
+++ b/proto/README.md
@@ -72,6 +72,8 @@ identifies the service being exposed.
wire identity and may therefore differ from declaration order.
- Document authorization-sensitive selector variants and omission semantics on
the containing request.
+- Give an RPC that changes gateway state a `*:write` scope and add it to the
+ audit catalog in `crates/openshell-server/src/auth/audit/catalog.rs`.
## Schema evolution
diff --git a/proto/openshell.proto b/proto/openshell.proto
index b40ec68..198990a 100644
--- a/proto/openshell.proto
+++ b/proto/openshell.proto
@@ -858,6 +858,28 @@ service OpenShell {
}
}
+// Application ingress consumers discover routes independently of sandbox management.
+service ServiceDiscovery {
+ // Read installed, unexpired application routes in one explicit workspace.
+ rpc GetServiceRouteSnapshot(GetServiceRouteSnapshotRequest) returns (GetServiceRouteSnapshotResponse) {
+ option (openshell.options.v1.authorization) = {
+ auth_mode: "bearer"
+ scope: "sandbox:read"
+ workspace_role: "user"
+ };
+ }
+
+ // Full replacement views; reauthorize during the bounded watch lifetime.
+ rpc WatchServiceRoutes(WatchServiceRoutesRequest) returns (stream WatchServiceRoutesResponse) {
+ option (openshell.options.v1.authorization) = {
+ auth_mode: "bearer"
+ scope: "sandbox:read"
+ workspace_role: "user"
+ };
+ }
+
+}
+
// Optional sandbox mutations are separate from OpenShell so existing generated
// OpenShell server implementations remain source-compatible.
service SandboxUpdates {
@@ -4245,3 +4267,47 @@ message SupervisorServiceAdvertisement {
// Domain actually installed by the process listener, not the gateway URL.
string service_domain = 5;
}
+
+// One explicit active workspace is required. Omitted and all-workspaces
+// selectors are rejected; discovery-only machine grants are separate work.
+message GetServiceRouteSnapshotRequest {
+ openshell.datamodel.v1.WorkspaceSelector workspace_scope = 1;
+}
+message GetServiceRouteSnapshotResponse {
+ ServiceRouteSnapshot snapshot = 1;
+}
+// Same workspace authorization as GetServiceRouteSnapshot. A watch sends an
+// initial replacement and later replacements, including lease-only renewal.
+// Clients reconnect/relist when the bounded stream ends and expire cached
+// routes during discovery errors; errors are not empty replacements.
+message WatchServiceRoutesRequest {
+ openshell.datamodel.v1.WorkspaceSelector workspace_scope = 1;
+}
+message WatchServiceRoutesResponse {
+ ServiceRouteSnapshot snapshot = 1;
+}
+message ServiceRouteSnapshot {
+ repeated DiscoveredServiceRoute routes = 1;
+ // Opaque equality token for this complete view, including lease expiries.
+ // No ordering across replicas or server restarts is implied.
+ string revision = 2;
+}
+// Trusted supervisor TLS endpoint. Preserve DiscoveredServiceRoute.hostname
+// as SNI and HTTP authority; this endpoint never addresses a workload port.
+message ServiceRouteEndpoint {
+ string host = 1;
+ uint32 port = 2;
+}
+// Accepted installation evidence, not application health or ingress readiness.
+message DiscoveredServiceRoute {
+ string workspace = 1;
+ string sandbox = 2;
+ // Canonical service name; empty identifies the existing unnamed service.
+ string name = 3;
+ string hostname = 4;
+ ServiceRouteEndpoint endpoint = 5;
+ // Changes on owner/backend/declaration replacement, but not lease renewal.
+ string installation_version = 6;
+ uint64 declaration_revision = 7;
+ google.protobuf.Timestamp expires_at = 8;
+}
diff --git a/proto/supervisor_host.proto b/proto/supervisor_host.proto
index 862a5e3..3195837 100644
--- a/proto/supervisor_host.proto
+++ b/proto/supervisor_host.proto
@@ -50,6 +50,7 @@ message HostGatewayMessage {
HostRejected rejected = 2;
AssignmentSnapshot assignments = 3;
HostGatewayHeartbeat heartbeat = 4;
+ HostRedirect redirect = 5;
}
}
@@ -63,6 +64,11 @@ message HostHello {
uint64 connection_epoch = 2;
// Present when the host is a member of a supervisor pool.
PoolMember member = 3;
+ // The gateway may answer with a HostRedirect. A host leaves it unset to be
+ // served by the replica it dialed: after two redirects in a row, or when it
+ // redials the replica that last accepted it. Hosts that predate
+ // HostRedirect never set it.
+ bool accepts_redirect = 4;
}
// One member of a supervisor pool.
@@ -90,6 +96,12 @@ message HostAccepted {
string peer_endpoint = 3;
}
+// Another gateway replica should serve the host, which dials it at once. The
+// stream ends after this message.
+message HostRedirect {
+ string peer_endpoint = 1;
+}
+
// The gateway refuses the host; the stream ends after this message.
message HostRejected {
string reason = 1;Before merging
- CI and E2E must pass. If the SDK needs changes for this core version, push them to this branch.
- Merging a stable pin tags the SDK release
v0.1.9. Pre-release pins are not tagged; a newer pre-release proposal replaces this one.
Matches OpenShell core v0.1.9.
v0.1.8
SDK release for OpenShell core v0.1.8.
Changes since v0.1.7
- Go 1.26 or later is now required. The dependency updates to
golang.org/x/*andgrpcv1.85.0 need Go 1.26, sogo.modnow saysgo 1.26.0(#14, #32). - Bindings regenerated from core v0.1.8 (#21, #33). See the core changes.
Matches OpenShell core v0.1.8.
v0.1.7
The first release of the Go SDK as a standalone module at github.com/ai-openshell/sdk-go. It was github.com/NVIDIA/OpenShell/sdk/go before; packages and APIs are unchanged, and the bindings are generated from OpenShell core v0.1.7. SDK releases follow core releases, so SDK vX.Y.Z works with core vX.Y.Z.
Breaking change for consumers
The import path changes. Consumers rewrite their imports and fetch the new module:
grep -rl --include='*.go' --include=go.mod 'github.com/NVIDIA/OpenShell/sdk/go' . | xargs perl -pi -e 's#github.com/NVIDIA/OpenShell/sdk/go#github.com/ai-openshell/sdk-go#g'
go get github.com/ai-openshell/sdk-go@latest && go mod tidyMatches OpenShell core v0.1.7.