Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add network ACL resource #84

Merged
merged 3 commits into from
Jun 20, 2024
Merged

Add network ACL resource #84

merged 3 commits into from
Jun 20, 2024

Conversation

maveonair
Copy link
Member

@maveonair maveonair commented Jun 19, 2024

This pull requests adds the network ACL resource (see #78).

Examples

resource "incus_network_acl" "this" {
  name        = "my-acl"
  description = "foo"
}
resource "incus_network_acl" "this" {
  name        = "my-acl"
  description = "foo"

  egress = [
    {
      action           = "allow"
      destination      = "1.1.1.1,1.0.0.1"
      destination_port = "53"
      protocol         = "udp"
      description      = "DNS to cloudflare public resolvers (UDP)"
      state            = "enabled"
    },
    {
      action           = "allow"
      destination      = "1.1.1.1,1.0.0.1"
      destination_port = "53"
      protocol         = "tcp"
      description      = "DNS to cloudflare public resolvers (TCP)"
      state            = "enabled"
    }
  ]

  ingress = [
    {
      action           = "allow"
      source           = "@external"
      destination_port = "22"
      protocol         = "tcp"
      description      = "Incoming SSH connections"
      state            = "logged"
    }
  ]
}

What's been done

  • Added network_acl.go which implements the network ACL resource
  • Added network_acl_test.go which implements various tests for the network ACL resource
  • Added documentation of the network ACL resource

@maveonair maveonair linked an issue Jun 19, 2024 that may be closed by this pull request
@maveonair maveonair force-pushed the network-acl branch 2 times, most recently from f5f95d6 to 914d1a4 Compare June 20, 2024 05:54
@maveonair maveonair marked this pull request as ready for review June 20, 2024 07:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

Add support for incus_network_acl
2 participants