Skip to content

Should not be able to change IP subnets for a VPC Subnet #964

Closed

Description

@bnaecker

Looking at the code below

pub struct VpcSubnetUpdate {
#[serde(flatten)]
pub identity: IdentityMetadataUpdateParams,
// TODO-correctness: These need to be removed. Changing these is effectively
// creating a new resource, so we should require explicit
// deletion/recreation by the client.
pub ipv4_block: Option<Ipv4Net>,
pub ipv6_block: Option<Ipv6Net>,
}

we can see it's currently possible to update the IPv4 or IPv6 subnet for a VPC Subnet. That needs to be disallowed, where the only way to really do this would be to delete the VPC Subnet and create a new one with the desired parameters.

Activity

  1. added
    api
    networking
    on Apr 23, 2022
  2. bnaecker commented on May 6, 2022

    @bnaecker
    CollaboratorAuthor

    Closed by #1019

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    apinetworking

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions