Skip to content
Merged
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
6 changes: 6 additions & 0 deletions charts/appwrite/ci/hardened-values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,12 @@ networkPolicy:
enabled: true
egress:
enabled: true
# Appwrite checks avatar, screenshot and migration URLs through its own
# resolver (_APP_DNS_EXTERNAL, by default 8.8.8.8), as docs/networking.md
# tells users to allow.
extraRules:
- to: [{ipBlock: {cidr: 8.8.8.8/32}}]
ports: [{port: 53, protocol: UDP}, {port: 53, protocol: TCP}]
metrics:
from:
- namespaceSelector:
Expand Down
5 changes: 5 additions & 0 deletions docs/troubleshooting.md
Original file line number Diff line number Diff line change
Expand Up @@ -335,6 +335,11 @@ kubectl -n appwrite logs -l appwrite/role=worker --prefix --tail=2000 | grep -i
(`browser.enabled: false`). Turn it on and redeploy the site; screenshots
are only taken during a deployment
([optional-components.md](optional-components.md#browser)).
- `Hostname ... does not resolve` (in the API's log for
`/v1/avatars/screenshots`): with `networkPolicy.egress.enabled`, Appwrite
can't reach the resolver it checks URLs with (`_APP_DNS_EXTERNAL`, by
default 8.8.8.8). Allow it
([networking.md](networking.md#requests-to-private-addresses)).
- A timeout, or a refused connection to the API: with `networkPolicy.enabled`,
the browser may only reach DNS, the API and public addresses
([security.md](security.md#network-policies)); check that its egress
Expand Down
Loading