mirror of
https://github.com/hanzoai/datastore.git
synced 2026-09-26 13:55:07 +00:00
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]>
9 lines
164 B
XML
9 lines
164 B
XML
<clickhouse>
|
|
<quotas>
|
|
<myQuota>
|
|
<keyed/>
|
|
<ipv4_prefix_bits>24</ipv4_prefix_bits>
|
|
</myQuota>
|
|
</quotas>
|
|
</clickhouse>
|