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

feat: add DocumentStoreSSHClient #45

Merged
merged 11 commits into from
Jun 14, 2024
Merged

feat: add DocumentStoreSSHClient #45

merged 11 commits into from
Jun 14, 2024

Conversation

helen-m-lin
Copy link
Collaborator

closes #44

  • Added new DocumentStoreSSHClient for users to interface with DocDB through SSH tunneling
  • Credentials are pulled from environment on default, or can be configured by provided the secret names
  • Can be used in context, e.g.:
with DocumentStoreSSHClient(credentials=DocumentStoreSSHCredentials()) as ds_client:
    count = ds_client.collection.count_documents({})

@helen-m-lin helen-m-lin changed the title feat: feat: add DocumentStoreSSHClient Jun 13, 2024
@helen-m-lin helen-m-lin requested a review from jtyoung84 June 13, 2024 01:45
@helen-m-lin
Copy link
Collaborator Author

TODO: update the readme example to use a projection and count_documents
TODO: rename module and classes to DocumentDB instead of DocumentStore

@helen-m-lin
Copy link
Collaborator Author

TODO: update the readme example to use a projection and count_documents TODO: rename module and classes to DocumentDB instead of DocumentStore

@jtyoung84 I updated with the suggestions

@jtyoung84 jtyoung84 merged commit 19d377b into main Jun 14, 2024
3 checks passed
@jtyoung84 jtyoung84 deleted the feat-44-docdb-ssh-client branch June 14, 2024 19:50
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

Successfully merging this pull request may close these issues.

Add DocDB mongo client that uses ssh tunnel
2 participants