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

Read authentication parameters from storage task #332

Closed
davidmezzetti opened this issue Sep 8, 2022 · 0 comments
Closed

Read authentication parameters from storage task #332

davidmezzetti opened this issue Sep 8, 2022 · 0 comments
Assignees
Milestone

Comments

@davidmezzetti
Copy link
Member

Currently, the storage task does not support reading authentication parameters. While this task is using the same library as embeddings cloud storage (Apache Libcloud), this is effectively limiting the task to only working with local storage.

This change will add the following parameters to the storage task (as shown in the embeddings cloud storage config reader).

# Get driver for provider
driver = get_driver(config["provider"])

# Get client connection
client = driver(
  config.get("key", os.environ.get("ACCESS_KEY")),
  config.get("secret", os.environ.get("ACCESS_SECRET")),
  host=config.get("host"),
  port=config.get("port"),
  token=config.get("token"),
  region=config.get("region")
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant