Skip to content

Commit

Permalink
Update _internal.py
Browse files Browse the repository at this point in the history
  • Loading branch information
celsiusnarhwal committed Jul 16, 2024
1 parent 22efa31 commit 9b0cda6
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions firewhale/_internal.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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:
Expand Down

0 comments on commit 9b0cda6

Please sign in to comment.