On 2026/11/27 18:43:08 Dmitri Bourlatchkov via dev wrote:
> Hi Akash,
>
> Thanks for starting this thread. You bring up excellent points.
>
> a) The doc PR generally LGTM. I left one minor comment there.
>
> b) I personally think that log warnings about configuration issues are not
> effective in practice.
>
> I'd rather add a CatalogConfigValidator and _fail_ create/update requests
> that have hierarchical = true and at the same time list BLOB endpoints in
> allowed locations. This is a logical contradiction, IMHO.
>
> Since the validation is a hard failure, we'll need a feature flag to turn
> it off (we do not know what existing configurations people may have), but
> it should be ON by default.
>
> c) I think denying vending might be an overkill. The config validator is
> probably sufficient.
>
> d) Does my proposal for (b) cover this?
>
> > Is wasb(s):// meant to be supported for catalog locations?
>
> I personally do not know about WASB use cases. Let's see if other community
> members can clarify this.
>
> Cheers,
> Dmitri.
>
> On Thu, Nov 26, 2026 at 5:45 AM Akash R Nilugal via dev <
> [email protected]> wrote:
>
> > Hi all,
> >
> > While adding tests for Azure SAS permissions (
> > https://github.com/apache/polaris/pull/6213), I looked at
> > how the SAS token is scoped and found a few things worth agreeing on.
> >
> > Behavior today
> > - With ADLS Gen2 and hierarchical=true, Polaris narrows the user delegation
> > SAS to the directory of the requested namespace or table.
> > - In every other case the SAS covers the whole container: Blob endpoints
> > (blob.core.windows.net), and dfs endpoints with hierarchical unset or
> > false. For a write grant the token carries add, write and delete on every
> > object in the container, not only under the table location.
> >
> > This is a documented Azure limitation (the Azure configuration page says
> > per-namespace isolation needs HNS), so I am not reporting a vulnerability.
> > These are the gaps I see:
> >
> > 1. vended-credentials.md says the Azure SAS is scoped to "the container
> > and path prefix", which is not true without HNS. The write consequence
> > is not called out anywhere. I have a docs PR for both (
> > https://github.com/apache/polaris/pull/6214).
> > 2. Operators get no signal at runtime or at catalog creation that a
> > catalog's tokens are container-wide.
> > 3. Docs and code disagree about wasb(s)://. The Azure page says "The
> > wasbs:// scheme is not supported" and asks for abfss:// with
> > dfs.core.windows.net. But the code accepts it on purpose:
> > PolarisStorageConfigurationInfo lists wasb:// and wasbs:// as Azure
> > prefixes, AzureLocation parses them, there is a WasbTranslatingFileIO
> > (fileIo.type=wasb), and the tests use wasbs://...blob.core.windows.net
> > locations. Those Blob-endpoint locations are exactly the ones that can
> > never get a narrower token.
> >
> > Proposal,
> > a) Fix the docs (PR - https://github.com/apache/polaris/pull/6214), and
> > decide what the docs should say
> > about wasb(s)://. Once we agree on that, I will update the same PR,
> > so the Azure page and the vended-credentials page change together.
> > b) Log a warning, or add a readiness check, when vending a
> > container-wide SAS for a grant narrower than the container.
> > c) Add an opt-in feature flag, default off, to refuse vending in that
> > case.
> > d) Rejecting Blob-endpoint or non-HNS catalogs at creation would be a
> > breaking change, so I list it only for completeness.
> >
> > Questions
> > - Is wasb(s):// meant to be supported for catalog locations?
> > * If yes: I will remove "The wasbs:// scheme is not supported" and
> > document that Blob-endpoint locations always get a container-wide
> > SAS.
> > * If it is only for legacy tables via WasbTranslatingFileIO: I will
> > reword it to say so, and we can discuss whether catalog creation
> > should reject it.
> > * If it is not supported at all: the docs line is right, and we
> > should discuss rejecting those prefixes in
> > PolarisStorageConfigurationInfo.
> > - Does anyone run multi-tenant catalogs on non-HNS storage who would be
> > affected by (c)?
> >
> > Thanks,
> > Akash
> >
>
Hi Dmitri,
Thanks for the feedback, and for the docs review. I've pushed a fix for your
comment on the PR (the narrowing needs the dfs endpoint plus
hierarchical=true, and hierarchical is not read for Blob endpoints), Please
have a look.
we can try to get the changes IN.
(b) Yes, I Agree, I like the validator better than a log line. A
CatalogConfigValidator
that rejects hierarchical=true when any allowed location uses
blob.core.windows.net (wasb(s):// or abfs(s):// on the blob endpoint) fits
the existing SigV4/BigLake validator pattern. I'd start with:
- A feature flag, ON by default, to turn it off.
- Validation on create and update only, so existing catalogs keep working
and operators can fix them when they next edit the catalog.
- A clear message: "hierarchical=true has no effect for Blob endpoint
locations; use a dfs.core.windows.net location or set hierarchical=false".
(d) Yes, I think (b) covers it for the contradictory case. Blob locations
with hierarchical unset or false stay accepted, and still get container-wide
tokens, which the docs now say explicitly. Does that match what you had in
mind, or should the validator also reject Blob endpoints on write grants?
On wasb(s)://, I'll leave the docs wording as is until someone who knows the
use cases responds.
If no one objects, I will open a PR with the validator, a feature flag, and
tests.
@Dmitri shall we start voting on this? Do you mind giving +1 on this approach
and
then i can open a new PR.
@Community please let me know your thoughts.
Thanks,
Akash