From 9b0cda6abc29ac7b0eb4a6659550440cd65170db Mon Sep 17 00:00:00 2001 From: celsius narhwal Date: Tue, 16 Jul 2024 13:59:41 -0400 Subject: [PATCH] Update _internal.py --- firewhale/_internal.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/firewhale/_internal.py b/firewhale/_internal.py index 8ba4e66..95f41d8 100644 --- a/firewhale/_internal.py +++ b/firewhale/_internal.py @@ -45,6 +45,7 @@ class Matcher(t.TypedDict): endpoint.lstrip("/").casefold() for endpoint in read_label.split(" ") ] + rules = [f"remote_host {container.name}", "method GET HEAD"] if "all" not in readable_endpoints: @@ -58,6 +59,7 @@ class Matcher(t.TypedDict): endpoint.lstrip("/").casefold() for endpoint in write_label.split(" ") ] + rules = [f"remote_host {container.name}"] if "all" not in writeable_endpoints: