Repository navigation
Commit f263565
authored
chore(core): track v0.1.10 (#66)
Move the core pin from `v0.1.9` to `v0.1.10` (stable).
- Core changes:
[v0.1.9...v0.1.10](ai-openshell/openshell@v0.1.9...v0.1.10)
- Regenerated bindings: 8 files changed, 1446 insertions(+), 633
deletions(-)
- E2E runs against `ghcr.io/nvidia/openshell/gateway:0.1.10`
- Files copied from core:
- none changed
## Proto changes
```diff
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 directly
+ // authenticated mTLS operators may call this method. Every call is audited.
+ rpc RevealSecret(RevealSecretRequest) returns (RevealSecretResponse) {
+ option (openshell.options.v1.authorization) = { auth_mode: "operator" audit: "read" };
+ }
+
// Get sandbox settings by id (called by users, and by supervisors at startup
// and in their poll loop). A supervisor whose session pushes configuration
// receives later updates over ConnectSupervisor and stops polling.
@@ -483,6 +580,7 @@ service OpenShell {
option (openshell.options.v1.authorization) = {
auth_mode: "dual"
scope: "config:write"
+ audit: "update"
workspace_role: "admin"
};
}
@@ -557,6 +655,13 @@ service OpenShell {
};
}
+ // Obtain the final provider token for the authenticated sandbox session.
+ // SPIFFE assertions and intermediate credentials remain in the gateway.
+ rpc GetSandboxProviderAccessToken(GetSandboxProviderAccessTokenRequest)
+ returns (GetSandboxProviderAccessTokenResponse) {
+ option (openshell.options.v1.authorization) = { auth_mode: "sandbox" };
+ }
+
// Fetch recent sandbox logs (one-shot).
rpc GetSandboxLogs(GetSandboxLogsRequest) returns (GetSandboxLogsResponse) {
option (openshell.options.v1.authorization) = {
@@ -705,6 +810,7 @@ service OpenShell {
option (openshell.options.v1.authorization) = {
auth_mode: "bearer"
scope: "config:write"
+ audit: "update"
workspace_role: "admin"
};
}
@@ -715,6 +821,7 @@ service OpenShell {
option (openshell.options.v1.authorization) = {
auth_mode: "bearer"
scope: "config:write"
+ audit: "update"
workspace_role: "admin"
};
}
@@ -725,6 +832,7 @@ service OpenShell {
option (openshell.options.v1.authorization) = {
auth_mode: "bearer"
scope: "config:write"
+ audit: "update"
workspace_role: "admin"
};
}
@@ -734,6 +842,7 @@ service OpenShell {
option (openshell.options.v1.authorization) = {
auth_mode: "bearer"
scope: "config:write"
+ audit: "update"
workspace_role: "admin"
};
}
@@ -743,6 +852,7 @@ service OpenShell {
option (openshell.options.v1.authorization) = {
auth_mode: "bearer"
scope: "config:write"
+ audit: "update"
workspace_role: "admin"
};
}
@@ -753,6 +863,7 @@ service OpenShell {
option (openshell.options.v1.authorization) = {
auth_mode: "bearer"
scope: "config:write"
+ audit: "delete"
workspace_role: "admin"
};
}
@@ -799,6 +910,7 @@ service OpenShell {
option (openshell.options.v1.authorization) = {
auth_mode: "bearer"
scope: "workspace:write"
+ audit: "create"
global_role: "platform_admin"
};
}
@@ -826,6 +938,7 @@ service OpenShell {
option (openshell.options.v1.authorization) = {
auth_mode: "bearer"
scope: "workspace:write"
+ audit: "delete"
global_role: "platform_admin"
};
}
@@ -835,6 +948,7 @@ service OpenShell {
option (openshell.options.v1.authorization) = {
auth_mode: "bearer"
scope: "workspace:write"
```
Showing 400 of 781 lines; see the [full
compare](ai-openshell/openshell@v0.1.9...v0.1.10).
## Before merging
- CI and E2E must pass. If the SDK needs changes for this core version,
push them to this branch.
- Pre-release pins are not released; a newer pre-release proposal
replaces this one.
Signed-off-by: ai-openshell-sdk-python[bot] <354503561+ai-openshell-sdk-python[bot]@users.noreply.github.com>
Co-authored-by: ai-openshell-sdk-python[bot] <354503561+ai-openshell-sdk-python[bot]@users.noreply.github.com>1 parent 94e287c commit f263565
9 files changed
Lines changed: 1447 additions & 634 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
21 | | - | |
| 21 | + | |
22 | 22 | | |
23 | 23 | | |
24 | 24 | | |
| |||
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
0 commit comments