Closed chewong closed 1 year ago
This issue is currently awaiting triage.
If cloud-provider-aws contributors determine this is a relevant issue, they will accept it by applying the triage/accepted
label and provide further guidance.
The triage/accepted
label can be added by org members by writing /triage accepted
in a comment.
The provider ID is updated by the k8s based on the instance ID returned by the CCM. So, the better way i think would be to skip the instance instead of failing. We can ignore instance with bad provider id similar to instances with no provider id https://github.com/kubernetes/cloud-provider-aws/blob/master/pkg/providers/v1/aws.go#L853
Is there any downside if we skip the instance? In the case where the provider ID is not set, the assumption is that eventually it will be. Obviously, we don't want to crash CCM is this is wrong, and I don't know if there's anything to do but ignore it.
/cc
What happened:
Users can self-DOS if they manually edit the node's provider ID to a malformed string. I am wondering if this is by design or we should ignore this error.
https://github.com/kubernetes/cloud-provider-aws/blob/master/pkg/providers/v1/aws.go#L853
What you expected to happen:
How to reproduce it (as minimally and precisely as possible):
Anything else we need to know?:
Environment:
kubectl version
):uname -a
):/kind bug