You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@polaris.apache.org by "bilec (via GitHub)" <gi...@apache.org> on 2026/02/25 14:17:01 UTC
[D] change ARN Role [polaris]
GitHub user bilec created a discussion: change ARN Role
Hi, why is it not possible to change ARN Role in already existing catalog?
Problem is that we wanna use STS but till now we were not using it so all our catalogs are created without ARN role. Now when i try to change it exception gets thrown that it is not possible.
GitHub link: https://github.com/apache/polaris/discussions/3885
----
This is an automatically sent email for dev@polaris.apache.org.
To unsubscribe, please send an email to: dev-unsubscribe@polaris.apache.org
Re: [D] change ARN Role [polaris]
Posted by "dimas-b (via GitHub)" <gi...@apache.org>.
GitHub user dimas-b added a comment to the discussion: change ARN Role
@bilec : could you post the exact error message you're getting, please?
GitHub link: https://github.com/apache/polaris/discussions/3885#discussioncomment-15924469
----
This is an automatically sent email for dev@polaris.apache.org.
To unsubscribe, please send an email to: dev-unsubscribe@polaris.apache.org
Re: [D] change ARN Role [polaris]
Posted by "bilec (via GitHub)" <gi...@apache.org>.
GitHub user bilec closed a discussion: change ARN Role
Hi, why is it not possible to change ARN Role in already existing catalog?
Problem is that we wanna use STS but till now we were not using it so all our catalogs are created without ARN role. Now when i try to change it exception gets thrown that it is not possible.
GitHub link: https://github.com/apache/polaris/discussions/3885
----
This is an automatically sent email for dev@polaris.apache.org.
To unsubscribe, please send an email to: dev-unsubscribe@polaris.apache.org
Re: [D] change ARN Role [polaris]
Posted by "dimas-b (via GitHub)" <gi...@apache.org>.
GitHub user dimas-b edited a comment on the discussion: change ARN Role
@bilec : could you post the exact error message you're getting, please?.. and a stack trace, if possible.
GitHub link: https://github.com/apache/polaris/discussions/3885#discussioncomment-15924469
----
This is an automatically sent email for dev@polaris.apache.org.
To unsubscribe, please send an email to: dev-unsubscribe@polaris.apache.org
Re: [D] change ARN Role [polaris]
Posted by "bilec (via GitHub)" <gi...@apache.org>.
GitHub user bilec added a comment to the discussion: change ARN Role
Sorry for late reply, but I don't have capacity for that.
GitHub link: https://github.com/apache/polaris/discussions/3885#discussioncomment-16192798
----
This is an automatically sent email for dev@polaris.apache.org.
To unsubscribe, please send an email to: dev-unsubscribe@polaris.apache.org
Re: [D] change ARN Role [polaris]
Posted by "bilec (via GitHub)" <gi...@apache.org>.
GitHub user bilec added a comment to the discussion: change ARN Role
The ugly-but-works solution is to hand-edit the DB and then restart Polaris. But I still don't get why it's not possible.
GitHub link: https://github.com/apache/polaris/discussions/3885#discussioncomment-15949117
----
This is an automatically sent email for dev@polaris.apache.org.
To unsubscribe, please send an email to: dev-unsubscribe@polaris.apache.org
Re: [D] change ARN Role [polaris]
Posted by "adutra (via GitHub)" <gi...@apache.org>.
GitHub user adutra closed the discussion with a comment: change ARN Role
I took a quick stab at this: https://github.com/apache/polaris/pull/4019
The PR only allows going from no ARN role to some ARN role. It's still forbidden to change an existing account ID.
If that is not desirable (or not enough), we could maybe look into introducing a `FeatureConfiguration` to gate the behavior behind a feature flag.
GitHub link: https://github.com/apache/polaris/discussions/3885#discussioncomment-16195425
----
This is an automatically sent email for dev@polaris.apache.org.
To unsubscribe, please send an email to: dev-unsubscribe@polaris.apache.org
Re: [D] change ARN Role [polaris]
Posted by "bilec (via GitHub)" <gi...@apache.org>.
GitHub user bilec edited a comment on the discussion: change ARN Role
```
2026-02-25 15:42:09,477 INFO [org.apa.pol.ser.exc.IcebergExceptionMapper] [65498be2-0624-4999-812c-bba8ca2dcdef_0000000000000029381,iup] [,,,] (executor-thread-3305) Handling runtimeException Cannot modify Role ARN in storage config from AwsStorageConfigurationInfo{allowedLocations=[s3a://bucket/], region=irrelevant, endpoint=https://s3.com, pathStyleAccess=true, stsUnavailable=true} to AwsStorageConfigurationInfo{allowedLocations=[s3a://bucket/], roleARN=arn:aws:iam::tenant:role/catalog-role, region=irrelevant, endpoint=https://s3.com, pathStyleAccess=true, stsUnavailable=false}
```
I am using apache/polaris:1.3.0-incubating
Based on [PolarisAdminService.java](https://github.com/apache/polaris/blob/95bc59bb3dd2a2228e606fa6fd9840f283b032c4/runtime/service/src/main/java/org/apache/polaris/service/admin/PolarisAdminService.java#L868) it looks like its wanted behaviour but I don't get why.
GitHub link: https://github.com/apache/polaris/discussions/3885#discussioncomment-15924761
----
This is an automatically sent email for dev@polaris.apache.org.
To unsubscribe, please send an email to: dev-unsubscribe@polaris.apache.org
Re: [D] change ARN Role [polaris]
Posted by "bilec (via GitHub)" <gi...@apache.org>.
GitHub user bilec added a comment to the discussion: change ARN Role
```
2026-02-25 15:42:09,477 INFO [org.apa.pol.ser.exc.IcebergExceptionMapper] [65498be2-0624-4999-812c-bba8ca2dcdef_0000000000000029381,iup] [,,,] (executor-thread-3305) Handling runtimeException Cannot modify Role ARN in storage config from AwsStorageConfigurationInfo{allowedLocations=[s3a://bucket/], region=irrelevant, endpoint=https://s3.com, pathStyleAccess=true, stsUnavailable=true} to AwsStorageConfigurationInfo{allowedLocations=[s3a://bucket/], roleARN=arn:aws:iam::tenant:role/catalog-role, region=irrelevant, endpoint=https://s3.com, pathStyleAccess=true, stsUnavailable=false}
```
Based on [PolarisAdminService.java](https://github.com/apache/polaris/blob/95bc59bb3dd2a2228e606fa6fd9840f283b032c4/runtime/service/src/main/java/org/apache/polaris/service/admin/PolarisAdminService.java#L868) it looks like its wanted behaviour but I don't get why.
GitHub link: https://github.com/apache/polaris/discussions/3885#discussioncomment-15924761
----
This is an automatically sent email for dev@polaris.apache.org.
To unsubscribe, please send an email to: dev-unsubscribe@polaris.apache.org
Re: [D] change ARN Role [polaris]
Posted by "dimas-b (via GitHub)" <gi...@apache.org>.
GitHub user dimas-b added a comment to the discussion: change ARN Role
This appears to be in the Polaris codebase from the day of the initial code donation to the ASF.
@collado-mike @dennishuo : Could you provide any insight / rationale for this restriction?
GitHub link: https://github.com/apache/polaris/discussions/3885#discussioncomment-15924925
----
This is an automatically sent email for dev@polaris.apache.org.
To unsubscribe, please send an email to: dev-unsubscribe@polaris.apache.org
Re: [D] change ARN Role [polaris]
Posted by "dimas-b (via GitHub)" <gi...@apache.org>.
GitHub user dimas-b edited a comment on the discussion: change ARN Role
@bilec : If you have capacity to open a PR for this, I suggest adding a Feature Flag to allow disabling the ARN change check. Then open a PR and a corresponding discussion on `dev` (which is a custom for feature flag changes).
GitHub link: https://github.com/apache/polaris/discussions/3885#discussioncomment-15949182
----
This is an automatically sent email for dev@polaris.apache.org.
To unsubscribe, please send an email to: dev-unsubscribe@polaris.apache.org
Re: [D] change ARN Role [polaris]
Posted by "dimas-b (via GitHub)" <gi...@apache.org>.
GitHub user dimas-b added a comment to the discussion: change ARN Role
@bilec : If you have capacity to open a PR for this, I suggest adding a Feature Flag to allow disabling the ARN check. Then open a PR and a corresponding discussion on `dev` (which is a custom for feature flag changes).
GitHub link: https://github.com/apache/polaris/discussions/3885#discussioncomment-15949182
----
This is an automatically sent email for dev@polaris.apache.org.
To unsubscribe, please send an email to: dev-unsubscribe@polaris.apache.org