← Back to Pull requests

[release-3.5] server: keep auth applier when an alarm is raised #22386

Closed
unknown closed this pull request without merging on Oct 27, 2026 15:36 UTC
View on GitHub
unknown unknown commented on Sep 04, 2026 21:26 UTC
Author

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 NOSPACE alarm. 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 operations

  • DeleteRange

  • LeaseRevoke
  • A 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:

  • Read operations are safe. Read operations do not use this chain.

  • The same problem is not present in 3.6 and later versions.
  • 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-bytes to 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.

    Diff: 216 lines (+162 / -54) across 2 files Reviewer: siyuanfoundation Review duration: 75970m
    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
    0.60
    Model 2 · Review Depth (DistilBERT)
    Depth Score: 0.17 · 1 substantive comment(s)
    0.17
    Model 3 · Review Timing & Attention
    Session adequacy: 100% · Reviewer familiarity: 35%
    60%
    Bedrock Claude 3 · Risk Narration
    (disconnected)
    Groq
    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
    Assignees
    Unassigned
    Labels
    risk: low confidence: 60.5% reviewed sensitive_module
    Vouch Risk Breakdown
    AI-powered review risk analysis
    Change Risk
    Change Risk · Model 1 (XGBoost)
    Predicted defect probability (0.00–1.00) based on diff churn, modified sensitive files, and author risk history.
    Score: 59.8% (MEDIUM) · Higher = larger blast radius
    59.8%
    Review Confidence
    Review Confidence · Models 2 & 3
    Scrutiny score (0.00–1.00) combining DistilBERT semantic review depth with reviewer familiarity and session dwell time.
    Score: 60.5% · Lower = rushed or shallow review
    60.5%
    Residual Risk
    Residual Risk · Core Equation
    Residual = Change × (1 − Confidence)
    Unmitigated risk surviving review. ≥ 0.65 triggers an automated re-queue to protect production.
    Score: 23.6% · Safe to merge
    23.6%
    Repository