emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Storing database credentials outside an org file


From: Rob Sargent
Subject: Re: Storing database credentials outside an org file
Date: Sun, 31 Oct 2021 23:54:59 -0600

Most servers have a plain text file (permissions 004) that let you add name  
and pass and db

> On Oct 31, 2021, at 9:51 PM, Tim Cross <theophilusx@gmail.com> wrote:
> 
> 
> Mike Gauland <mikelygee@gmail.com> writes:
> 
>> I often use an org file to record database queries, using sql source blocks.
>> I've been putting the database credentials in the file using header-args:sql
>> properties, but I'd prefer to have the credentials saved in a separate file 
>> for
>> security reasons.
>> 
>> Any ideas on how I could make this work?
> 
> It probably wouldn't be too hard to use the authinfo.gpg facility via
> the auth-source library which is included in Emacs. In fact, I think
> sql-mode might already have support for this built in.
> 



reply via email to

[Prev in Thread] Current Thread [Next in Thread]