Hi Akash

Sorry, I was late on this thread :) Thanks for the follow-up, and for your work!

+1 to Alex's approach in #6307. I think that choosing the SAS type
from the flag instead of the endpoint is right. It doesn't reject a
configuration that Azure accepts. Due to that, I think closing #6286
makes sense, and #6214 should be merged after #6307.

Regarding the wasb(s):// question, Polaris supports it on purpose. We
added that for data written with the legacy Hadoop WASB driver:
- Polaris accepts wasb:// and wasbs:// locations via
PolarisStorageConfigurationInfo and AzureLocation.
- polaris.file-io.type=wasb (fileIo.type in the Helm chart) turns on
WasbTranslatingFileIO. It rewrites wasb(s):// paths to abfs(s):// and
passes them to ADSLFileIO.

The sentence "The wasbs:// scheme is not supported" came later, with
the production configuration pages (I don't remember the PR or when),
and it doesn't actually match the code.
So I would go with your first option in #6214:
- remove the sentence
- document that wasb(s):// locations are accepted for compatibility
with existing data, and that Polaris needs polaris.dfile-io.type=wasb
to read and write them
- keep abfss:// with the dfs.core.windows.net endpoint as the
recommendation for new catalogs
- say that the SAS scope depends on the hierarchical flag, not on the
scheme or the endpoint

I'm against rejecting the wasb prefixes in
PolarisStorageConfigurationInfo. It would break existing deployments,
and it would not make anything more secure: a wasb location on an
account with HNS and hierarchical=true gets a directory-scoped token
like any other location.

Thanks!

Regards
JB

On Thu, Dec 3, 2026 at 8:23 AM Akash R Nilugal via dev
<[email protected]> wrote:
>
>
>
> On 2026/12/03 04:10:13 Dmitri Bourlatchkov via dev wrote:
> > Hi Alex,
> >
> > That's a very good idea. I did some testing locally and it seems to work.
> > TIL! IDK how we missed that before.
> >
> > I opened [6307] for this.
> >
> > Akash: sorry, your [6286] is probably a bit of an overkill given Alex's
> > suggestion.  WDYT? Sorry about causing you extra work.
> >
> > Cheers,
> > Dmitri.
> >
> > [6286] https://github.com/apache/polaris/pull/6286
> >
> > [6307] https://github.com/apache/polaris/pull/6307
> >
> > On Wed, Dec 2, 2026 at 12:01 PM Alex Dutra via dev <[email protected]>
> > wrote:
> >
> > > Hi all,
> > >
> > > > I'd rather add a CatalogConfigValidator and _fail_ create/update
> > > requests that have hierarchical = true and at the same time list BLOB
> > > endpoints [...] This is a logical contradiction
> > >
> > > On the Azure side, the combination is valid, afaict. An admin who sets
> > > hierarchical=true and lists a blob endpoint isn't doing anything
> > > wrong.
> > >
> > > I wonder if a more robust approach isn't to change how we mint SAS
> > > tokens today, that is: choose the SAS type from the HNS flag, instead
> > > of from the endpoint. IOW when `hierarchical=true`, Polaris would
> > > always mint a directory-scoped token, even for a blob location.
> > > Afaict, the Azure Blob service accepts directory-scoped tokens on HNS
> > > accounts.
> > >
> > > Thanks,
> > > Alex
> > >
> > > 2) reject blob endpoint + hierarchical=true in allowed locations: this
> > > is what you proposed on dev ML.
> > >
> > > On Mon, Nov 30, 2026 at 4:47 PM Dmitri Bourlatchkov via dev
> > > <[email protected]> wrote:
> > > >
> > > > Hi Akash,
> > > >
> > > > Please feel free to open PRs. A formal vote is not necessary for every
> > > > change in Polaris. The community consensus can be expressed via GH
> > > reviews
> > > > and approvals. That's our usual practice.
> > > >
> > > > This discussion thread provides sufficient rationale for those changes,
> > > > IMHO.
> > > >
> > > > Cheers,
> > > > Dmitri.
> > > >
> > > > On Mon, Nov 30, 2026 at 12:45 AM Akash R Nilugal via dev <
> > > > [email protected]> wrote:
> > > >
> > > > >
> > > > >
> > > > > 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
> > > > >
> > > >
> > > >
> > > > --
> > > > Dmitri Bourlatchkov
> > > > Senior Staff Software Engineer, Dremio
> > > > Dremio.com
> > > > <
> > > https://www.dremio.com/?utm_medium=email&utm_source=signature&utm_term=na&utm_content=email-signature&utm_campaign=email-signature
> > > >
> > > > /
> > > > Follow Us on LinkedIn <https://www.linkedin.com/company/dremio> / Get
> > > > Started <https://www.dremio.com/get-started/>
> > > >
> > > >
> > > > The Agentic Lakehouse
> > > > The only lakehouse built for agents, managed by agents
> > >
> >
>
>
> Hi Alex, Dmitri,
>
> Thanks, that makes sense. I had assumed the Blob endpoint could only give
> container-wide tokens, because that is all Polaris generates today. Since 
> Azure
> accepts directory-scoped tokens on HNS accounts through the Blob endpoint, 
> minting
> the token type from hierarchical, as in #6307, is the better fix.
>
> My validator in #6286 would reject a configuration that is now valid, so I 
> will close it.
> I will review #6307. I will also update my docs PR #6214, which currently says
> the Blob endpoint is always container-wide.
>
> Thanks for the pointer, and no worries about the extra work.
> The testing and review of the Azure code were useful to me.
>
> Thanks
> Akash

Reply via email to