Skip to content

feat(civogo): Add VPC API#283

Merged
aculnaig merged 6 commits intomasterfrom
feat/vpc-api
Mar 3, 2026
Merged

feat(civogo): Add VPC API#283
aculnaig merged 6 commits intomasterfrom
feat/vpc-api

Conversation

@aculnaig
Copy link

@aculnaig aculnaig commented Feb 3, 2026

No description provided.

@aculnaig aculnaig self-assigned this Feb 3, 2026
Update Go version from 1.24.9 to 1.24.12 in go.mod and all GitHub
Actions workflow files to address standard library vulnerabilities
detected by govulncheck.

Vulnerabilities fixed:

- GO-2026-4341: Memory exhaustion in query parameter parsing in net/url
- GO-2026-4340: Handshake messages processed at incorrect encryption
  level in crypto/tls
- GO-2025-4175: Improper application of excluded DNS name constraints
  when verifying wildcard names in crypto/x509
- GO-2025-4155: Excessive resource consumption when printing error
  string for host certificate validation in crypto/x509
@aculnaig aculnaig requested a review from giornetta February 3, 2026 10:36
Copy link
Member

@alessandroargentieri alessandroargentieri left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do we have the API /v2/vpc/* released already?

@alessandroargentieri
Copy link
Member

if it's the exact copy of the methods from /networks /firewalls, /ips, /loadbalancers is fine, still it cannot be merged and released before the API is released (MR is in review phase at the moment)

@alessandroargentieri alessandroargentieri added the enhancement New feature or request label Feb 3, 2026
Gianluca Cannata added 3 commits February 9, 2026 09:03
The subnets and routes endpoints under /v2/vpc/networks/{id}/subnets
are not ready for the VPC API. This removes all related client methods,
tests, and documentation while keeping the underlying types in network.go
intact.
Bumps Go from 1.24.12 to 1.24.13 to fix GO-2026-4337 (unexpected
session resumption in crypto/tls). Updates go.mod and all workflow
fallback versions.
The DNS endpoints under /v2/vpc/dns are not ready for the VPC API.
This removes all related client methods, tests, and documentation
for both DNS domains and DNS records.
giornetta
giornetta previously approved these changes Mar 2, 2026
@dwoolger
Copy link
Contributor

dwoolger commented Mar 2, 2026

There is a lot of code duplication here, do we want to refactor to a shared implementation so that we don't need to perform updates in two places in the future? For example:-

  func (c *Client) ListNetworks() ([]Network, error) {
      return c.listNetworks("/v2/networks")
  }

firewall.go has IsUsingDefaultRules(firewallID) which is not mirrored in the VPC methods

The original network.go includes ListSubnets, GetSubnet, CreateSubnet, DeleteSubnet, AttachSubnetToInstance, DetachSubnetFromInstance. We said to skip, but lets include for completeness since they are already defined in civogo.

@aculnaig aculnaig merged commit 571ecb5 into master Mar 3, 2026
3 checks passed
@aculnaig aculnaig deleted the feat/vpc-api branch March 3, 2026 11:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants