Hi Arnab, Thanks for starting this thread.
If ALLOW_SETTING_S3_ENDPOINTS is the only concern, I hope it is not a concern :) I believe this option exists only to allow Polaris deployment owners, who are _not_ catalog administrators (such as the SaaS deployment model) to maintain control of the S3 traffic in their systems. I would not expect ALLOW_SETTING_S3_ENDPOINTS to change its value during the lifetime of such deployments. In any case administrators should probably audit existing catalogs and adjust their storage configuration before setting ALLOW_SETTING_S3_ENDPOINTS to false. That said, I personally think that config validity should be an invariant across all operations. In other words, a valid config value is valid in all cases, regardless of how we arrive at it (same for invalid). Cheers, Dmitri. On Tue, Nov 17, 2026 at 1: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 >
