oxidecomputer / oxidecomputer/oxide-cloud-controller-manager

Verify ownership before detaching/deleting a floating IP

Open
#265 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Bug Kubernetes Cloud Controller Manager (CCM)
Dominant language
Go
Stars
6
Forks
2
Avg merge
2h 5m
Merged PRs (30d)
14

Description

Context

EnsureLoadBalancerDeleted (internal/provider/load_balancer.go) detaches and deletes any floating IP whose name matches the computed load balancer name — including one a user created by hand. Oxide has no resource tags (HasClusterID() is false), so there's no ownership marker today.

Scope

The CCM already sets Description: "Managed by oxide-cloud-controller-manager." on create. Check that description before detach/delete (in both EnsureLoadBalancerDeleted and the recreate path in ensureLoadBalancer) and refuse with a clear error/event on mismatch.

Done when

A name-colliding, user-created floating IP is never deleted by the CCM, and the refusal is visible in events/logs.

Related: collision-proof LB names — ship both in the same release with one migration note.

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start in internal/provider/load_balancer.go at EnsureLoadBalancerDeleted and the recreate path in ensureLoadBalancer, then trace how the CCM creates floating IPs and sets their description. Ensure both paths refuse to detach or delete a name-colliding IP without the managed description, with the refusal visible in events or logs; verify that a user-created IP remains intact.

Written by the indexing model from the issue text.

Assessment

Tech stack
go
Domain
cloud, infrastructure
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Quiet
Clarity
Clearly specified
Newbie friendliness
68/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.