Hi Dmitri, JB,

I agree with option 3: validate on both create and update through
CatalogConfigValidators. I'd like to confirm a few points.

1. Logging on update. JB noted that the http WARN would fire on every
updateCatalog. CatalogConfigValidator can't tell create from update, so the
WARN can't be limited to create inside the validator. Options:
   a. Keep the interface as is and warn on every validation, including
updates.
   b. Keep the interface as is, and emit the WARN from
PolarisAdminService.createCatalog after validation, so it only fires on
create.
   c. Add create/update context to the interface.
   I suggest (b): it keeps the interface unchanged and limits the WARN to
create. Does that work?

2. Existing federated catalogs. Re-validating the connection config on
update means a property-only update to an existing SigV4 catalog would fail
if ALLOW_SETTING_S3_ENDPOINTS is later set to false. I'll make the error
message name the flag as the cause. Is that the behavior we want?

3. Storage (#6051). Applying the same rules on update would also check
existing storage configs on every update. Some points to confirm:
   a. Should the storage checks cover endpoint and endpointInternal too, or
only stsEndpoint?
   b. Should a catalog update be rejected if an unrelated field is changed
while a stored storage stsEndpoint is malformed? (Dmitri's invariant
suggests yes.)

4. Operator guidance. I'd add an upgrade note to the changelog fragment
saying that catalogs should be audited before ALLOW_SETTING_S3_ENDPOINTS is
set to false, and that updates to non-compliant catalogs are then rejected.

Unless there are objections, I'll start by moving the SigV4 check out of
PolarisServiceImpl into a validator, and handle the storage follow-up
separately.

Cheers,
Arnab
[6051]: https://github.com/apache/polaris/issues/6051

On Thu, Nov 19, 2026 at 6:04 PM 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
>

Reply via email to