You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix(member): reject non-IP address for members in F5-backed pools
A member with a hostname as its address causes the F5 AS3 declaration
driver to receive a value that violates the f5ip format constraint,
resulting in HTTP 422 on every declaration POST and blocking all F5
syncs globally.
Validate at the API layer (POST and PUT) that the address is a valid
IPv4 or IPv6 address when the member's pool is associated with an F5
domain. Non-F5-backed pools are unaffected.
Closes#1227
Copy file name to clipboardExpand all lines: internal/utils/errors.go
+1Lines changed: 1 addition & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -28,6 +28,7 @@ var (
28
28
MissingFQDN=&models.Error{Code: 400, Message: "invalid value for 'fqdn': 'fqdn' is required"}
29
29
MissingProvider=&models.Error{Code: 400, Message: "invalid value for 'provider': 'provider' is required"}
30
30
MissingAddressOrPort=&models.Error{Code: 400, Message: "invalid value for 'address' and 'port': 'address' and 'port' are required"}
31
+
InvalidMemberAddressForF5=&models.Error{Code: 400, Message: "invalid value for 'address': must be a valid IPv4 or IPv6 address for pools associated with F5 domains"}
31
32
FQDNImmutable=&models.Error{Code: 400, Message: "invalid value for 'fqdn': change of immutable attribute 'fqdn' not allowed"}
32
33
RestrictedDatacenterProvider=&models.Error{Code: 400, Message: "invalid value for 'provider': project-specific f5 datacenters are not supported; please use those with scope=public already available"}
0 commit comments