Skip to content

Vpc firewall rule rendering needs update #2851

@askfongjojo

Description

@askfongjojo

With the changes introduced in oxidecomputer/omicron#8194, the default rules inserted for any new VPC will need to include the new type field. Firewall rules GET API are currently failing because of this:

oxide --profile recovery vpc firewall-rules view --project angela --vpc default

error
Invalid Response Payload (b"{"rules":[{"id":"6f952a37-cd87-459e-bd6d-b5f75ddc7a7e","name":"allow-icmp","description":"allow inbound ICMP traffic from anywhere","time_created":"2025-07-10T01:54:42.298715Z","time_modified":"2025-07-10T01:54:42.298715Z","status":"enabled","direction":"inbound","targets":[{"type":"vpc","value":"default"}],"filters":{"hosts":null,"protocols":[{"type":"icmp","value":null}],"ports":null},"action":"allow","priority":65534,"vpc_id":"f9965440-9547-4546-ae37-d423418799ad"},{"id":"f7c1f8ab-fc7e-4441-ae8b-585b4d3dab1c","name":"allow-internal-inbound","description":"allow inbound traffic to all instances within the VPC if originated within the VPC","time_created":"2025-07-10T01:54:42.298711Z","time_modified":"2025-07-10T01:54:42.298711Z","status":"enabled","direction":"inbound","targets":[{"type":"vpc","value":"default"}],"filters":{"hosts":[{"type":"vpc","value":"default"}],"protocols":null,"ports":null},"action":"allow","priority":65534,"vpc_id":"f9965440-9547-4546-ae37-d423418799ad"},{"id":"6c73b5d8-379c-47da-9525-75ca8632fd0b","name":"allow-ssh","description":"allow inbound TCP connections on port 22 from anywhere","time_created":"2025-07-10T01:54:42.298714Z","time_modified":"2025-07-10T01:54:42.298714Z","status":"enabled","direction":"inbound","targets":[{"type":"vpc","value":"default"}],"filters":{"hosts":null,"protocols":[{"type":"tcp"}],"ports":["22"]},"action":"allow","priority":65534,"vpc_id":"f9965440-9547-4546-ae37-d423418799ad"}]}"): unknown variant type, expected one of TCP, UDP, ICMP at line 1 column 353: unknown variant type, expected one of TCP, UDP, ICMP at line 1 column 353

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions