Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for expressing the sharing profile using JSON #277

Open
goodwillpunning opened this issue Feb 28, 2023 · 0 comments
Open

Add support for expressing the sharing profile using JSON #277

goodwillpunning opened this issue Feb 28, 2023 · 0 comments
Assignees
Labels
enhancement New feature or request

Comments

@goodwillpunning
Copy link
Collaborator

Currently, data recipients cannot specify the location of a sharing profile using Azure Synapse FS (synfs: schema). Rather than expanding support for synfs and future, alternate schemas, it may be more flexible to allow data recipients to specify the sharing profile as a JSON object, passing it as an argument to the Python sharing client constructor. For example:

import delta_sharing

sharing_profile = {
  "shareCredentialsVersion": 1,
  "endpoint": "https://sharing.delta.io/delta-sharing/",
  "bearerToken": "dapi1234567890"
}
client = delta_sharing.SharingClient(sharing_profile)

While it could be argued that the sharing access token is now clear text, a secrets manager client, like Azure key vault client for Python, could be used to securely access the sharing token.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants