zuplo 7.15.33 → 7.15.34
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/docs/ai-gateway/azure-ai.mdx +2 -6
- package/docs/ai-gateway/bedrock-mantle.mdx +2 -6
- package/docs/ai-gateway/cookbooks/data-residency.mdx +3 -7
- package/docs/ai-gateway/guardrails.mdx +1 -3
- package/docs/ai-gateway/routing.mdx +10 -14
- package/docs/ai-gateway/vertex-ai.mdx +5 -13
- package/docs/articles/connect-to-aws-alb-with-mtls.mdx +2 -6
- package/docs/articles/proxy-openai-realtime-api.mdx +6 -2
- package/docs/articles/secure-tunnel.mdx +3 -7
- package/docs/caching/custom-caching-policy.mdx +4 -4
- package/docs/caching/dynamic-cache-rules.mdx +3 -3
- package/docs/caching/overview.mdx +2 -6
- package/docs/concepts/source-control-and-deployment.mdx +4 -12
- package/docs/concepts/where-zuplo-runs.mdx +4 -12
- package/docs/dedicated/akamai/ai-powered-applications.mdx +5 -15
- package/docs/dedicated/akamai/architecture.mdx +11 -33
- package/docs/dedicated/akamai/hostname-routing.mdx +4 -4
- package/docs/dedicated/architecture.mdx +1 -1
- package/docs/guides/backend-failover.mdx +9 -8
- package/docs/mcp-gateway/auth/upstream-oauth.mdx +1 -1
- package/docs/mcp-gateway/overview.mdx +1 -1
- package/docs/mcp-server/authorize-tool-calls.mdx +6 -2
- package/docs/policies/mcp-entra-oauth-inbound/doc.md +24 -0
- package/docs/policies/mcp-entra-oauth-inbound/schema.json +13 -0
- package/docs/policies/mcp-okta-oauth-inbound/doc.md +9 -2
- package/docs/policies/mcp-okta-oauth-inbound/schema.json +2 -2
- package/docs/policies/mcp-workos-oauth-inbound/doc.md +8 -0
- package/docs/policies/mcp-workos-oauth-inbound/schema.json +7 -0
- package/package.json +5 -5
|
@@ -84,12 +84,8 @@ resource key:
|
|
|
84
84
|
AI Gateway
|
|
85
85
|
</DiagramNode>
|
|
86
86
|
<DiagramGroup id="azure" label="Your Azure resource">
|
|
87
|
-
<DiagramNode id="openai-surface"
|
|
88
|
-
|
|
89
|
-
</DiagramNode>
|
|
90
|
-
<DiagramNode id="messages-surface" variant="green">
|
|
91
|
-
Anthropic Messages API
|
|
92
|
-
</DiagramNode>
|
|
87
|
+
<DiagramNode id="openai-surface">OpenAI-compatible API</DiagramNode>
|
|
88
|
+
<DiagramNode id="messages-surface">Anthropic Messages API</DiagramNode>
|
|
93
89
|
</DiagramGroup>
|
|
94
90
|
<DiagramEdge from="app" to="gateway" label="Universal API" />
|
|
95
91
|
<DiagramEdge
|
|
@@ -43,12 +43,8 @@ Mantle serves two API formats on the same host with the same API key:
|
|
|
43
43
|
AI Gateway
|
|
44
44
|
</DiagramNode>
|
|
45
45
|
<DiagramGroup id="mantle" label="Bedrock Mantle (your region)">
|
|
46
|
-
<DiagramNode id="openai-surface"
|
|
47
|
-
|
|
48
|
-
</DiagramNode>
|
|
49
|
-
<DiagramNode id="messages-surface" variant="green">
|
|
50
|
-
Anthropic Messages API
|
|
51
|
-
</DiagramNode>
|
|
46
|
+
<DiagramNode id="openai-surface">OpenAI-compatible API</DiagramNode>
|
|
47
|
+
<DiagramNode id="messages-surface">Anthropic Messages API</DiagramNode>
|
|
52
48
|
</DiagramGroup>
|
|
53
49
|
<DiagramEdge from="app" to="gateway" label="Universal API" />
|
|
54
50
|
<DiagramEdge
|
|
@@ -29,16 +29,12 @@ requested model.
|
|
|
29
29
|
AI Gateway (data-residency policy)
|
|
30
30
|
</DiagramNode>
|
|
31
31
|
<DiagramGroup id="eu" label="EU region">
|
|
32
|
-
<DiagramNode id="vertex-eu"
|
|
33
|
-
vertex-eu (europe-west4)
|
|
34
|
-
</DiagramNode>
|
|
32
|
+
<DiagramNode id="vertex-eu">vertex-eu (europe-west4)</DiagramNode>
|
|
35
33
|
</DiagramGroup>
|
|
36
34
|
<DiagramGroup id="us" label="US region">
|
|
37
|
-
<DiagramNode id="vertex-us"
|
|
38
|
-
vertex-us (us-central1)
|
|
39
|
-
</DiagramNode>
|
|
35
|
+
<DiagramNode id="vertex-us">vertex-us (us-central1)</DiagramNode>
|
|
40
36
|
</DiagramGroup>
|
|
41
|
-
<DiagramEdge from="app" to="gateway" label="x-data-region: eu" />
|
|
37
|
+
<DiagramEdge from="app" to="gateway" label="`x-data-region: eu`" />
|
|
42
38
|
<DiagramEdge from="gateway" to="vertex-eu" label="eu" />
|
|
43
39
|
<DiagramEdge from="gateway" to="vertex-us" label="us" />
|
|
44
40
|
</Diagram>
|
|
@@ -32,9 +32,7 @@ list.
|
|
|
32
32
|
<DiagramNode id="akamai" variant="zuplo">
|
|
33
33
|
Akamai AI Firewall
|
|
34
34
|
</DiagramNode>
|
|
35
|
-
<DiagramNode id="model"
|
|
36
|
-
LLM provider
|
|
37
|
-
</DiagramNode>
|
|
35
|
+
<DiagramNode id="model">LLM provider</DiagramNode>
|
|
38
36
|
<DiagramEdge from="client" to="dlp" label="prompt" />
|
|
39
37
|
<DiagramEdge from="dlp" to="pi" label="masked prompt" />
|
|
40
38
|
<DiagramEdge from="pi" to="akamai" />
|
|
@@ -32,21 +32,17 @@ on this page build on that selection or replace it.
|
|
|
32
32
|
<DiagramNode id="pick" variant="zuplo">
|
|
33
33
|
Pick the model
|
|
34
34
|
</DiagramNode>
|
|
35
|
-
<DiagramNode
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
<DiagramNode id="primary" variant="blue">
|
|
42
|
-
Chosen model
|
|
43
|
-
</DiagramNode>
|
|
44
|
-
<DiagramNode id="quota" variant="blue">
|
|
45
|
-
Quota fallback model
|
|
46
|
-
</DiagramNode>
|
|
47
|
-
<DiagramNode id="backup" variant="blue">
|
|
48
|
-
Backup model
|
|
35
|
+
<DiagramNode
|
|
36
|
+
id="fallback"
|
|
37
|
+
variant="zuplo"
|
|
38
|
+
detail="adds a backup and a quota fallback"
|
|
39
|
+
>
|
|
40
|
+
Fallback Model
|
|
49
41
|
</DiagramNode>
|
|
42
|
+
<DiagramNode id="budget">Budget check</DiagramNode>
|
|
43
|
+
<DiagramNode id="primary">Chosen model</DiagramNode>
|
|
44
|
+
<DiagramNode id="quota">Quota fallback model</DiagramNode>
|
|
45
|
+
<DiagramNode id="backup">Backup model</DiagramNode>
|
|
50
46
|
<DiagramEdge from="request" to="pick" />
|
|
51
47
|
<DiagramEdge from="pick" to="fallback" />
|
|
52
48
|
<DiagramEdge from="fallback" to="budget" />
|
|
@@ -77,19 +77,11 @@ bearer credential.
|
|
|
77
77
|
<DiagramNode id="gateway" variant="zuplo">
|
|
78
78
|
AI Gateway
|
|
79
79
|
</DiagramNode>
|
|
80
|
-
<DiagramNode id="oauth"
|
|
81
|
-
Google OAuth
|
|
82
|
-
</DiagramNode>
|
|
80
|
+
<DiagramNode id="oauth">Google OAuth</DiagramNode>
|
|
83
81
|
<DiagramGroup id="gcp" label="Your Google Cloud project">
|
|
84
|
-
<DiagramNode id="compat"
|
|
85
|
-
|
|
86
|
-
</DiagramNode>
|
|
87
|
-
<DiagramNode id="embed" variant="green">
|
|
88
|
-
Vertex embedding APIs
|
|
89
|
-
</DiagramNode>
|
|
90
|
-
<DiagramNode id="messages" variant="blue">
|
|
91
|
-
Anthropic Messages API (Claude)
|
|
92
|
-
</DiagramNode>
|
|
82
|
+
<DiagramNode id="compat">OpenAI-compatible endpoint</DiagramNode>
|
|
83
|
+
<DiagramNode id="embed">Vertex embedding APIs</DiagramNode>
|
|
84
|
+
<DiagramNode id="messages">Anthropic Messages API (Claude)</DiagramNode>
|
|
93
85
|
</DiagramGroup>
|
|
94
86
|
<DiagramEdge from="app" to="gateway" label="Universal API" />
|
|
95
87
|
<DiagramEdge
|
|
@@ -100,7 +92,7 @@ bearer credential.
|
|
|
100
92
|
/>
|
|
101
93
|
<DiagramEdge from="gateway" to="compat" label="chat completions" />
|
|
102
94
|
<DiagramEdge from="gateway" to="embed" label="embeddings" />
|
|
103
|
-
<DiagramEdge from="gateway" to="messages" label="
|
|
95
|
+
<DiagramEdge from="gateway" to="messages" label="`/v1/messages`" />
|
|
104
96
|
</Diagram>
|
|
105
97
|
|
|
106
98
|
The request URL the gateway builds combines both settings you enter:
|
|
@@ -48,12 +48,8 @@ against the trust store, and only then forwards the request to the target group.
|
|
|
48
48
|
Zuplo Gateway
|
|
49
49
|
</DiagramNode>
|
|
50
50
|
<DiagramGroup id="aws" label="AWS VPC">
|
|
51
|
-
<DiagramNode id="alb"
|
|
52
|
-
|
|
53
|
-
</DiagramNode>
|
|
54
|
-
<DiagramNode id="backend" variant="green">
|
|
55
|
-
Backend targets
|
|
56
|
-
</DiagramNode>
|
|
51
|
+
<DiagramNode id="alb">ALB (mTLS verify)</DiagramNode>
|
|
52
|
+
<DiagramNode id="backend">Backend targets</DiagramNode>
|
|
57
53
|
</DiagramGroup>
|
|
58
54
|
<DiagramEdge from="client" to="gateway" label="HTTPS" />
|
|
59
55
|
<DiagramEdge from="gateway" to="alb" label="mTLS (client cert)" />
|
|
@@ -30,9 +30,13 @@ puts a Zuplo route in front of that WebSocket so that:
|
|
|
30
30
|
<DiagramEdge
|
|
31
31
|
from="client"
|
|
32
32
|
to="zuplo"
|
|
33
|
-
label="Authorization: Bearer zpka_
|
|
33
|
+
label="`Authorization: Bearer zpka_...`"
|
|
34
|
+
/>
|
|
35
|
+
<DiagramEdge
|
|
36
|
+
from="zuplo"
|
|
37
|
+
to="openai"
|
|
38
|
+
label="`Authorization: Bearer sk-...`"
|
|
34
39
|
/>
|
|
35
|
-
<DiagramEdge from="zuplo" to="openai" label="Authorization: Bearer sk-..." />
|
|
36
40
|
</Diagram>
|
|
37
41
|
|
|
38
42
|
The route uses the
|
|
@@ -59,15 +59,11 @@ already established.
|
|
|
59
59
|
Zuplo Gateway
|
|
60
60
|
</DiagramNode>
|
|
61
61
|
<DiagramGroup id="private" label="Your private network">
|
|
62
|
-
<DiagramNode id="tunnel"
|
|
63
|
-
|
|
64
|
-
</DiagramNode>
|
|
65
|
-
<DiagramNode id="api" variant="green">
|
|
66
|
-
Private API
|
|
67
|
-
</DiagramNode>
|
|
62
|
+
<DiagramNode id="tunnel">Tunnel service</DiagramNode>
|
|
63
|
+
<DiagramNode id="api">Private API</DiagramNode>
|
|
68
64
|
</DiagramGroup>
|
|
69
65
|
<DiagramEdge from="client" to="gateway" label="HTTPS" />
|
|
70
|
-
<DiagramEdge from="gateway" to="tunnel" label="service
|
|
66
|
+
<DiagramEdge from="gateway" to="tunnel" label="`service://`" animated />
|
|
71
67
|
<DiagramEdge from="tunnel" to="api" fromSide="bottom" toSide="top" />
|
|
72
68
|
</Diagram>
|
|
73
69
|
|
|
@@ -60,12 +60,12 @@ outbound policy stores the response on the way back out.
|
|
|
60
60
|
|
|
61
61
|
<Diagram height="h-56">
|
|
62
62
|
<DiagramNode id="client">Client</DiagramNode>
|
|
63
|
-
<DiagramNode id="inbound" variant="zuplo">
|
|
64
|
-
Inbound
|
|
63
|
+
<DiagramNode id="inbound" variant="zuplo" detail="`cache.match`">
|
|
64
|
+
Inbound
|
|
65
65
|
</DiagramNode>
|
|
66
66
|
<DiagramNode id="backend">Backend</DiagramNode>
|
|
67
|
-
<DiagramNode id="outbound" variant="zuplo">
|
|
68
|
-
Outbound
|
|
67
|
+
<DiagramNode id="outbound" variant="zuplo" detail="`cache.put`">
|
|
68
|
+
Outbound
|
|
69
69
|
</DiagramNode>
|
|
70
70
|
<DiagramEdge from="client" to="inbound" />
|
|
71
71
|
<DiagramEdge from="inbound" to="backend" label="Miss" />
|
|
@@ -37,9 +37,9 @@ the `cdn` option names.
|
|
|
37
37
|
<DiagramNode id="fn" variant="zuplo">
|
|
38
38
|
Function returns intent
|
|
39
39
|
</DiagramNode>
|
|
40
|
-
<DiagramNode id="akamai"
|
|
41
|
-
<DiagramNode id="fastly"
|
|
42
|
-
<DiagramNode id="cf"
|
|
40
|
+
<DiagramNode id="akamai">`Edge-Control`</DiagramNode>
|
|
41
|
+
<DiagramNode id="fastly">`Surrogate-Control`</DiagramNode>
|
|
42
|
+
<DiagramNode id="cf">`Cloudflare-CDN-Cache-Control`</DiagramNode>
|
|
43
43
|
<DiagramEdge from="fn" to="akamai" label="akamai" />
|
|
44
44
|
<DiagramEdge from="fn" to="fastly" label="fastly" />
|
|
45
45
|
<DiagramEdge from="fn" to="cf" label="cloudflare" />
|
|
@@ -26,9 +26,7 @@ itself when the layer in front of it misses.
|
|
|
26
26
|
|
|
27
27
|
<Diagram height="h-80">
|
|
28
28
|
<DiagramNode id="client">Client</DiagramNode>
|
|
29
|
-
<DiagramNode id="cdn"
|
|
30
|
-
CDN edge cache
|
|
31
|
-
</DiagramNode>
|
|
29
|
+
<DiagramNode id="cdn">CDN edge cache</DiagramNode>
|
|
32
30
|
<DiagramGroup id="zuplo" label="Zuplo gateway">
|
|
33
31
|
<DiagramNode id="gateway" variant="zuplo">
|
|
34
32
|
Response cache
|
|
@@ -37,9 +35,7 @@ itself when the layer in front of it misses.
|
|
|
37
35
|
Programmable cache
|
|
38
36
|
</DiagramNode>
|
|
39
37
|
</DiagramGroup>
|
|
40
|
-
<DiagramNode id="origin"
|
|
41
|
-
Backend cache
|
|
42
|
-
</DiagramNode>
|
|
38
|
+
<DiagramNode id="origin">Backend cache</DiagramNode>
|
|
43
39
|
<DiagramEdge from="client" to="cdn" label="Request" />
|
|
44
40
|
<DiagramEdge from="cdn" to="gateway" label="Miss" />
|
|
45
41
|
<DiagramEdge
|
|
@@ -90,12 +90,8 @@ maps to a **Preview** environment.
|
|
|
90
90
|
<DiagramNode id="prod" variant="green">
|
|
91
91
|
Production
|
|
92
92
|
</DiagramNode>
|
|
93
|
-
<DiagramNode id="preview-staging"
|
|
94
|
-
|
|
95
|
-
</DiagramNode>
|
|
96
|
-
<DiagramNode id="preview-feature" variant="blue">
|
|
97
|
-
Preview (feature/auth)
|
|
98
|
-
</DiagramNode>
|
|
93
|
+
<DiagramNode id="preview-staging">Preview (staging)</DiagramNode>
|
|
94
|
+
<DiagramNode id="preview-feature">Preview (feature/auth)</DiagramNode>
|
|
99
95
|
</DiagramGroup>
|
|
100
96
|
<DiagramEdge from="main" to="prod" />
|
|
101
97
|
<DiagramEdge from="staging" to="preview-staging" />
|
|
@@ -207,13 +203,9 @@ environment.
|
|
|
207
203
|
The typical workflow from development to production looks like this:
|
|
208
204
|
|
|
209
205
|
<Diagram direction="vertical" height="h-96">
|
|
210
|
-
<DiagramNode id="develop"
|
|
211
|
-
Develop (local or working copy)
|
|
212
|
-
</DiagramNode>
|
|
206
|
+
<DiagramNode id="develop">Develop (local or working copy)</DiagramNode>
|
|
213
207
|
<DiagramNode id="push">Push to feature branch</DiagramNode>
|
|
214
|
-
<DiagramNode id="preview"
|
|
215
|
-
Preview environment deployed
|
|
216
|
-
</DiagramNode>
|
|
208
|
+
<DiagramNode id="preview">Preview environment deployed</DiagramNode>
|
|
217
209
|
<DiagramNode id="merge">Merge to main</DiagramNode>
|
|
218
210
|
<DiagramNode id="production" variant="green">
|
|
219
211
|
Production environment updated
|
|
@@ -81,18 +81,10 @@ set of authentication, rate limits, and analytics.
|
|
|
81
81
|
<DiagramNode id="zuplo" variant="zuplo">
|
|
82
82
|
Zuplo Gateway
|
|
83
83
|
</DiagramNode>
|
|
84
|
-
<DiagramNode id="aws"
|
|
85
|
-
|
|
86
|
-
</DiagramNode>
|
|
87
|
-
<DiagramNode id="
|
|
88
|
-
Google Cloud
|
|
89
|
-
</DiagramNode>
|
|
90
|
-
<DiagramNode id="azure" variant="blue">
|
|
91
|
-
Azure
|
|
92
|
-
</DiagramNode>
|
|
93
|
-
<DiagramNode id="onprem" variant="green">
|
|
94
|
-
On-premises data center
|
|
95
|
-
</DiagramNode>
|
|
84
|
+
<DiagramNode id="aws">AWS</DiagramNode>
|
|
85
|
+
<DiagramNode id="gcp">Google Cloud</DiagramNode>
|
|
86
|
+
<DiagramNode id="azure">Azure</DiagramNode>
|
|
87
|
+
<DiagramNode id="onprem">On-premises data center</DiagramNode>
|
|
96
88
|
<DiagramEdge from="clients" to="zuplo" />
|
|
97
89
|
<DiagramEdge from="zuplo" to="aws" />
|
|
98
90
|
<DiagramEdge from="zuplo" to="gcp" />
|
|
@@ -42,15 +42,9 @@ The following diagram shows the complete architecture:
|
|
|
42
42
|
<Diagram height="h-56" direction="horizontal">
|
|
43
43
|
<DiagramNode id="chat-app">AI Chat Application</DiagramNode>
|
|
44
44
|
<DiagramGroup id="edge" label="Akamai Edge Platform">
|
|
45
|
-
<DiagramNode id="waf"
|
|
46
|
-
|
|
47
|
-
</DiagramNode>
|
|
48
|
-
<DiagramNode id="cdn" variant="blue">
|
|
49
|
-
Akamai CDN
|
|
50
|
-
</DiagramNode>
|
|
51
|
-
<DiagramNode id="ai-firewall" variant="orange">
|
|
52
|
-
AI Firewall
|
|
53
|
-
</DiagramNode>
|
|
45
|
+
<DiagramNode id="waf">WAF + DDoS</DiagramNode>
|
|
46
|
+
<DiagramNode id="cdn">Akamai CDN</DiagramNode>
|
|
47
|
+
<DiagramNode id="ai-firewall">AI Firewall</DiagramNode>
|
|
54
48
|
</DiagramGroup>
|
|
55
49
|
<DiagramGroup id="gateway" label="Zuplo Gateway">
|
|
56
50
|
<DiagramNode id="ai-gateway" variant="zuplo">
|
|
@@ -61,12 +55,8 @@ The following diagram shows the complete architecture:
|
|
|
61
55
|
</DiagramNode>
|
|
62
56
|
</DiagramGroup>
|
|
63
57
|
<DiagramGroup id="backend" label="Akamai Connected Cloud">
|
|
64
|
-
<DiagramNode id="llm"
|
|
65
|
-
|
|
66
|
-
</DiagramNode>
|
|
67
|
-
<DiagramNode id="api" variant="green">
|
|
68
|
-
Internal Data API
|
|
69
|
-
</DiagramNode>
|
|
58
|
+
<DiagramNode id="llm">AI Model (LLM)</DiagramNode>
|
|
59
|
+
<DiagramNode id="api">Internal Data API</DiagramNode>
|
|
70
60
|
</DiagramGroup>
|
|
71
61
|
<DiagramEdge from="chat-app" to="waf" />
|
|
72
62
|
<DiagramEdge from="waf" to="cdn" fromSide="bottom" toSide="top" />
|
|
@@ -42,12 +42,8 @@ to Zuplo and your backend services:
|
|
|
42
42
|
<Diagram height="h-64">
|
|
43
43
|
<DiagramNode id="client">Client</DiagramNode>
|
|
44
44
|
<DiagramGroup id="akamai-edge" label="Akamai Edge Platform">
|
|
45
|
-
<DiagramNode id="cdn"
|
|
46
|
-
|
|
47
|
-
</DiagramNode>
|
|
48
|
-
<DiagramNode id="gtm" variant="blue">
|
|
49
|
-
Global Traffic Manager
|
|
50
|
-
</DiagramNode>
|
|
45
|
+
<DiagramNode id="cdn">Akamai CDN</DiagramNode>
|
|
46
|
+
<DiagramNode id="gtm">Global Traffic Manager</DiagramNode>
|
|
51
47
|
</DiagramGroup>
|
|
52
48
|
<DiagramGroup id="akamai-cloud" label="Akamai Connected Cloud">
|
|
53
49
|
<DiagramNode id="gateway" variant="zuplo">
|
|
@@ -131,36 +127,26 @@ traffic to the closest healthy region.
|
|
|
131
127
|
<Diagram height="h-[500px]" direction="vertical">
|
|
132
128
|
<DiagramNode id="client">Client</DiagramNode>
|
|
133
129
|
<DiagramGroup id="akamai-edge" label="Akamai Edge Platform">
|
|
134
|
-
<DiagramNode id="cdn"
|
|
135
|
-
|
|
136
|
-
</DiagramNode>
|
|
137
|
-
<DiagramNode id="gtm" variant="blue">
|
|
138
|
-
Global Traffic Manager
|
|
139
|
-
</DiagramNode>
|
|
130
|
+
<DiagramNode id="cdn">Akamai CDN</DiagramNode>
|
|
131
|
+
<DiagramNode id="gtm">Global Traffic Manager</DiagramNode>
|
|
140
132
|
</DiagramGroup>
|
|
141
133
|
<DiagramGroup id="region1" label="Akamai Cloud - Region 1">
|
|
142
134
|
<DiagramNode id="gateway1" variant="zuplo">
|
|
143
135
|
Zuplo Gateway
|
|
144
136
|
</DiagramNode>
|
|
145
|
-
<DiagramNode id="backend1"
|
|
146
|
-
Backend (Region 1)
|
|
147
|
-
</DiagramNode>
|
|
137
|
+
<DiagramNode id="backend1">Backend (Region 1)</DiagramNode>
|
|
148
138
|
</DiagramGroup>
|
|
149
139
|
<DiagramGroup id="region2" label="Akamai Cloud - Region 2">
|
|
150
140
|
<DiagramNode id="gateway2" variant="zuplo">
|
|
151
141
|
Zuplo Gateway
|
|
152
142
|
</DiagramNode>
|
|
153
|
-
<DiagramNode id="backend2"
|
|
154
|
-
Backend (Region 2)
|
|
155
|
-
</DiagramNode>
|
|
143
|
+
<DiagramNode id="backend2">Backend (Region 2)</DiagramNode>
|
|
156
144
|
</DiagramGroup>
|
|
157
145
|
<DiagramGroup id="region3" label="Akamai Cloud - Region 3">
|
|
158
146
|
<DiagramNode id="gateway3" variant="zuplo">
|
|
159
147
|
Zuplo Gateway
|
|
160
148
|
</DiagramNode>
|
|
161
|
-
<DiagramNode id="backend3"
|
|
162
|
-
Backend (Region 3)
|
|
163
|
-
</DiagramNode>
|
|
149
|
+
<DiagramNode id="backend3">Backend (Region 3)</DiagramNode>
|
|
164
150
|
</DiagramGroup>
|
|
165
151
|
<DiagramEdge from="client" to="cdn" />
|
|
166
152
|
<DiagramEdge from="cdn" to="gtm" fromSide="bottom" toSide="top" />
|
|
@@ -205,24 +191,16 @@ security requirements.
|
|
|
205
191
|
</DiagramNode>
|
|
206
192
|
</DiagramGroup>
|
|
207
193
|
<DiagramGroup id="akamai-compute" label="Akamai Compute">
|
|
208
|
-
<DiagramNode id="akamai-backend"
|
|
209
|
-
Akamai Services
|
|
210
|
-
</DiagramNode>
|
|
194
|
+
<DiagramNode id="akamai-backend">Akamai Services</DiagramNode>
|
|
211
195
|
</DiagramGroup>
|
|
212
196
|
<DiagramGroup id="customer-vpc" label="Customer VPC">
|
|
213
|
-
<DiagramNode id="vpc-backend"
|
|
214
|
-
Private Cloud Backend
|
|
215
|
-
</DiagramNode>
|
|
197
|
+
<DiagramNode id="vpc-backend">Private Cloud Backend</DiagramNode>
|
|
216
198
|
</DiagramGroup>
|
|
217
199
|
<DiagramGroup id="on-premise" label="On-Premise">
|
|
218
|
-
<DiagramNode id="datacenter"
|
|
219
|
-
Data Center Backend
|
|
220
|
-
</DiagramNode>
|
|
200
|
+
<DiagramNode id="datacenter">Data Center Backend</DiagramNode>
|
|
221
201
|
</DiagramGroup>
|
|
222
202
|
<DiagramGroup id="public-cloud" label="Public Cloud">
|
|
223
|
-
<DiagramNode id="aws"
|
|
224
|
-
AWS / GCP / Azure
|
|
225
|
-
</DiagramNode>
|
|
203
|
+
<DiagramNode id="aws">AWS / GCP / Azure</DiagramNode>
|
|
226
204
|
</DiagramGroup>
|
|
227
205
|
<DiagramEdge from="gateway" to="akamai-backend" label="mTLS" />
|
|
228
206
|
<DiagramEdge from="gateway" to="vpc-backend" label="Private Link" />
|
|
@@ -21,7 +21,7 @@ nothing except the hostname they call.
|
|
|
21
21
|
<DiagramNode id="prod-client">Production clients</DiagramNode>
|
|
22
22
|
<DiagramNode id="test-client">Test clients</DiagramNode>
|
|
23
23
|
<DiagramGroup id="akamai-edge" label="Akamai property">
|
|
24
|
-
<DiagramNode id="cdn"
|
|
24
|
+
<DiagramNode id="cdn">
|
|
25
25
|
api.example.com
|
|
26
26
|
<br />
|
|
27
27
|
api-test.example.com
|
|
@@ -34,9 +34,9 @@ nothing except the hostname they call.
|
|
|
34
34
|
<DiagramNode id="prod-backend">Production backend</DiagramNode>
|
|
35
35
|
<DiagramNode id="test-backend">Test backend</DiagramNode>
|
|
36
36
|
</DiagramGroup>
|
|
37
|
-
<DiagramEdge from="prod-client" to="cdn" label="api.example.com" />
|
|
38
|
-
<DiagramEdge from="test-client" to="cdn" label="api-test.example.com" />
|
|
39
|
-
<DiagramEdge from="cdn" to="gateway" label="x-zuplo-route header" />
|
|
37
|
+
<DiagramEdge from="prod-client" to="cdn" label="`api.example.com`" />
|
|
38
|
+
<DiagramEdge from="test-client" to="cdn" label="`api-test.example.com`" />
|
|
39
|
+
<DiagramEdge from="cdn" to="gateway" label="`x-zuplo-route` header" />
|
|
40
40
|
<DiagramEdge from="gateway" to="prod-backend" label="prod" />
|
|
41
41
|
<DiagramEdge from="gateway" to="test-backend" label="test" />
|
|
42
42
|
</Diagram>
|
|
@@ -105,7 +105,7 @@ instance of Zuplo and how the components interact with each other.
|
|
|
105
105
|
</DiagramNode>
|
|
106
106
|
<DiagramEdge from="client" to="gateway" />
|
|
107
107
|
<DiagramEdge from="gateway" to="backend" />
|
|
108
|
-
<DiagramEdge from="gateway" to="services"
|
|
108
|
+
<DiagramEdge from="gateway" to="services" />
|
|
109
109
|
<DiagramEdge from="control" to="gateway" />
|
|
110
110
|
</Diagram>
|
|
111
111
|
|
|
@@ -39,18 +39,19 @@ CDN provider.
|
|
|
39
39
|
<DiagramNode id="gateway" variant="zuplo">
|
|
40
40
|
Zuplo Gateway
|
|
41
41
|
</DiagramNode>
|
|
42
|
-
<DiagramNode id="lb"
|
|
43
|
-
Global load balancer or DNS
|
|
44
|
-
</DiagramNode>
|
|
42
|
+
<DiagramNode id="lb">Global load balancer or DNS</DiagramNode>
|
|
45
43
|
<DiagramNode id="primary" variant="green">
|
|
46
44
|
Primary region
|
|
47
45
|
</DiagramNode>
|
|
48
|
-
<DiagramNode id="secondary"
|
|
49
|
-
|
|
50
|
-
</DiagramNode>
|
|
51
|
-
<DiagramEdge from="gateway" to="lb" label="api-origin.example.com" />
|
|
46
|
+
<DiagramNode id="secondary">Secondary region</DiagramNode>
|
|
47
|
+
<DiagramEdge from="gateway" to="lb" label="`api-origin.example.com`" />
|
|
52
48
|
<DiagramEdge from="lb" to="primary" label="healthy" />
|
|
53
|
-
<DiagramEdge
|
|
49
|
+
<DiagramEdge
|
|
50
|
+
from="lb"
|
|
51
|
+
to="secondary"
|
|
52
|
+
label="on failover"
|
|
53
|
+
lineStyle="dashed"
|
|
54
|
+
/>
|
|
54
55
|
</Diagram>
|
|
55
56
|
|
|
56
57
|
This keeps failover out of the gateway:
|
|
@@ -142,7 +142,7 @@ message; the user copies it into a browser.
|
|
|
142
142
|
Upstream connect
|
|
143
143
|
</DiagramNode>
|
|
144
144
|
<DiagramNode id="route" variant="zuplo">
|
|
145
|
-
|
|
145
|
+
`/mcp/linear-v1`
|
|
146
146
|
</DiagramNode>
|
|
147
147
|
</DiagramGroup>
|
|
148
148
|
<DiagramNode id="oauth">Linear OAuth</DiagramNode>
|
|
@@ -89,7 +89,6 @@ servers that already exist, this is the right product.
|
|
|
89
89
|
## Architecture
|
|
90
90
|
|
|
91
91
|
<Diagram height="h-[28rem]">
|
|
92
|
-
<DiagramNode id="idp">OIDC Identity Provider</DiagramNode>
|
|
93
92
|
<DiagramGroup id="clients" label="MCP Clients">
|
|
94
93
|
<DiagramNode id="claude">Claude Desktop</DiagramNode>
|
|
95
94
|
<DiagramNode id="cursor">Cursor</DiagramNode>
|
|
@@ -114,6 +113,7 @@ servers that already exist, this is the right product.
|
|
|
114
113
|
<DiagramNode id="notion">Notion</DiagramNode>
|
|
115
114
|
<DiagramNode id="stripe">Stripe</DiagramNode>
|
|
116
115
|
</DiagramGroup>
|
|
116
|
+
<DiagramNode id="idp">OIDC Identity Provider</DiagramNode>
|
|
117
117
|
<DiagramEdge from="auth" to="idp" label="Browser login" />
|
|
118
118
|
<DiagramEdge from="clients" to="gateway" label="Bearer token" />
|
|
119
119
|
<DiagramEdge from="gateway" to="upstream" label="Per-upstream token" />
|
|
@@ -32,8 +32,12 @@ route.
|
|
|
32
32
|
Tool route: authentication, checks, OpenFGA
|
|
33
33
|
</DiagramNode>
|
|
34
34
|
<DiagramNode id="api">Your API</DiagramNode>
|
|
35
|
-
<DiagramEdge from="client" to="mcp" label="tools/call" />
|
|
36
|
-
<DiagramEdge
|
|
35
|
+
<DiagramEdge from="client" to="mcp" label="`tools/call`" />
|
|
36
|
+
<DiagramEdge
|
|
37
|
+
from="mcp"
|
|
38
|
+
to="tool"
|
|
39
|
+
label="`POST /accounts/acc_123/transfers`"
|
|
40
|
+
/>
|
|
37
41
|
<DiagramEdge from="tool" to="api" />
|
|
38
42
|
</Diagram>
|
|
39
43
|
|
|
@@ -17,6 +17,30 @@ Given a Microsoft Entra tenant UUID, the wrapper derives:
|
|
|
17
17
|
| `browserLogin.url` | `https://login.microsoftonline.com/{tenantId}/oauth2/v2.0/authorize` |
|
|
18
18
|
| `browserLogin.tokenUrl` | `https://login.microsoftonline.com/{tenantId}/oauth2/v2.0/token` |
|
|
19
19
|
|
|
20
|
+
For a tenant in a national cloud, set `cloud` and the wrapper swaps the host:
|
|
21
|
+
|
|
22
|
+
| `cloud` | Host |
|
|
23
|
+
| ------------------ | --------------------------- |
|
|
24
|
+
| `global` (default) | `login.microsoftonline.com` |
|
|
25
|
+
| `us-government` | `login.microsoftonline.us` |
|
|
26
|
+
| `china` | `login.chinacloudapi.cn` |
|
|
27
|
+
| `external-id` | `{tenantId}.ciamlogin.com` |
|
|
28
|
+
|
|
29
|
+
For a Microsoft Entra External ID tenant with a custom URL domain, also set
|
|
30
|
+
`customDomain`. The browser login URLs move to that host, and the issuer stays
|
|
31
|
+
`https://{tenantId}.ciamlogin.com/{tenantId}/v2.0`, which is what External ID
|
|
32
|
+
puts in tokens:
|
|
33
|
+
|
|
34
|
+
```json
|
|
35
|
+
{
|
|
36
|
+
"tenantId": "$env(ENTRA_TENANT_ID)",
|
|
37
|
+
"cloud": "external-id",
|
|
38
|
+
"customDomain": "login.example.com",
|
|
39
|
+
"clientId": "$env(ENTRA_CLIENT_ID)",
|
|
40
|
+
"clientSecret": "$env(ENTRA_CLIENT_SECRET)"
|
|
41
|
+
}
|
|
42
|
+
```
|
|
43
|
+
|
|
20
44
|
The policy intentionally requires a tenant UUID. Entra aliases like `common`,
|
|
21
45
|
`organizations`, and `consumers` have issuer semantics that do not match the
|
|
22
46
|
gateway's current exact issuer verification model.
|
|
@@ -41,6 +41,17 @@
|
|
|
41
41
|
"examples": ["$env(ENTRA_TENANT_ID)"],
|
|
42
42
|
"description": "The Microsoft Entra tenant UUID. Multi-tenant aliases like common and organizations are not supported by this policy yet."
|
|
43
43
|
},
|
|
44
|
+
"cloud": {
|
|
45
|
+
"type": "string",
|
|
46
|
+
"enum": ["global", "us-government", "china", "external-id"],
|
|
47
|
+
"default": "global",
|
|
48
|
+
"description": "The Microsoft Entra cloud or tenant type. Use us-government for Microsoft Entra ID for US Government (login.microsoftonline.us), china for Microsoft Entra ID operated by 21Vianet (login.chinacloudapi.cn), and external-id for a Microsoft Entra External ID tenant ({tenantId}.ciamlogin.com)."
|
|
49
|
+
},
|
|
50
|
+
"customDomain": {
|
|
51
|
+
"type": "string",
|
|
52
|
+
"examples": ["login.example.com"],
|
|
53
|
+
"description": "The External ID custom URL domain users sign in on. Only valid with cloud set to external-id. Moves the browser login endpoints to this host; the token issuer stays on {tenantId}.ciamlogin.com."
|
|
54
|
+
},
|
|
44
55
|
"clientId": {
|
|
45
56
|
"type": "string",
|
|
46
57
|
"examples": ["$env(ENTRA_CLIENT_ID)"],
|
|
@@ -205,6 +216,8 @@
|
|
|
205
216
|
},
|
|
206
217
|
"clientId": "$env(ENTRA_CLIENT_ID)",
|
|
207
218
|
"clientSecret": "$env(ENTRA_CLIENT_SECRET)",
|
|
219
|
+
"cloud": "global",
|
|
220
|
+
"customDomain": "login.example.com",
|
|
208
221
|
"gateway": {
|
|
209
222
|
"accessTokenTtlSeconds": 900,
|
|
210
223
|
"cimdEnabled": true,
|
|
@@ -48,10 +48,17 @@ conventions.
|
|
|
48
48
|
}
|
|
49
49
|
```
|
|
50
50
|
|
|
51
|
-
`oktaDomain`
|
|
52
|
-
`acme.
|
|
51
|
+
`oktaDomain` is the hostname your users sign in on: an Okta org domain like
|
|
52
|
+
`acme.okta.com` or `acme.okta-emea.com`, or an Okta custom domain like
|
|
53
|
+
`login.example.com`. Do not include `https://`, a port, a trailing slash, or an
|
|
53
54
|
authorization server path.
|
|
54
55
|
|
|
56
|
+
If you use a custom domain, the issuer Okta puts in tokens must match the
|
|
57
|
+
derived `oidc.issuer` exactly. Set the authorization server's issuer to the
|
|
58
|
+
custom domain (**Custom URL** or **Dynamic** in Okta), and confirm the `issuer`
|
|
59
|
+
value at `https://{oktaDomain}/.well-known/openid-configuration` (or
|
|
60
|
+
`https://{oktaDomain}/oauth2/{authorizationServerId}/.well-known/openid-configuration`).
|
|
61
|
+
|
|
55
62
|
## Pairing
|
|
56
63
|
|
|
57
64
|
Pair this policy with `McpTokenExchangeInboundPolicy` and `McpProxyHandler`, the
|
|
@@ -38,8 +38,8 @@
|
|
|
38
38
|
"properties": {
|
|
39
39
|
"oktaDomain": {
|
|
40
40
|
"type": "string",
|
|
41
|
-
"examples": ["acme.okta.com"],
|
|
42
|
-
"description": "The Okta org domain, without https://, a trailing slash, or a path."
|
|
41
|
+
"examples": ["acme.okta.com", "login.example.com"],
|
|
42
|
+
"description": "The Okta org domain or Okta custom domain, without https://, a port, a trailing slash, or a path."
|
|
43
43
|
},
|
|
44
44
|
"authorizationServerId": {
|
|
45
45
|
"type": "string",
|
|
@@ -20,6 +20,14 @@ Given `clientId: "client_01KC6057N3C66XJAXZ65YHAC72"`, the wrapper derives:
|
|
|
20
20
|
These endpoint shapes come from WorkOS OIDC discovery at
|
|
21
21
|
`https://api.workos.com/user_management/{clientId}/.well-known/openid-configuration`.
|
|
22
22
|
|
|
23
|
+
## Custom domain
|
|
24
|
+
|
|
25
|
+
If you use a WorkOS custom authentication API domain, set `apiHostname` to it,
|
|
26
|
+
for example `"apiHostname": "auth.example.com"`. Every derived URL above then
|
|
27
|
+
uses that host instead of `api.workos.com`, so the issuer matches the `iss`
|
|
28
|
+
claim WorkOS puts in tokens issued on your domain. Confirm the `issuer` value at
|
|
29
|
+
`https://{apiHostname}/user_management/{clientId}/.well-known/openid-configuration`.
|
|
30
|
+
|
|
23
31
|
## Configuration
|
|
24
32
|
|
|
25
33
|
```json
|
|
@@ -41,6 +41,12 @@
|
|
|
41
41
|
"examples": ["$env(WORKOS_CLIENT_ID)"],
|
|
42
42
|
"description": "The WorkOS client\\_id registered for the gateway's browser login flow. The OIDC issuer and JWKS URL are derived from this client ID."
|
|
43
43
|
},
|
|
44
|
+
"apiHostname": {
|
|
45
|
+
"type": "string",
|
|
46
|
+
"default": "api.workos.com",
|
|
47
|
+
"examples": ["auth.example.com"],
|
|
48
|
+
"description": "The WorkOS API hostname. Set this to your WorkOS custom authentication API domain when you use one; the OIDC issuer, JWKS URL, and browser login endpoints are derived from it. Omit it to use api.workos.com."
|
|
49
|
+
},
|
|
44
50
|
"clientSecret": {
|
|
45
51
|
"type": "string",
|
|
46
52
|
"examples": ["$env(WORKOS_CLIENT_SECRET)"],
|
|
@@ -192,6 +198,7 @@
|
|
|
192
198
|
"export": "McpWorkosOAuthInboundPolicy",
|
|
193
199
|
"module": "$import(@zuplo/runtime)",
|
|
194
200
|
"options": {
|
|
201
|
+
"apiHostname": "auth.example.com",
|
|
195
202
|
"browserLoginOverrides": {
|
|
196
203
|
"pkce": "none",
|
|
197
204
|
"remoteTimeoutMs": 10000,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "zuplo",
|
|
3
|
-
"version": "7.15.
|
|
3
|
+
"version": "7.15.34",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "The official Zuplo CLI for local development and platform management",
|
|
6
6
|
"homepage": "https://zuplo.com/docs/cli/overview",
|
|
@@ -32,9 +32,9 @@
|
|
|
32
32
|
"zuplo": "zuplo.js"
|
|
33
33
|
},
|
|
34
34
|
"dependencies": {
|
|
35
|
-
"@zuplo/cli": "7.15.
|
|
36
|
-
"@zuplo/core": "7.15.
|
|
37
|
-
"@zuplo/runtime": "7.15.
|
|
38
|
-
"@zuplo/test": "7.15.
|
|
35
|
+
"@zuplo/cli": "7.15.34",
|
|
36
|
+
"@zuplo/core": "7.15.34",
|
|
37
|
+
"@zuplo/runtime": "7.15.34",
|
|
38
|
+
"@zuplo/test": "7.15.34"
|
|
39
39
|
}
|
|
40
40
|
}
|