Azure / Azure/azure-sdk-for-java

[FEATURE REQ] Extend AAD/Service Principal support to Azure-cosmos-spark through control

Open
#49,194 1 comment 0 reactions 3 assignees Claimed by @pjohari-ms View on GitHub
Client Cosmos customer-reported feature-request needs-team-attention Service Attention
Dominant language
Java
Stars
2.6k
Forks
2.2k
Avg merge
2d 8h
Merged PRs (30d)
178

Description

**Is your feature request related to a problem? Please describe.**
As per company's policy, we are not allowed to use master key to access CosmosDB. We want to have Throughput control container in different cosmos account. We are unable to configure the ThroughputControl using service principal.

Error message:

IllegalArgumentException: The config property 'spark.cosmos.throughputcontrol.auth.aad.clientId' is invalid. ...

**Describe the solution you'd like**
Extend AAD control to throughput control as well. Instead of spark.cosmos.throughputControl.accountKey, we should also be able to set these:

spark.cosmos.throughputControl.auth.type
spark.cosmos.throughputControl.auth.aad.clientId
spark.cosmos.throughputControl.auth.aad.resourceId
spark.cosmos.throughputControl.auth.aad.clientSecret

**Describe alternatives you've considered**
Given that the company is disabling master key access. The only alternative is to turn off throughput control and manage it from the application.

**Additional context**
NA

**Information Checklist**
Kindly make sure that you have added all the following information above and checkoff the required fields otherwise we will treat the issuer as an incomplete report
- [x] Description Added
- [x] Expected solution specified

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.