visualize-admin / visualization-tool

The tool for visualizing Swiss Open Government Data. Project ownership: Federal Office for the Environment FOEN
https://visualize.admin.ch
BSD 3-Clause "New" or "Revised" License
31 stars 3 forks source link

fix: Use cache bounded as prescribed by the warning #1564

Closed ptbrowne closed 3 months ago

ptbrowne commented 3 months ago

The default cache of Apollo 3 is using an unbounded cache by default, which would be vulnerable to denial of service attacks.

The warning was issued when the application was started and Philipp from Abraxas told us about that.

Persisted queries are enabled and are using an unbounded cache. Your server is vulnerable to denial of service attacks via memory exhaustion. Set cache: "bounded" or persistedQueries: false in your ApolloServer constructor, or see https://go.apollo.dev/s/cache-backends for other alternatives.

vercel[bot] commented 3 months ago

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
visualization-tool ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jun 5, 2024 1:45pm