[release-3.5] server: keep auth applier when an alarm is raised #22386
All Vouch review confidence checks passed
Residual risk 0.24 = Change Risk (0.60) × (1 − Review Confidence (0.60)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.60 · 216 lines diff across 2 files
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.17 · 1 substantive comment(s)
Model 3 · Review Timing & Attention
Session adequacy: 100% · Reviewer familiarity: 35%
Bedrock Claude 3 · Risk Narration
(disconnected)
Groq Risk Narration
AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
Model 1 · Change Risk Attribution
SHAP Weights
Diff Size
diff_size
0.322
Shallow Review Depth
shallow_review_depth
0.289
Sensitive Paths
sensitive_paths
0.060
Real PR Conversation Timeline
1 comments
"Review active on #22386"
general
weight: 0.35
siyuanfoundation
etcd uses a chain of appliers to apply each request. The auth applier is the first item in the chain. It checks permissions.
When the database becomes full, etcd sets the
NOSPACEalarm. The alarm handler then builds a new chain. The new chain is not correct. It does not contain the auth applier.While the alarm is active, etcd does not check permissions for these operations:
AuthDisable,AuthEnable, and all user and role operationsDeleteRangeLeaseRevokeA user needs write permission for only one key prefix. The user writes data to that prefix until the database is full. This makes the alarm active. The user can then stop authentication for the cluster.
Note:
Steps to reproduce
1. Start a cluster with one member.
2. Add a user with the name tenant. Give the user a role. The role gives read and write permission for the keys from
/tenant/to/tenant0.3. Add the root user. Then enable authentication.
4. As the root user, write the key
/secret/key.5. Set
--quota-backend-bytesto a small value. Then restart the member.6. As the tenant user, do these three operations:
- read
/secret/key- delete
/secret/key- AuthDisable
7. As the tenant user, write 8 KB of data to the key
/tenant/fill. Repeat this step until etcd shows the error database space exceeded.8. Do step 6 again.
Result: In step 6, etcd refuses all three operations. In step 8, etcd refuses the read operation, but etcd permits the delete operation and the AuthDisable operation.
Expected result: etcd refuses all three operations in step 8.