
izytrust
io.github.gcassata74/izytrust
Early access MCP gateway (Keycloak sign-in, per-tool scopes). Needs Keycloak: see izytrust-examples.
Documentation
IzyTrust examples
Helm values and a local Kubernetes demo for IzyTrust, a self-hosted MCP gateway that controls what AI agents can do on your systems.
IzyTrust exposes one MCP endpoint in front of your MCP servers. An agent (Claude Code, or any MCP client) connects to IzyTrust only. When a prompt first needs a tool, the user signs in with Keycloak. On every tool call IzyTrust:
- checks the user's token and the scope the tool requires (a tool that is not in the registry is denied);
- exchanges the user's token for one that is valid only for that upstream (OAuth 2.0 Token Exchange, RFC 8693);
- forwards the call, so the upstream never sees the user's IzyTrust token;
- writes user, upstream, tool, arguments, scope and outcome to an audit log.
The agent holds no credentials of its own, and every action is traceable to a person.
Product page: https://izylifesolutions.com/products/izytrust/
Early access: what to expect
IzyTrust is at version 0.x. The demo below runs end to end on k3d, and we test each release against it. Before you try it on your own systems, note what the current release does not do:
- Keycloak only. Sign-in and token exchange need Keycloak 26 or later with Token Exchange enabled on the IzyTrust client. Entra ID, Okta and other providers are not supported yet.
- Scope checks only. A tool is allowed or denied by the scope it requires. Policies on resources or context (OPA, Cedar) and human approval for destructive operations are on the roadmap.
- One replica. Sessions are stored on a ReadWriteOnce volume, so the chart runs a single pod. There is no high availability yet.
- Tested clients. We test with Claude Code. Other MCP clients that support streamable HTTP should work, but sign-in by URL elicitation depends on the client; otherwise IzyTrust returns a login link.
- Not for production. The evaluation licence does not cover production use, and there is no support unless agreed in writing.
If something does not work as described here, open an issue in this repository or contact us.
What is in this repository
| Path | Contents |
|---|---|
k3s-demo/ | Keycloak with a demo realm, two example upstream MCP servers, a demo app and a NetworkPolicy |
k3s-demo/values.yaml | Helm values for the demo, including the upstream registry |
The Helm chart (oci://ghcr.io/gcassata74/charts/izytrust) and the images
ghcr.io/gcassata74/izytrust and ghcr.io/gcassata74/izytrust-kube-mcp are public, signed
with cosign and stored on GitHub Container Registry. The IzyTrust source code is not in
this repository.
To read the chart's templates and default values:
helm pull oci://ghcr.io/gcassata74/charts/izytrust --version 0.1.3 --untar
Run the demo on k3d (k3s in Docker)
You need Docker, k3d, kubectl and Helm.
# 1. Cluster with ports 8001 (IzyTrust) and 8080 (Keycloak) on localhost
k3d cluster create izytrust-demo \
-p "8001:30001@server:0" -p "8080:30080@server:0"
# 2. Namespaces and secrets
kubectl apply -f k3s-demo/namespaces.yaml
kubectl -n izytrust create secret generic izytrust-oidc \
--from-literal=client-secret="$(openssl rand -hex 24)"
kubectl -n izytrust create secret generic keycloak-admin \
--from-literal=password="$(openssl rand -hex 12)"
# 3. Keycloak, example upstreams, demo app
kubectl apply -k k3s-demo
kubectl -n izytrust rollout status deploy/keycloak --timeout=5m
# 4. IzyTrust
helm install izytrust oci://ghcr.io/gcassata74/charts/izytrust --version 0.1.3 \
-n izytrust -f k3s-demo/values.yaml
kubectl -n izytrust rollout status deploy/izytrust
On an existing k3s node, skip step 1 and use NodePorts 30001 and 30080 directly, or
change publicUrl, KC_HOSTNAME and IZYTRUST_PUBLIC_URL to match your host.
Try it with Claude Code
claude mcp add --transport http izytrust http://localhost:8001/mcp
Then ask: "scale demo-app to 3 replicas". IzyTrust asks you to sign in with Keycloak: clients that support URL elicitation open the sign-in page and the call continues after login; otherwise the tool returns a link, and you ask again once signed in. The realm has two users:
| User | Password | Roles | Can call |
|---|---|---|---|
alice | alice | reader, writer | every tool, including kube_scale_deployment and notes_create_note |
bob | bob | reader | kube_list_pods, kube_get_deployment, notes_list_notes |
Both can also call IzyTrust's own tools, izytrust_whoami and izytrust_upstreams.
Sign in as bob and the scale request is denied by IzyTrust before it reaches Kubernetes.
Sign in as alice and it goes through. In both cases the decision is in the audit log (JSON lines, also written to
/data/audit.jsonl in the pod):
kubectl -n izytrust logs deploy/izytrust -c izytrust | grep '^AUDIT'
The example Kube MCP can only touch the demo namespace: its ServiceAccount has a Role
there and nowhere else, and it scales demo-app between 0 and 5 replicas only. It also
checks the token's audience and scope again on its side.
Connect your own MCP servers
Add an entry to upstreams in the values file and a client with the same name as the
audience in Keycloak. No code changes are needed.
upstreams:
- name: tickets
url: http://tickets-mcp.tools.svc:8000/mcp
audience: tickets-mcp
tools:
search_tickets: read
close_ticket: write
Agents see the tools as tickets_search_tickets and tickets_close_ticket.
Status and licence
IzyTrust is in early access (0.x). The files in this repository are released under the
Apache License 2.0. The IzyTrust chart and container images are proprietary software of
Izylife Solutions s.r.l. You may evaluate them free of charge for up to 30 days and 5 users,
not in production; the full terms are in the LICENSE file shipped in the image
(/app/LICENSE). Any other use requires a written agreement. For a licence, or for an
assessment of your use case, contact us at https://izylifesolutions.com/?service=izytrust#contacts.
The demo uses Keycloak in dev mode with fixed passwords. Do not expose it to a network.
ghcr.io/gcassata74/izytrust:0.1.3docker pull ghcr.io/gcassata74/izytrust:0.1.3:undefined