On 2026/12/05 07:34:30 Ruobing Wang wrote:
> 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
> >
> 

Hi Ruobing,

Thanks, this is helpful, and #1936 matches what I found. I think separating
selection from discovery fits: storageName selects the identity 
(operator-configured
keys, RESOLVE_CREDENTIALS_BY_STORAGE_NAME), and userArn becomes an output-only 
field
that the server reports. In that case:
 1. The spec should say userArn is informational and server-provided, not
    "used to assume the role", and ideally mark it readOnly.
 2. Create requests shouldn't need to send it. We could keep accepting and 
ignoring
    it for compatibility.
 3. Something still has to populate it, and I couldn't find that in OSS. Is the
    service identity work from #1805 the intended source, for example the ARN
    behind the credentials selected by storageName?

 I can do the wording fix (spec, Hive federation doc, CLI hint) now as a 
docs-only
 change, and treat population and readOnly as a separate discussion.

 want to get more inputs from community


Thanks
Akash R

Reply via email to