Re: [sqlalchemy] Update Username and Password from vault

2023-09-08 Thread Steven Schierholz
Yes but only once when the app starts up. On Friday, September 8, 2023 at 10:04:45 AM UTC-6 Mike Bayer wrote: > assuming proper indentation it looks fine. are your print statements > being seen ? > > On Fri, Sep 8, 2023, at 11:54 AM, Steven Schierholz wrote: > > O

Re: [sqlalchemy] Update Username and Password from vault

2023-09-08 Thread Steven Schierholz
; establish new connections as the application proceeds, it's just a question > of how often and under what circumstances.The default QueuePool will > make new connections when it goes into "overflow", as well as when existing > connections are invalidated due to connectivity

Re: [sqlalchemy] Update Username and Password from vault

2023-09-07 Thread Steven Schierholz
the event to > populate the connect arguments with the correct credentials. > > On Thu, Sep 7, 2023, at 1:54 PM, Steven Schierholz wrote: > > So I have seen some chats here about cred refresh from vault and some > suggestions have been to use @event.listens_for(engine, "do_c

Re: [sqlalchemy] Update Username and Password from vault

2023-09-07 Thread Steven Schierholz
the event to > populate the connect arguments with the correct credentials. > > On Thu, Sep 7, 2023, at 1:54 PM, Steven Schierholz wrote: > > So I have seen some chats here about cred refresh from vault and some > suggestions have been to use @event.listens_for(engine, "do_c

[sqlalchemy] Update Username and Password from vault

2023-09-07 Thread Steven Schierholz
So I have seen some chats here about cred refresh from vault and some suggestions have been to use @event.listens_for(engine, "do_connect") to update creds when the connection is established. My understanding of this is that connecting to the database should only happen once when my flask