We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9e3d8ce commit dec517dCopy full SHA for dec517d
apps/sim/app/api/knowledge/route.ts
@@ -83,9 +83,10 @@ const CreateKnowledgeBaseSchema = z.object({
83
}
84
return false
85
86
- // Allow Docker service hostnames (no dots = not a public domain)
87
- // e.g. "ollama", "host.docker.internal"
88
- if (!hostname.includes('.') || hostname.endsWith('.internal')) {
+ // Allow Docker service hostnames (no dots = not a public domain, e.g. "ollama")
+ // or the well-known Docker Desktop host alias. Do NOT allow all *.internal domains —
+ // they are not universally restricted and could be DNS-resolved to cloud metadata IPs.
89
+ if (!hostname.includes('.') || hostname === 'host.docker.internal') {
90
return true
91
92
0 commit comments