Hi all,

As Dmitri asked in the review, I am bringing PR #6211 [1] to the list
because it touches credential-related catalog configuration.

`ALLOW_UNRESTRICTED_STORAGE_CONFIG_ROLE_CHANGES` (false by default) is
described as: "new values can be set when none were previously configured,
but existing values cannot be changed to different ones". The first half
was not implemented. The update validation compared the old and new AWS
account ID and external ID with `Objects.equals`, so adding an `externalId`
or a `roleArn` to a catalog created without one failed with 400 ("Cannot
modify ExternalId ..." or "Cannot modify AWS account ID ..."). JB pointed
out the same gap in the storage config validation thread [2], and Dmitri
noted in the review that the fix matches the intent of #4019.

With the flag at its default, the PR changes one thing:
- Setting an AWS account ID (through the role ARN) or an external ID is
accepted when the catalog had none.

Everything else stays as it is:
- Changing an existing value to a different one, or removing it, is still
rejected with 400.
- A role change within the same account is still allowed.
- Azure `tenantId` is unaffected because it is a required field.
- With the flag set to true, all changes are allowed as before.

Setting these values for the first time changes which role and external ID
Polaris uses for that catalog's storage access from then on, so it is the
same kind of decision as creating the catalog with them. Only requests that
failed with 400 before now succeed. There is no spec or configuration
change.

If you see a reason to keep the first-time set behind the flag, please say
so here or on the PR.

[1] https://github.com/apache/polaris/pull/6211
[2] https://lists.apache.org/thread/o5xorwmdzmnkff191cg0l24c4k3rkw0b

Regards,
Youngrae Kim

Reply via email to