[GODRIVER-2850] Vault MongoDB/MongoDB Atlas Database Secrets Engine Created: 18/May/23  Updated: 27/Oct/23  Resolved: 15/Jun/23

Status: Closed
Project: Go Driver
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: Improvement Priority: Unknown
Reporter: Sylvain Blot Assignee: Qingyang Hu
Resolution: Gone away Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified


 Description   

Hello folks,

 

I want to use short-lived credentials to leverage Vault MongoDB and MongoDB Atlas Database Secrets Engine in my project.

https://developer.hashicorp.com/vault/docs/secrets/databases/mongodb

https://developer.hashicorp.com/vault/docs/secrets/databases/mongodbatlas

 

As far as I can see there are no dynamic credential options exposed in https://pkg.go.dev/go.mongodb.org/mongo-driver@v1.11.6/mongo/options#ClientOptions

My goal is to automatically renew the credential before expiration.

 

Any recommendations on how to implement that?

 

Kind regards



 Comments   
Comment by PM Bot [ 15/Jun/23 ]

There hasn't been any recent activity on this ticket, so we're resolving it. Thanks for reaching out! Please feel free to reopen this ticket if you're still experiencing the issue, and add a comment if you're able to provide more information.

Comment by PM Bot [ 07/Jun/23 ]

Hi sylvain@doublezero.io! GODRIVER-2850 is awaiting your response.

If this is still an issue for you, please open Jira to review the latest status and provide your feedback. Thanks!

Comment by Qingyang Hu [ 30/May/23 ]

Hello sylvain@doublezero.io, the Go driver doesn't support automatic credential renewal on expiration. You may create a new MongoClient with new credentials and setup new connections as a workaround.

Comment by PM Bot [ 18/May/23 ]

Hi sylvain@doublezero.io, thank you for reporting this issue! The team will look into it and get back to you soon.

Generated at Thu Feb 08 08:39:30 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.