Hi Akash, I think this is a very interesting topic!
I came across an earlier discussion in #1191 <https://github.com/apache/polaris/pull/1191> and the open issue #1936 <https://github.com/apache/polaris/issues/1936>. One interesting use case discussed in #1191 was supporting different AWS identities for different catalogs within the same Polaris deployment. Given that we now support resolving AWS credentials by storageName, I wonder if we could separate identity selection from identity discovery. Could storageName address the catalog-level identity selection use case, while userArn serves as an informational, server-provided field? Curious to hear the team’s thoughts on this! On Fri, Dec 4, 2026 at 22:46 Akash R Nilugal via dev <[email protected]> wrote: > Hi all, > > While adding --user-arn to the CLI (#6342),review comment pointed out that > the description of userArn > is not accurate. I checked the code and docs, and there are three different > descriptions of it, none of which matches the behaviour: > > 1. spec/polaris-management-service.yml (userArn) > - What it says: "the aws user arn used to assume the aws role" > - What the code does: Nothing assumes a role with it. Credential > vending uses only roleArn, externalId, and region. > > 2. hive-metastore-federation.md > - What it says: "Polaris persists them and supplies them when assuming > the role" > - What the code does: CatalogEntity.getAwsStorageConfigurationInfo does > not copy userArn from the request, so it is not persisted or supplied. > > 3. AwsStorageConfigurationInfo.getUserARN() javadoc > - What it says: "User ARN for the service principal" > - What the code does: The value is only echoed back in the API response > (CatalogEntity.java:187) if the stored config already has one. The R2 > extension rejects it (requireAbsent("userArn")). > > > The field was part of the initial code import. My guess is that it comes > from a > managed-service setup where the service reports its own AWS identity so > users can > add it to their role's trust policy. I may be wrong about that, and I > couldn't find > anything in OSS that populates it. Is any downstream build using it that > way? > > > Proposal, as a small docs/spec-only change with no behaviour change: > 1. Spec description becomes "User ARN associated with the catalog. > Informational: > Apache Polaris does not use this value to assume roles or vend > credentials." > 2. Remove the userArn sentence from the Hive federation doc (Polaris does > not persist or supply it). > 3. Keep the CLI --user-arn option with the same neutral wording (already > done in #6342). > > Open question: should create requests keep accepting userArn even though > it is dropped, > or should we mark it deprecated or read-only in a later spec version? I'd > prefer not to change > that without more input. > > I'm happy to send the spec and docs PR once there's agreement. > > Thanks, > Akash R >
