Skip to content
Open
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
11 changes: 11 additions & 0 deletions DEPENDENCIES.md
Original file line number Diff line number Diff line change
Expand Up @@ -373,6 +373,17 @@ Typo-squat check: each module path is the vendor's own (GitHub orgs anthropics,

| github.com/modelcontextprotocol/go-sdk | v1.8.0 | 2026-09-04 (release page 2026-09-14) | modelcontextprotocol org (official Go SDK, maintained with Google: findleyr, jba); tag commit 3f3b699 matches proxy | clean | none | MCP server, Streamable HTTP, `auth.RequireBearerToken` and RFC 9728 metadata. Was already in the module graph at v1.3.1 (indirect); now direct. New indirect: segmentio/encoding v0.5.4 (2026-03), segmentio/asm v1.2.1 (2023-11), yosida95/uritemplate/v3 v3.0.2 (2022-04), each OSV clean |

### Connector policy: Open Policy Agent (checked 2026-12-01)

Embedded in the gateway as a library (`internal/connectors/policy/opa`) to check every connector call against Rego rules. Only `v1/ast`, `v1/rego`, `v1/topdown` (its error type, to log a failed evaluation by code and place) and `v1/util` are imported; OPA's server, bundle downloader, plugins and telemetry are not compiled in. Not linked into a `javo local` build.

| Dependency | Version | Released | Maintainers / source | OSV | Install scripts | Notes |
|---|---|---|---|---|---|---|
| github.com/open-policy-agent/opa | v1.22.4 | 2026-11-12 | open-policy-agent org (CNCF graduated, 12.5k stars, not archived); MAINTAINERS.md at the tag lists anderseknert, ashutosh-narkar, charlieegan3, srenatus, tsandall and others, unchanged in 90 days except a conftest maintainer added 2026-09-30; release commit by srenatus, release published by the project's release workflow; tag commit ba39415 matches the proxy origin | clean (`{}` for 1.22.4) | none | v1.23.0 is 5 days old, so v1.22.4 (19 days) is the newest release at least 14 days old. 1.22.x patch releases (11-05, 11-05, 11-10, 11-12) are fixes rebuilt for Go advisories, each with a GitHub release; no burst after inactivity. Built-ins that reach outside the gateway (`http.send`, `net.lookup_ip_addr`, `opa.runtime`, and `json.match_schema` and `json.verify_schema`, which fetch a schema's `$ref` by URL or file path) are refused when rules load |
| modules raised or added by it (indirect) | spf13/pflag v1.1.0, agnivade/levenshtein v1.2.2, decred/dcrd/dcrec/secp256k1/v4 v4.4.1, fsnotify v1.10.1, go-openapi/jsonpointer and jsonreference v1.0.1, go-openapi/swag/* v0.29.2, gobwas/glob v1.1.0, goccy/go-json v0.11.2, grpc-gateway/v2 v2.31.0, klauspost/compress v1.20.3, lestrrat-go/{blackmagic v1.0.4, dsig v1.4.0, dsig-secp256k1 v1.0.0, httpcc v1.0.1, httprc/v3 v3.0.6, jwx/v3 v3.4.0, option/v2 v2.0.0}, prometheus/client_golang v1.25.0, client_model v0.6.3, common v0.72.0, sirupsen/logrus v1.10.2, tetratelabs/wazero v1.12.0, valyala/fastjson v1.6.10, vektah/gqlparser/v2 v2.5.64, xeipuuv/gojsonpointer and gojsonreference (2019, 2018 pseudo-versions), yashtewari/glob-intersection v0.2.0, otel/proto/otlp v1.11.1, go.yaml.in/yaml/v3 v3.0.6, google.golang.org/grpc v1.85.0, gopkg.in/ini.v1 v1.67.3 | each 32 days old or more | OPA's requirements | clean (OSV batch query of each exact version: none) | none | none under 14 days old. Transitive: `govulncheck@v1.9.0 ./...` reports no vulnerability reached; the one module-level finding is GO-2026-5932 in golang.org/x/crypto v0.58.0, unchanged by this addition (see above) |

Typo-squat check: `github.com/open-policy-agent/opa` is the module path the OPA documentation (openpolicyagent.org) names for Go integration.

#### Secret scanner: gitleaks with patched archive codecs (checked 2026-11-02)

`internal/ai/redact` uses gitleaks' `detect` package (default rules) as a library to hide secrets in log lines before a bundle is sent to a model.
Expand Down
40 changes: 40 additions & 0 deletions deploy/helm/javo/templates/_helpers.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -497,3 +497,43 @@ imagePullSecrets:
configMap: {name: javo-branding}
{{- end -}}
{{- end -}}

{{/* Where the gateway reads the connector policy's rules, and so where
they are mounted: config.connectors.policy.rulesDir, by default
/etc/javo-policy. */}}
{{- define "javo.connectorPolicyDir" -}}
{{- (default (dict) (default (dict) .Values.config.connectors).policy).rulesDir | default "/etc/javo-policy" -}}
{{- end -}}

{{/* The ConfigMap of connector policy rules the gateway mounts; empty with
connectors off. With connectors on, fails unless exactly one of
connectorPolicy.configMap and connectorPolicy.rules is set. */}}
{{- define "javo.connectorPolicyConfigMap" -}}
{{- $p := .Values.connectorPolicy -}}
{{- if (default (dict) .Values.config.connectors).enabled -}}
{{- if and $p.configMap $p.rules -}}
{{- fail "connectorPolicy: set configMap or rules, not both" -}}
{{- else if $p.configMap -}}
{{ $p.configMap }}
{{- else if $p.rules -}}
javo-connector-policy
{{- else -}}
{{- fail "config.connectors.enabled needs connector policy rules: set connectorPolicy.configMap or connectorPolicy.rules (without rules every connector call would be denied)" -}}
{{- end -}}
{{- end -}}
{{- end -}}

{{/* A whole-directory mount, never subPath: a subPath mount does not update,
and the gateway reads the rules again when the mount changes. */}}
{{- define "javo.connectorPolicyMount" -}}
{{- if include "javo.connectorPolicyConfigMap" . -}}
- {name: connector-policy, mountPath: {{ include "javo.connectorPolicyDir" . }}, readOnly: true}
{{- end -}}
{{- end -}}

{{- define "javo.connectorPolicyVolume" -}}
{{- with include "javo.connectorPolicyConfigMap" . -}}
- name: connector-policy
configMap: {name: {{ . }}}
{{- end -}}
{{- end -}}
8 changes: 7 additions & 1 deletion deploy/helm/javo/templates/config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,20 @@ containerImages from the top-level containerImages values, branding from
the top-level branding values,
source.cloneImage and source.previews from the top-level source values,
auth.oidc.clientSecretFile defaults to the file mounted from
gateway.oidcClientSecret, and urls.uiHost defaults to the ingress host.
gateway.oidcClientSecret, connectors.policy.rulesDir defaults to the rules
mounted from connectorPolicy, and urls.uiHost defaults to the ingress host.
urls.uiHost, urls.appsHost, auth.oidc.issuer and auth.oidc.clientID are
rendered as templates. */ -}}
{{- $cfg := deepCopy .Values.config -}}
{{- $_ := set $cfg "containerImages" (dict "enabled" .Values.containerImages.enabled "allowedRegistries" .Values.containerImages.allowedRegistries) -}}
{{- $_ := set $cfg "source" (dict "cloneImage" .Values.source.cloneImage "gitConfig" .Values.source.gitConfig "previews" .Values.source.previews) -}}
{{- $_ := set $cfg "branding" (include "javo.brandingConfig" . | fromJson) -}}
{{- $_ := set $cfg "namespaces" (merge (dict "shared" .Values.workspaceNamespace) (default (dict) $cfg.namespaces)) -}}
{{- if include "javo.connectorPolicyConfigMap" . -}}
{{- $policy := default (dict) $cfg.connectors.policy -}}
{{- if not $policy.rulesDir }}{{ $_ := set $policy "rulesDir" (include "javo.connectorPolicyDir" .) }}{{ end -}}
{{- $_ := set $cfg.connectors "policy" $policy -}}
{{- end -}}
{{- $oidc := (default (dict) $cfg.auth).oidc -}}
{{- if $oidc -}}
{{- range $k := list "issuer" "clientID" -}}
Expand Down
16 changes: 16 additions & 0 deletions deploy/helm/javo/templates/connector-policy.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
{{- /*
The connector policy's rules given inline (connectorPolicy.rules). The gateway
mounts them, whole, at javo.connectorPolicyDir and reads them again when the
mount changes, so editing them needs no restart.
*/ -}}
{{- if and (include "javo.connectorPolicyConfigMap" .) .Values.connectorPolicy.rules }}
apiVersion: v1
kind: ConfigMap
metadata:
name: javo-connector-policy
namespace: {{ .Release.Namespace }}
labels:
{{- include "javo.labels" . | nindent 4 }}
data:
{{- toYaml .Values.connectorPolicy.rules | nindent 2 }}
{{- end }}
6 changes: 6 additions & 0 deletions deploy/helm/javo/templates/gateway.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,9 @@ spec:
{{- with include "javo.brandingMount" . }}
{{- . | nindent 12 }}
{{- end }}
{{- with include "javo.connectorPolicyMount" . }}
{{- . | nindent 12 }}
{{- end }}
{{- with include "javo.bucketMounts" . }}
{{- . | nindent 12 }}
{{- end }}
Expand All @@ -93,6 +96,9 @@ spec:
{{- with include "javo.brandingVolume" . }}
{{- . | nindent 8 }}
{{- end }}
{{- with include "javo.connectorPolicyVolume" . }}
{{- . | nindent 8 }}
{{- end }}
{{- with include "javo.bucketVolumes" . }}
{{- . | nindent 8 }}
{{- end }}
Expand Down
6 changes: 6 additions & 0 deletions deploy/helm/javo/templates/server.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,9 @@ spec:
{{- with include "javo.brandingMount" . }}
{{- . | nindent 12 }}
{{- end }}
{{- with include "javo.connectorPolicyMount" . }}
{{- . | nindent 12 }}
{{- end }}
{{- with include "javo.bucketMounts" . }}
{{- . | nindent 12 }}
{{- end }}
Expand All @@ -137,6 +140,9 @@ spec:
{{- with include "javo.brandingVolume" . }}
{{- . | nindent 8 }}
{{- end }}
{{- with include "javo.connectorPolicyVolume" . }}
{{- . | nindent 8 }}
{{- end }}
{{- with include "javo.bucketVolumes" . }}
{{- . | nindent 8 }}
{{- end }}
Expand Down
16 changes: 16 additions & 0 deletions deploy/helm/javo/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -469,6 +469,22 @@ branding:
dark: {url: "", svg: "", base64: ""}
favicon: {url: "", svg: "", base64: ""}

# The Rego rules every connector call is checked against (see
# site/src/content/docs/admin/connector-policy.md). Needed with
# config.connectors.enabled: set exactly one of configMap and rules, or the
# chart refuses to render (without rules every connector call would be
# denied). Both are ignored with connectors off. The gateway mounts the
# ConfigMap whole at /etc/javo-policy (config.connectors.policy.rulesDir,
# unless you set that) and reads it again every 10 seconds, so a change to
# the rules needs no restart.
connectorPolicy:
# An existing ConfigMap in the release namespace whose keys are .rego
# files, such as one ArgoCD syncs from a GitOps repository.
configMap: ""
# File name to Rego source, rendered into ConfigMap javo-connector-policy,
# e.g. --set-file 'connectorPolicy.rules.greenhouse\.rego=greenhouse.rego'.
rules: {}

# Platform config, rendered into ConfigMap javo-config and read by both the
# controller and the gateway (see internal/config for every key).
# namespaces.shared is taken from workspaceNamespace above.
Expand Down
13 changes: 13 additions & 0 deletions deploy/policy/examples/email.rego
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
package tapas.rules.email

# send is the tools that send an email from a person's mailbox.
send := {"send_email", "send_message", "send_draft"}

# METADATA
# title: Email sends need approval
# description: An email leaves the company in the person's name, so they approve each send in the browser first.
require_approval contains rego.metadata.rule() if {
input.where.connector == "gmail"
input.where.tool in send
not input.approval
}
25 changes: 25 additions & 0 deletions deploy/policy/examples/email_test.rego
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
package tapas.rules.email_test

import data.tapas.rules.email

send := {
"checkpoint": "tool_call",
"phase": "propose",
"who": {"person": "alice@example.com", "groups": []},
"where": {"connector": "gmail", "tool": "send_email", "mode": "write"},
"what": {"arguments": {"to": "bob@example.com", "subject": "Hi"}},
"findings": [],
}

test_a_send_needs_approval if {
some d in email.require_approval with input as send
d.title == "Email sends need approval"
}

test_an_approved_send_goes_ahead if {
count(email.require_approval) == 0 with input as object.union(send, {"phase": "apply", "approval": {"plan": "p-1", "by": "alice@example.com"}})
}

test_reading_mail_needs_no_approval if {
count(email.require_approval) == 0 with input as object.union(send, {"where": {"connector": "gmail", "tool": "search", "mode": "read"}})
}
14 changes: 14 additions & 0 deletions deploy/policy/examples/frames.rego
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
package tapas.rules.frames

# write is the Frames tools that change context the whole organisation
# reads.
write := {"create_frame", "update_frame"}

# METADATA
# title: Frames changes need approval
# description: A Frame is shared context the whole organisation reads, so a person approves each change to one in the browser.
require_approval contains rego.metadata.rule() if {
input.where.connector == "frames"
input.where.tool in write
not input.approval
}
32 changes: 32 additions & 0 deletions deploy/policy/examples/frames_test.rego
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
package tapas.rules.frames_test

import data.tapas.rules.frames

update := {
"checkpoint": "tool_call",
"phase": "propose",
"who": {"person": "alice@example.com", "groups": []},
"agent": {"name": "helper", "app": "helper-1", "token": "t-1"},
"where": {"connector": "frames", "tool": "update_frame", "mode": "write"},
"what": {"arguments": {"id": "f-1", "body": "Use the Oxford comma."}},
"findings": [],
}

approved(by) := object.union(update, {"phase": "apply", "approval": {"plan": "p-1", "by": by}})

test_a_change_needs_approval if {
count(frames.require_approval) == 1 with input as update
}

test_a_create_needs_approval if {
count(frames.require_approval) == 1 with input as object.union(update, {"where": {"connector": "frames", "tool": "create_frame", "mode": "write"}})
}

test_an_approved_change_goes_ahead if {
count(frames.require_approval) == 0 with input as approved("alice@example.com")
}

test_reads_pass if {
read := object.union(update, {"where": {"connector": "frames", "tool": "get_frame", "mode": "read"}})
count(frames.require_approval) == 0 with input as read
}
9 changes: 9 additions & 0 deletions deploy/policy/examples/greenhouse.rego
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
package tapas.rules.greenhouse

# METADATA
# title: Only recruiting uses Greenhouse
# description: Greenhouse holds candidates' personal data, so only people in the recruiting group may use it through an agent.
deny contains rego.metadata.rule() if {
input.where.connector == "greenhouse"
not "recruiting" in input.who.groups
}
29 changes: 29 additions & 0 deletions deploy/policy/examples/greenhouse_test.rego
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
package tapas.rules.greenhouse_test

import data.tapas.rules.greenhouse

call(groups) := {
"checkpoint": "tool_call",
"phase": "read",
"who": {"person": "alice@example.com", "groups": groups},
"where": {"connector": "greenhouse", "tool": "list_candidates", "mode": "read"},
"what": {"arguments": {}},
"findings": [],
}

test_recruiting_may_read if {
count(greenhouse.deny) == 0 with input as call(["recruiting"])
}

test_others_are_denied_with_a_reason if {
some d in greenhouse.deny with input as call(["sales"])
d.title == "Only recruiting uses Greenhouse"
}

test_no_groups_is_denied if {
count(greenhouse.deny) == 1 with input as call([])
}

test_other_connectors_are_not_affected if {
count(greenhouse.deny) == 0 with input as object.union(call([]), {"where": {"connector": "slack", "tool": "post", "mode": "write"}})
}
Loading