aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKenny Ballou <kb@devnulllabs.io>2023-01-11 09:05:26 -0700
committerKenny Ballou <kb@devnulllabs.io>2023-01-11 09:07:43 -0700
commit984eacd0a888ac22119349420d09f58fd41aa33f (patch)
tree451e1747614d80ff6829aa02d3c89b97ffeada40
parent2a14d0f6e74d8149ff591a9b26fe394eec056d10 (diff)
downloaddotfiles-984eacd0a888ac22119349420d09f58fd41aa33f.tar.gz
dotfiles-984eacd0a888ac22119349420d09f58fd41aa33f.tar.xz
config: emacs: remove unencrypted files from auth-sources
Do not allow usage of the unencrypted .authinfo or .netrc files. Signed-off-by: Kenny Ballou <kb@devnulllabs.io>
-rw-r--r--config/emacs/emacs.d/emacs.org7
1 files changed, 7 insertions, 0 deletions
diff --git a/config/emacs/emacs.d/emacs.org b/config/emacs/emacs.d/emacs.org
index 30bdbf3d..96a62c94 100644
--- a/config/emacs/emacs.d/emacs.org
+++ b/config/emacs/emacs.d/emacs.org
@@ -4583,6 +4583,13 @@ Except where they probably shouldn't be added.
(auth-source-pass-enable))
#+end_src
+Remove unencrypted files from the list of [[help:auth-sources][auth-sources]]:
+
+#+begin_src elisp
+(dolist (file '("~/.authinfo" "~/.netrc"))
+ (delete file auth-sources))
+#+end_src
+
**** Org-Contacts
:PROPERTIES:
:ID: 49e301c9-cdaa-4890-a3be-34b17d050b05