← Back to Pull requests

Document that Azure SAS tokens are container-wide without HNS #6214

Open
unknown opened this pull request with 313 lines diff across 3 files
View on GitHub
unknown unknown commented on Nov 26, 2026 10:38 UTC
Author

Corrects the Azure section of the vended credentials page and adds the write consequence to the Azure configuration page.

Why

vended-credentials.md said the Azure User Delegation SAS is scoped to the container and path prefix. That is only true with a hierarchical namespace.
In AzureCredentialsStorageIntegration.compute():

  • ADLS endpoint (dfs.core.windows.net): a path is applied to the SAS only when isHierarchical() is true.

  • Blob endpoint (blob.core.windows.net): getBlobUserDelegationSas takes no path, so the token is always container-wide.
  • So for non-HNS storage and for Blob endpoints, a principal that may write to one table gets a token that can also add, overwrite and delete objects under every other table in that container. The Azure configuration page already said
    non-HNS tokens are container-level, but it did not say what that means for write grants.

    This is a documented provider limitation and not a security report.

    Changes

  • vended-credentials.md: state when the token is narrowed (only with hierarchical: true) and that otherwise it applies to the whole container with the permissions of the grant. Link to the SAS scoping section.

  • configuring-azure-blob-cloud-storage-specific.md: extend the "When HNS is disabled" paragraph with the write consequence and the advice to use one container per trust boundary or enable HNS.
  • The sentence "The wasbs:// scheme is not supported" on the Azure page is unchanged on purpose. The code accepts wasb(s)://, so I raised it in the discussion first. I will update this PR once we agree.

    <!--
    📝 Describe what changes you're proposing, especially breaking or user-facing changes.
    📖 See https://github.com/apache/polaris/blob/main/CONTRIBUTING.md for more.
    -->

    Checklist


  • 🙋 I am the human author: I understand this change and can explain it

  • 🛡️ Don't disclose security issues! (contact security@apache.org)

  • 🔗 Clearly explained why the changes are needed, or linked related issues: Fixes #

  • 🧪 Added/updated tests with good coverage, or manually tested (and explained how)

  • 💡 Added comments for complex logic

  • 🧾 Added a changelog entry in changelog.d/ (if needed, see changelog.d/README.md)

  • 📚 Updated documentation in site/content/in-dev/unreleased (if needed)

  • 🤖 Disclosed significant AI usage (recommended if AI was used, see CONTRIBUTING.md)
  • Diff: 313 lines (+234 / -79) across 3 files Reviewer: dimas-b Review duration: 6029m
    All Vouch review confidence checks passed
    Residual risk 0.34 = Change Risk (0.64) × (1 − Review Confidence (0.47)). Review depth and reviewer attention state are adequate.
    Model 1 · Change Risk (XGBoost)
    Score: 0.64 · 313 lines diff across 3 files
    0.64
    Model 2 · Review Depth (DistilBERT)
    Depth Score: 0.02 · 1 substantive comment(s)
    0.02
    Model 3 · Review Timing & Attention
    Session adequacy: 100% · Reviewer familiarity: 35%
    46%
    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.344
    Shallow Review Depth shallow_review_depth
    0.344
    Sensitive Paths sensitive_paths
    0.064
    Real PR Conversation Timeline
    1 comments
    "Review active on #6214"
    general weight: 0.35
    Reviewers
    Assignees
    Unassigned
    Labels
    risk: low confidence: 46.7% 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: 63.5% (MEDIUM) · Higher = larger blast radius
    63.5%
    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: 46.7% · Lower = rushed or shallow review
    46.7%
    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: 33.9% · Safe to merge
    33.9%
    Repository