Skip to content

Commit

Permalink
Merge pull request #1974 from alan-turing-institute/fix_firewall_prio…
Browse files Browse the repository at this point in the history
…rity

Add new priority for workspace denied
  • Loading branch information
JimMadge committed Jun 29, 2024
2 parents 75fc1a0 + cc8febb commit 87fe39b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion data_safe_haven/infrastructure/programs/sre/firewall.py
Original file line number Diff line number Diff line change
Expand Up @@ -244,7 +244,7 @@ def __init__(
type=network.AzureFirewallRCActionType.DENY
),
name="workspaces-deny",
priority=FirewallPriorities.SRE_WORKSPACES,
priority=FirewallPriorities.SRE_WORKSPACES_DENY,
rules=[
network.AzureFirewallApplicationRuleArgs(
description="Deny external Ubuntu Snap Store upload and login access",
Expand Down
3 changes: 2 additions & 1 deletion data_safe_haven/types/enums.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,8 @@ class FirewallPriorities(int, Enum):
SRE_GUACAMOLE_CONTAINERS = 3100
SRE_IDENTITY_CONTAINERS = 3200
SRE_USER_SERVICES_SOFTWARE_REPOSITORIES = 3300
SRE_WORKSPACES = 3400
SRE_WORKSPACES_DENY = 3400
SRE_WORKSPACES = 3450


@verify(UNIQUE)
Expand Down

0 comments on commit 87fe39b

Please sign in to comment.