Repository navigation
Conversation
- Document the per-cached-user audit rate and its zero setting. - Describe the first fractional permit and the limiter cache lifetime. - Update the English and Chinese configuration references.
- Explain the saturated-counter reset in the English option reference. - Apply the same integer timer wording to the Chinese reference. - Retain the fractional-rate examples and cache boundary.
imbajin
left a comment
There was a problem hiding this comment.
Score: 6.5/10 · Confidence: high
Blocking: yes
Summary
Fractional audit-rate guidance depends on an unmerged server change and can lead operators to suppress audit output.
Evidence
Apache server master casts the rate to an integer; the linked server fix remains open in a fork.
Validation notes
Source inspection only; no running server test.
|
|
||
| At `0`, the authentication proxy emits no audit records. Authentication and authorization continue to run. | ||
|
|
||
| For a positive rate below `1`, the first record can be logged immediately. At `0.5`, subsequent records are at least two seconds apart while the user's |
There was a problem hiding this comment.
On current Apache HugeGraph master, RateLimiter.create(double) casts the rate to an integer, so 0.5 becomes zero and audit records are suppressed. The linked server fix is still open in the fork. Publishing this guidance first can cause operators to lose audit output. Please retain the current behavior until the fix reaches Apache, or clearly qualify the applicable server version. This is based on source inspection; I did not run the server.
Purpose
A configured audit rate between zero and one could fail when the per-user limiter was first created. It now allows one audit record per configured interval for each cached user limiter.
Main Changes
Verification
Checked the English and Chinese pages locally.
Server PR