Skip to content

Improve access delegation mode selection algorithm #3090

Closed

Description

@adutra

Is your feature request related to a problem? Please describe.

#2280 is bringing support for S3 request signing.

It introduces an access delegation mode selection algorithm that is roughly like this:

  1. If no delegation mode is requested, use UNKNOWN
  2. If one single delegation mode is requested, use that mode
  3. If requested modes include both VENDED_CREDENTIALS and REMOTE_SIGNING
    a. If credentials subscoping is enabled for the catalog, use VENDED_CREDENTIALS
    b. Otherwise, use REMOTE_SIGNING
  4. Otherwise, throw an error "unsupported mode(s)"

This algorithm aims at being smart but also fast to execute.

But it may select sub-optimal modes. For example, it doesn't check whether STS is available, because that requires fetching the AwsStorageConfigurationInfo for the catalog. So in some cases it may select VENDED_CREDENTIALS while REMOTE_SIGNING would be a better choice.

Describe the solution you'd like

No response

Describe alternatives you've considered

No response

Additional context

No response

Activity

  1. added
    enhancement
    on Nov 19, 2025
  2. github-actions commented on Feb 4, 2026

    @github-actions

    This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 5 days.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancement

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions