Skip to content

Count IP allowlist descriptions in Unicode characters - #65

Open
puncsky wants to merge 1 commit into
render-oss:mainfrom
puncsky:fix/count-ip-description-characters-20261029
Open

puncsky wants to merge 1 commit into
render-oss:mainfrom
puncsky:fix/count-ip-description-characters-20261029

Conversation

@puncsky

@puncsky puncsky commented Oct 30, 2026

Copy link
Copy Markdown

Summary

Use utf8.RuneCountInString for the advertised 255-character description limit. Preserve the description bytes and the existing CIDR parsing.

Motivation

The current byte count rejects descriptions well below the stated character limit, such as 86 CJK characters or 64 emoji. The shared parser serves service and datastore flags plus clone defaults.

How to verify

go test ./cmd/... ./pkg/... ./internal/...
  • All 57 development packages pass on the candidate.
  • Boundary tests cover 255/256 ASCII and Unicode characters, emoji, IPv6, and punctuation/Unicode round trips.
  • New-code lint is clean against c31e586e; full lint on unmodified main reports 92 pre-existing findings with the pinned golangci-lint v2.14.0.

Release notes

IP allowlist descriptions enforce the advertised character limit for Unicode text.

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.

1 participant