Skip to content

fix(service): normalize IP removal warning matches - #738

Open
sdairs wants to merge 1 commit into
stack/594-streaming-table-definitionfrom
stack/589-removal-warning-fix
Open

fix(service): normalize IP removal warning matches#738
sdairs wants to merge 1 commit into
stack/594-streaming-table-definitionfrom
stack/589-removal-warning-fix

Conversation

@sdairs

@sdairs sdairs commented Sep 5, 2026

Copy link
Copy Markdown
Collaborator

cloud service update --remove-ip-allow validated and normalized SOURCE[=DESCRIPTION] values for the PATCH request, but warning detection compared the original CLI text with the current service sources. A described or padded removal therefore succeeded while incorrectly reporting that no entry was removed.

Warning detection now consumes the already-validated request entries and compares their parsed source fields. Descriptions and surrounding source whitespace no longer cause false warnings, invalid entries still fail before any API request, and unmatched removals continue to warn through the existing output channel.

Tests cover described and padded IPv4/IPv6 matches, normalized unmatched warnings, the real CLI PATCH body and stderr behavior, and pre-network invalid-input rejection.

Validation: formatting, default clippy, no-default check and all-target clippy passed; five focused unit tests and both relevant real-binary mock tests passed.

References #589.
Follow-up correction for PR #721.

@sdairs
sdairs requested a review from iskakaushik as a code owner September 5, 2026 12:56
@sdairs sdairs added this to the v0.5.0 milestone Sep 5, 2026
@sdairs
sdairs requested a review from rndD as a code owner September 5, 2026 12:56
@sdairs sdairs linked an issue Sep 5, 2026 that may be closed by this pull request
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Support descriptions on IP allowlist entries (service and api-key)

1 participant