Skip to content

Evenfire is an intelligence layer platform for running LLM agents that take real actions, on your infrastructure

TypeScript

docs(control-api): state how the broker Host access rule differs from rpc-proxy

Diego Zacarias4ea7f07d99a2
diff --git a/control-api/package-lock.json b/control-api/package-lock.json
index cfa74257d..4eaebe0dc 100644
--- a/control-api/package-lock.json
+++ b/control-api/package-lock.json
@@ -1,12 +1,12 @@
{
"name": "clerum-control-api",
- "version": "0.1.818",
+ "version": "0.1.819",
"lockfileVersion": 3,
"requires": true,
"packages": {
"": {
"name": "clerum-control-api",
- "version": "0.1.818",
+ "version": "0.1.819",
"dependencies": {
"@clerum/display-field": "file:../packages/display-field",
"@clerum/grok-provider-attempt-contract": "file:../packages/grok-provider-attempt-contract",
diff --git a/control-api/package.json b/control-api/package.json
index 9906debd5..10853ccc2 100644
--- a/control-api/package.json
+++ b/control-api/package.json
@@ -1,6 +1,6 @@
{
"name": "clerum-control-api",
- "version": "0.1.818",
+ "version": "0.1.819",
"description": "Internal Clerum control plane REST API + UI for managing CRDs and secrets",
"main": "dist/main.js",
"engines": {
diff --git a/control-api/src/services/access/brokerHostBinding.ts b/control-api/src/services/access/brokerHostBinding.ts
index 88c91dd38..a83309024 100644
--- a/control-api/src/services/access/brokerHostBinding.ts
+++ b/control-api/src/services/access/brokerHostBinding.ts
@@ -133,8 +133,10 @@ export function hasContextIdMismatch(ctx: ContextCR): boolean {
return typeof contextId === 'string' && contextId !== ctx.metadata?.name
}
-// Same entry rule rpc-proxy applies to let a user into a Host: an active user
-// with the agent assigned directly or through any active team membership.
+// Host entry rule: an active user with the agent assigned directly or through
+// any active team membership. rpc-proxy only counts the team of the current
+// session; the broker never sees that session, so it accepts any active team
+// (a superset, so nobody who can enter the Host loses their token).
// Context membership (`user_contexts`) deliberately does not count: it never
// admits a user to a Host, and counting it would let any Context member's
// identity be used from every Host of that Context.