apache / apache/polaris

[FEATURE REQUEST] Add Support for Adding cloud credential from polaris cli.

Open
#1,516 5 comments 0 reactions 0 assignees View on GitHub
enhancement
Dominant language
Java
Stars
2.1k
Forks
522
Avg merge
2d 1h
Merged PRs (30d)
140

Description

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

Currently, the Polaris CLI allows users to pass a role ARN to the Polaris server when creating a catalog. However, cloud credentials (such as AWS access keys) must be provided separately via environment variables when setting up the Docker container.

Would it be possible to enhance the Polaris server API to allow client to specify both the role ARN and cloud credentials directly from a single interface? This would significantly improve usability and provide a more seamless setup experience.

Additionally, this enhancement would make Polaris more flexible and scalable for managing multiple catalogs that point to different cloud blob storage locations, especially in multi-tenant or hybrid environments.

### Describe the solution you'd like

./polaris \
--client-id ${CLIENT_ID} \
--client-secret ${CLIENT_SECRET} \
catalogs \
create \
--storage-type s3 \
--default-base-location ${DEFAULT_BASE_LOCATION} \
--role-arn ${ROLE_ARN} \
--aws_access_key_id ${AWS_ACCESS_KEY_ID}
--aws_secret_access_key: ${AWS_SECRET_ACCESS_KEY}
quickstart_catalog

### Describe alternatives you've considered

_No response_

### Additional context

_No response_

Contributor guide

Open the contributing guide

Research direction

Start by tracing the Polaris CLI `catalogs create` entry point and the corresponding server catalog API; no specific files or tests are named in the issue. Define how role ARNs and AWS credentials should be accepted and secured, then verify that a catalog can be created against its requested S3 location without relying on container environment variables.

Written by the indexing model from the issue text.

Assessment

Tech stack
aws, java
Domain
api, cli, cloud
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.