Hi JB, Re: validation warnings - good point!
Ideally, I think they should be reported to the API caller (e.g. Polaris CLI) to inform the user making the change (or creating a catalog). However, that will require changing the API contract to return a richer payload object instead of the current plain "Catalog". This will be a significant breaking change. We can probably keep it in mind for v2 :) For now, logging warnings server-side is probably acceptable. For STS endpoints specifically, SaaS deployments will likely not allow setting them at all. Self-hosted Polaris will probably have admin users monitoring its logs. Cheers, Dmitri. On Thu, Nov 19, 2026 at 7:34 AM Jean-Baptiste Onofré <[email protected]> wrote: > Hi Arnab, > > I would go with option 3, along the same lines as Dmitri. > > Treating catalog configuration validity as an invariant across both > create and update is cleaner then adding create/update context to > CatalogConfigValidator or splitting between PolarisServiceImpl and > CatalogConfigValidator. Having a single CatalogConfigValidator path in > PolarisAdminService also ensures the checks apply consistently > regardless of entry point, matching how BigLakeCatalogValidator works > today. > > Regarding ALLOW_SETTING_S3_ENDPOINTS, since it's a deployment related > safeguard rather than something expected to be toggled off > dynamically, rejecting updates to non-compliant catalogs if an > operator later disables it, and documenting that expectation, is > reasonable. Existing catalogs with custom endpoints should be > audited/updated before flipping the flag to false anyway :) > > One small impl detail to keep in mind when moving validateStsEndpoint > into a CatalogConfigValidator: PolarisServiceImpl.validateStsEndpoint > currently logs a WARN for plain http endpoints, so running it on every > updateCatalog (including property only updates) means that warning > will be emitted on updates as well (that's probably fine, but ... :)). > > Regards > JB > > On Tue, Nov 17, 2026 at 7:10 PM Arnab Karmakar <[email protected]> > wrote: > > > > Hi, > > > > PR [6035] (merged) adds an optional stsEndpoint to SigV4 connection > > authentication. Its validation currently lives in > > PolarisServiceImpl.validateExternalCatalog, which runs only on the REST > > create path. > > > > Thanks to Dmitri for suggesting we look at CatalogConfigValidator for > this, > > I think CatalogConfigValidator can act as a possible home for this > > validation, and maybe it applies to federated catalogs too: > > > > - The interface receives the full Catalog model, including > > ExternalCatalog's connection and storage configs. BigLakeCatalogValidator > > already validates federated catalogs this way. > > - PolarisAdminService calls CatalogConfigValidators.validate on both > create > > and update. > > > > For the follow-up in [6051] (validating storage configuration > stsEndpoint), > > I'd like to implement the checks as a CatalogConfigValidator so that they > > run on create and update through the same path. > > > > Design question: the interface does not distinguish create from update. > The > > update path passes the full entity, including the connection config, so a > > SigV4 check in a validator would also run on every update of an existing > > federated catalog. If ALLOW_SETTING_S3_ENDPOINTS is later set to false, > > existing catalogs with an stsEndpoint would fail on update, even though > the > > connection config is create-only. > > > > Should we: > > 1. add create/update context to CatalogConfigValidator, > > 2. keep the connection check on the create-only path, or > > 3. accept that updates are validated too and document it? > > > > [6051]: https://github.com/apache/polaris/issues/6051 > > [6035]: https://github.com/apache/polaris/pull/6035 > > > > Thanks, > > Arnab >
