Files
datastore/tests/integration/test_quota/keyed_with_prefix_invalid.xml
Alexey MilovidovandClaude Opus 4.8 9a46f2ce72 Reject IP prefix bits on non-IP quotas in users.xml config
The SQL path rejects `IPV4_PREFIX_BITS`/`IPV6_PREFIX_BITS` on a quota whose
key type is not `ip_address` or `forwarded_ip_address`, but the `users.xml`
parser silently ignored the same elements for `keyed` or default quotas. Make
`UsersConfigParser` fail the config load instead, matching the SQL behaviour,
and cover one valid and one rejected XML case in the `test_quota` integration
test.

Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
2026-05-31 08:04:22 +00:00

9 lines
164 B
XML

<clickhouse>
<quotas>
<myQuota>
<keyed/>
<ipv4_prefix_bits>24</ipv4_prefix_bits>
</myQuota>
</quotas>
</clickhouse>