Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions charts/agent-relay/Chart.lock
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,6 @@ dependencies:
version: 0.3.11
- name: relaygate
repository: file://../relaygate
version: 0.1.9
digest: sha256:5f03ff500f55fc4bdeb35bbbdca11b0ed4fb9527d4bf0601826f005b0b5fcee5
generated: "2026-11-17T00:23:52.745880727-08:00"
version: 0.1.10
digest: sha256:8a0a16359291e927c0dcce69ce236b215ae63c196a1f082fb150fdb7f2cf9580
generated: "2026-11-17T01:55:47.93979-08:00"
4 changes: 2 additions & 2 deletions charts/agent-relay/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ apiVersion: v2
name: agent-relay
description: Self-hosted Agent Relay messaging and sessions suite
type: application
version: 0.7.53
version: 0.7.54
appVersion: "0.1.0"
kubeVersion: ">=1.28.0-0"
annotations:
Expand Down Expand Up @@ -63,6 +63,6 @@ dependencies:
repository: file://../slack-relay
condition: components.slackRelay
- name: relaygate
version: 0.1.9
version: 0.1.10
repository: file://../relaygate
condition: components.relaygate
2 changes: 1 addition & 1 deletion charts/relaygate/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
apiVersion: v2
name: relaygate
type: application
version: 0.1.9
version: 0.1.10
Comment thread
greptile-apps[bot] marked this conversation as resolved.
Resolved
appVersion: "0.1.0"
kubeVersion: ">=1.27.0-0"
description: >-
Expand Down
23 changes: 22 additions & 1 deletion charts/relaygate/templates/relaygate.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,28 @@ metadata:
{{- include "relaygate.labels" . | nindent 4 }}
data:
policy.json: |
{{- .Values.policy | toPrettyJson | nindent 4 }}
{{- /* inboxDefaults: the chart's default (gid 11, 660, acl 22:r, mirroring the local- inbox rule) applies only
when policy omits the key, and is dropped when policy.groups lacks gid 11 or 22 so such a policy still loads.
Any inboxDefaults the operator sets that names an undefined gid fails the render: it never loosens to
relaygate's 660 fallback. */ -}}
{{- $policy := deepCopy .Values.policy }}
{{- $inherited := not (hasKey $policy "inboxDefaults") }}
{{- if $inherited }}{{ $_ := set $policy "inboxDefaults" (list (dict "gid" 11 "mode" "660" "acl" (list (dict "gid" 22 "perm" "r")))) }}{{ end }}
{{- $gids := list }}
{{- range ($policy.groups | default list) }}{{ $gids = append $gids (toString .gid) }}{{ end }}
{{- $kept := list }}
{{- range ($policy.inboxDefaults | default list) }}
{{- $missing := list }}
{{- if not (has (toString .gid) $gids) }}{{ $missing = append $missing (toString .gid) }}{{ end }}
{{- range (.acl | default list) }}{{ if not (has (toString .gid) $gids) }}{{ $missing = append $missing (toString .gid) }}{{ end }}{{ end }}
{{- if not $missing }}
{{- $kept = append $kept . }}
{{- else if not $inherited }}
{{- fail (printf "relaygate: policy.inboxDefaults entry for gid %v names gid(s) %s that policy.groups doesn't define; define them or remove the entry" .gid (join ", " (uniq $missing))) }}
{{- end }}
{{- end }}
{{- $_ := set $policy "inboxDefaults" $kept }}
{{- $policy | toPrettyJson | nindent 4 }}
---
{{- end }}
{{- if not .Values.persistence.existingClaim }}
Expand Down
14 changes: 14 additions & 0 deletions charts/relaygate/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,20 @@ policy:
- { prefix: "slack:", gid: 22, mode: "660", classify: true }
- { prefix: "kb:", gid: 22, mode: "660", classify: true }
streamOverrides: []
# Inboxes no prefix covers (Desktop agents enrolled with a device token are
# named cursor-, claude-, codex-...) follow the registered agent: owned by it,
# in its gid, with a per-gid mode/ACL from inboxDefaults (else 660, no ACL).
# relaygate#43; older images ignore it.
# Left unset, the chart renders the default below, mirroring the local- inbox
# rule (local agents DM each other, the pit may read, never write), and
# leaves it out when policy.groups lacks gid 11 or 22. A policy override
# that doesn't set inboxDefaults gets this default, including its 22:r ACL,
# even if the override's local- rule drops that ACL: set inboxDefaults to
# match your own groups, or [] to opt out (desktop inboxes then get 660,
# same group only). An inboxDefaults you set that names a gid
# policy.groups doesn't define fails the render.
# inboxDefaults:
# - { gid: 11, mode: "660", acl: [{ gid: 22, perm: "r" }] }
# Sessions (with the Sessions proxy): local sessions readable by the pit,
# pit sessions private to the pit. Overrides can't change a session's group.
sessionDefaults:
Expand Down
6 changes: 4 additions & 2 deletions docs/self-hosted-requirements.md
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,8 @@ Services image (sessions-pipeline-worker, alleyoop and the privileged SQL Jobs):
| relayauth-0.1.2 | shipped | relayauth 0.1.2 | relayauth: `ghcr.io/agentworkforce/relayauth@sha256:c23c92d25fdf…` | | | License-annotation patch bump of 0.1.1. Superseded by 0.1.3. |
| relayauth-0.1.1 | shipped | relayauth 0.1.1 | relayauth: `ghcr.io/agentworkforce/relayauth@sha256:c23c92d25fdf…` | | | relayauth 784582ef (machine-bound History assertion contract, relayauth #113). Superseded by 0.1.2. |
| relayauth-0.1.0 | shipped | relayauth 0.1.0 | relayauth: `ghcr.io/agentworkforce/relayauth@sha256:eb71daa28e30…` | | | superseded by 0.1.1. |
| agent-relay-0.7.53 | unreleased | agent-relay 0.7.53<br>relay-control 0.4.22<br>relay-webapp 0.2.7<br>(deps: relaycast 0.3.16, relayauth 0.1.5, sessions-pipeline 0.8.47, relay-control 0.4.22, relay-webapp 0.2.7, relayflows 0.2.5, durable-actors 0.14.6-awf.4, relayfile 0.2.2, telemetry-collector 0.1.7, relay-chief 0.1.0, slack-relay 0.3.11, relaygate 0.1.9) | relaycast: `ghcr.io/agentworkforce/relaycast-self-host@sha256:ec062ef901af…`<br>relaycast-postgres: `ghcr.io/agentworkforce/relaycast-self-host@sha256:ec062ef901af…`<br>sessions-pipeline-worker: `ghcr.io/agentworkforce/sessions-pipeline@sha256:77022c5b6a1d…`<br>relay-control: `ghcr.io/agentworkforce/relay-control@sha256:d1b6ca95fab2…`<br>relay-webapp: `ghcr.io/agentworkforce/relay-webapp@sha256:bd295ccb7d13…` | | | Carries 0.7.52 and sessions-pipeline 0.8.47: ingestEdge.replicas (default 1; above 1 requires ledger=s3). Default renders differ only in the helm.sh/chart labels. |
| agent-relay-0.7.54 | unreleased | agent-relay 0.7.54<br>relay-control 0.4.22<br>relay-webapp 0.2.7<br>(deps: relaycast 0.3.16, relayauth 0.1.5, sessions-pipeline 0.8.47, relay-control 0.4.22, relay-webapp 0.2.7, relayflows 0.2.5, durable-actors 0.14.6-awf.4, relayfile 0.2.2, telemetry-collector 0.1.7, relay-chief 0.1.0, slack-relay 0.3.11, relaygate 0.1.10) | relaycast: `ghcr.io/agentworkforce/relaycast-self-host@sha256:ec062ef901af…`<br>relaycast-postgres: `ghcr.io/agentworkforce/relaycast-self-host@sha256:ec062ef901af…`<br>sessions-pipeline-worker: `ghcr.io/agentworkforce/sessions-pipeline@sha256:77022c5b6a1d…`<br>relay-control: `ghcr.io/agentworkforce/relay-control@sha256:d1b6ca95fab2…`<br>relay-webapp: `ghcr.io/agentworkforce/relay-webapp@sha256:bd295ccb7d13…` | | | Carries 0.7.53 and relaygate 0.1.10: the default policy gives inboxes no prefix covers (Desktop agents enrolled with a device token, named cursor-, claude-, codex-) the gid-11 inboxDefaults mirroring the local- rule, so local agents DM each other and the pit may read, never write. Needs relaygate with inboxDefaults (relaygate#43); older images ignore it. Still default-off (components.relaygate). Default renders differ in the relaygate policy ConfigMap and the helm.sh/chart labels. |
| agent-relay-0.7.53 | **planned** | agent-relay 0.7.53<br>relay-control 0.4.22<br>relay-webapp 0.2.7<br>(deps: relaycast 0.3.16, relayauth 0.1.5, sessions-pipeline 0.8.47, relay-control 0.4.22, relay-webapp 0.2.7, relayflows 0.2.5, durable-actors 0.14.6-awf.4, relayfile 0.2.2, telemetry-collector 0.1.7, relay-chief 0.1.0, slack-relay 0.3.11, relaygate 0.1.9) | relaycast: `ghcr.io/agentworkforce/relaycast-self-host@sha256:ec062ef901af…`<br>relaycast-postgres: `ghcr.io/agentworkforce/relaycast-self-host@sha256:ec062ef901af…`<br>sessions-pipeline-worker: `ghcr.io/agentworkforce/sessions-pipeline@sha256:77022c5b6a1d…`<br>relay-control: `ghcr.io/agentworkforce/relay-control@sha256:d1b6ca95fab2…`<br>relay-webapp: `ghcr.io/agentworkforce/relay-webapp@sha256:bd295ccb7d13…` | | | Carries 0.7.52 and sessions-pipeline 0.8.47: ingestEdge.replicas (default 1; above 1 requires ledger=s3). Default renders differ only in the helm.sh/chart labels. |
| agent-relay-0.7.52 | **planned** | agent-relay 0.7.52<br>relay-control 0.4.22<br>relay-webapp 0.2.7<br>(deps: relaycast 0.3.16, relayauth 0.1.5, sessions-pipeline 0.8.46, relay-control 0.4.22, relay-webapp 0.2.7, relayflows 0.2.5, durable-actors 0.14.6-awf.4, relayfile 0.2.2, telemetry-collector 0.1.7, relay-chief 0.1.0, slack-relay 0.3.11, relaygate 0.1.9) | relaycast: `ghcr.io/agentworkforce/relaycast-self-host@sha256:ec062ef901af…`<br>relaycast-postgres: `ghcr.io/agentworkforce/relaycast-self-host@sha256:ec062ef901af…`<br>sessions-pipeline-worker: `ghcr.io/agentworkforce/sessions-pipeline@sha256:77022c5b6a1d…`<br>relay-control: `ghcr.io/agentworkforce/relay-control@sha256:d1b6ca95fab2…`<br>relay-webapp: `ghcr.io/agentworkforce/relay-webapp@sha256:bd295ccb7d13…` | | | Carries 0.7.51 and sessions-pipeline 0.8.46: opt-in ingestEdge.ledgerBucket and ingestEdge.ledgerHomeGuard. Default renders differ only in the helm.sh/chart labels. |
| agent-relay-0.7.51 | **planned** | agent-relay 0.7.51<br>relay-control 0.4.22<br>relay-webapp 0.2.7<br>(deps: relaycast 0.3.16, relayauth 0.1.5, sessions-pipeline 0.8.45, relay-control 0.4.22, relay-webapp 0.2.7, relayflows 0.2.5, durable-actors 0.14.6-awf.4, relayfile 0.2.2, telemetry-collector 0.1.7, relay-chief 0.1.0, slack-relay 0.3.11, relaygate 0.1.9) | relaycast: `ghcr.io/agentworkforce/relaycast-self-host@sha256:ec062ef901af…`<br>relaycast-postgres: `ghcr.io/agentworkforce/relaycast-self-host@sha256:ec062ef901af…`<br>sessions-pipeline-worker: `ghcr.io/agentworkforce/sessions-pipeline@sha256:77022c5b6a1d…`<br>relay-control: `ghcr.io/agentworkforce/relay-control@sha256:d1b6ca95fab2…`<br>relay-webapp: `ghcr.io/agentworkforce/relay-webapp@sha256:bd295ccb7d13…` | | | Carries 0.7.50 and sessions-pipeline 0.8.45: opt-in ingestEdge.admission.awaitAuthority. Default renders differ only in the helm.sh/chart labels. |
| agent-relay-0.7.50 | **planned** | agent-relay 0.7.50<br>relay-control 0.4.22<br>relay-webapp 0.2.7<br>(deps: relaycast 0.3.16, relayauth 0.1.5, sessions-pipeline 0.8.44, relay-control 0.4.22, relay-webapp 0.2.7, relayflows 0.2.5, durable-actors 0.14.6-awf.4, relayfile 0.2.2, telemetry-collector 0.1.7, relay-chief 0.1.0, slack-relay 0.3.11, relaygate 0.1.9) | relaycast: `ghcr.io/agentworkforce/relaycast-self-host@sha256:ec062ef901af…`<br>relaycast-postgres: `ghcr.io/agentworkforce/relaycast-self-host@sha256:ec062ef901af…`<br>sessions-pipeline-worker: `ghcr.io/agentworkforce/sessions-pipeline@sha256:77022c5b6a1d…`<br>relay-control: `ghcr.io/agentworkforce/relay-control@sha256:d1b6ca95fab2…`<br>relay-webapp: `ghcr.io/agentworkforce/relay-webapp@sha256:bd295ccb7d13…` | | | Carries 0.7.49 and slack-relay 0.3.11: the Slack router reacts :eyes: to each message it routes as soon as it takes it (slack.ackReaction, needs the bot scope reactions:write), still default-off (components.slackRelay). Default renders differ only in the helm.sh/chart labels. |
Expand Down Expand Up @@ -301,7 +302,8 @@ Services image (sessions-pipeline-worker, alleyoop and the privileged SQL Jobs):
| durable-actors-0.14.6-awf.1 | **planned** | durable-actors 0.14.6-awf.1 | | | | Superseded before a chart tag by 0.14.6-awf.2. The vendored v0.14.6 chart plus UPSTREAM.md patch 10 (AWS: storage.provider s3, storage.s3.{region,actorCredentials,actorRoleArn,endpoint,forcePathStyle}, serviceAccount.annotations, sandbox.{runtimeClassName,nodeSelector,tolerations}, AWS availability zones in placement.zone) and patch 11 (the -awf.1 version suffix). The S3 values need a control-plane image from the AgentWorkforce durable-actors fork (selfhost/aws-s3, GHCR durable-actors-control-plane); upstream 0.14.6 images ignore them. GCS defaults render as the upstream chart apart from the helm.sh/chart label. Supersedes the never-released 0.14.6 row: Vendored TerseAI/durable-actors release chart v0.14.6 (tag commit 5f0a2d62, asset sha256 a489cd15...bee) with the local patches listed in charts/durable-actors/UPSTREAM.md (root global, invoke-only key, host idle timeout, pool-manager name length, zero-valued bounds, lowercase ingress host, schema patterns, README links). Never published by this repo; images pinned by upstream digest (charts/durable-actors/UPSTREAM.md). |
| relayfile-0.1.1 | shipped | relayfile 0.1.1 | relayfile: `ghcr.io/agentworkforce/relayfile:0.1.0` | | | image by tag (Chart.appVersion), not digest. Superseded by 0.2.0. |
| relay-chief-0.1.0 | unreleased | relay-chief 0.1.0 | | | | First chart, rendered only. No Relay Chief image is published and the digest is operator-supplied until one exists. |
| relaygate-0.1.9 | unreleased | relaygate 0.1.9 | relaygate: `ghcr.io/agentworkforce/relaygate@sha256:<required>` | | | Carries 0.1.8. The default policy adds the agent directory prefix relaycast:agent/ (gid 22, mode 040): the pit sees every agent in GET /v1/agents and /v1/agents/:name, local agents' view is unchanged, and seeing grants no write (DMs still need w on the inbox). Needs relaygate with the agent directory (relaygate#41) for it to take effect; older images ignore it. Default renders differ in the policy ConfigMap and the helm.sh/chart label. |
| relaygate-0.1.10 | unreleased | relaygate 0.1.10 | relaygate: `ghcr.io/agentworkforce/relaygate@sha256:<required>` | | | Carries 0.1.9. The default policy adds inboxDefaults for gid 11 (660, acl 22:r), mirroring the relaycast:inbox/local- rule: an inbox no prefix covers (Desktop agents named cursor-, claude-, codex-) follows its registered agent's group, so local agents DM each other and the pit may read, never write. Needs relaygate with inboxDefaults (relaygate#43) for it to take effect; older images ignore it. Default renders differ in the policy ConfigMap and the helm.sh/chart label. |
| relaygate-0.1.9 | **planned** | relaygate 0.1.9 | relaygate: `ghcr.io/agentworkforce/relaygate@sha256:<required>` | | | Carries 0.1.8. The default policy adds the agent directory prefix relaycast:agent/ (gid 22, mode 040): the pit sees every agent in GET /v1/agents and /v1/agents/:name, local agents' view is unchanged, and seeing grants no write (DMs still need w on the inbox). Needs relaygate with the agent directory (relaygate#41) for it to take effect; older images ignore it. Default renders differ in the policy ConfigMap and the helm.sh/chart label. |
| relaygate-0.1.8 | **planned** | relaygate 0.1.8 | relaygate: `ghcr.io/agentworkforce/relaygate@sha256:<required>` | | | Carries 0.1.7. global.relaygate.controlPolicy: RELAYGATE_ADMIN_TOKEN from the shared adminToken Secret; with pull, RELAYCONTROL_POLICY_URL (relay-control /internal/v1/relaygate/policy) and RELAYCONTROL_POLICY_SECRET instead of RELAYGATE_POLICY, the ConfigMap and its volume. Needs relaygate main at R1/R2 (#33, #34) or later. Default renders differ only in the helm.sh/chart label. |
| relaygate-0.1.7 | **planned** | relaygate 0.1.7 | relaygate: `ghcr.io/agentworkforce/relaygate@sha256:<required>` | | | Carries 0.1.6. Gate-only: SESSIONS_PORT (global.relaygate.gateOnly.sessionsPort, not 8080) with a containerPort, the internal ClusterIP Service <fullname>-sessions, and a NetworkPolicy admitting only sessionsListener.controlFrom (non-empty, labelled peers) to it; render fails without the port. Needs relaygate #28 or later for SESSIONS_PORT. Default renders differ only in the helm.sh/chart label. |
| relaygate-0.1.6 | **planned** | relaygate 0.1.6 | relaygate: `ghcr.io/agentworkforce/relaygate@sha256:<required>` | | | Carries 0.1.5. control.introspectUrl no longer needs proxy.sessionsUrl (desktop enrolment with a device token works without the Sessions proxy); its env renders outside the Sessions block. Comments for controlPrincipals namePrefix and reserved key ids. CI pins relaygate sha256:b2fcef80 (main 2e8368d, desktop enrolment). Ships no default digest. |
Expand Down
12 changes: 12 additions & 0 deletions scripts/ci/charts.sh
Original file line number Diff line number Diff line change
Expand Up @@ -1019,6 +1019,18 @@ for chart in "${charts[@]}"; do
! grep -Eq 'name: (RELAYCONTROL_INTROSPECT_URL|SESSION_INGEST_AUDIENCE|SESSIONS_CORS_ORIGINS|SESSIONS_INTERNAL_SECRET)$' <<<"$out" || err "$chart: unset Control settings rendered"
[ "$(yq 'select(.kind == "ConfigMap") | .data["policy.json"] | from_json | .controlPrincipals | length' <<<"$out" | sed '/^---$/d;/^$/d')" = 0 ] \
|| err "$chart: default policy must not grant Control principals"
# inboxDefaults: the default mirrors the local- inbox rule; an override whose groups lack a gid it names drops
# that entry (Helm merges the policy map, so the default would otherwise make the policy fail to load).
inbox_defaults() { render "$chart" charts/relaygate/ci/proxy-values.yaml "$@" | yq 'select(.kind == "ConfigMap") | .data["policy.json"]' | sed '/^---$/d' | jq -c '.inboxDefaults'; }
[ "$(inbox_defaults)" = '[{"acl":[{"gid":22,"perm":"r"}],"gid":11,"mode":"660"}]' ] || err "$chart: default inboxDefaults must mirror the local- inbox rule"
[ "$(inbox_defaults --set-json 'policy.groups=[{"gid":22,"name":"pit"}]')" = '[]' ] || err "$chart: inboxDefaults for an undefined gid must not render"
[ "$(inbox_defaults --set-json 'policy.groups=[{"gid":11,"name":"local"}]')" = '[]' ] || err "$chart: inboxDefaults with an ACL on an undefined gid must not render"
[ "$(inbox_defaults --set-json 'policy.inboxDefaults=[]')" = '[]' ] || err "$chart: inboxDefaults: [] must opt out"
# An operator's own entry naming an undefined gid fails closed rather than falling back to relaygate's 660.
expect_render_failure "$chart" charts/relaygate/ci/proxy-values.yaml "inboxDefaults ACL names an undefined gid" "policy.inboxDefaults entry for gid 11 names gid(s) 44" --set-json 'policy.inboxDefaults=[{"gid":11,"mode":"600","acl":[{"gid":44,"perm":"r"}]}]'
expect_render_failure "$chart" charts/relaygate/ci/proxy-values.yaml "inboxDefaults for an undefined gid" "policy.inboxDefaults entry for gid 33 names gid(s) 33" --set-json 'policy.inboxDefaults=[{"gid":33,"mode":"600"}]'
expect_render_failure "$chart" charts/relaygate/ci/proxy-values.yaml "explicit copy of the default inboxDefaults without gid 22" "policy.inboxDefaults entry for gid 11 names gid(s) 22" --set-json 'policy.groups=[{"gid":11,"name":"local"}]' --set-json 'policy.inboxDefaults=[{"gid":11,"mode":"660","acl":[{"gid":22,"perm":"r"}]}]'
[ "$(inbox_defaults --set-json 'policy.inboxDefaults=[{"gid":11,"mode":"600","acl":[{"gid":22,"perm":"r"}]}]')" = '[{"acl":[{"gid":22,"perm":"r"}],"gid":11,"mode":"600"}]' ] || err "$chart: an operator inboxDefaults entry must render as given"
expect_render_failure "$chart" "$v" "Sessions CORS/internal secret without sessionsUrl" "need proxy.sessionsUrl" --set proxy.sessionsUrl=
# Control principals alone (desktop enrolment): no Sessions proxy needed.
out=$(render "$chart" "$v" --set proxy.sessionsUrl= --set-json 'proxy.sessionsCorsOrigins=[]' --set secrets.sessionsInternalSecret.name=)
Expand Down
Loading
Loading