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

Do not use env var for API token #12

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

yashi
Copy link

@yashi yashi commented Mar 13, 2024

素敵な IME ありがとうございます。面白いです。

Multi user 環境では環境変数を盗めてしまうので、トークンやパスワードの類を環境変数にいれるのは危険です。代わりに Emacs が提供している Auth source の機能を使ってみました。

https://www.gnu.org/software/emacs/manual/html_mono/auth.html

もし気に入ってくれたら、幸いです。

トークンやパスワードを環境変数に入れるのはマルチユーザーの環境では盗ま
れる可能性があるので危険。 代わりに Emacs が提供している auth-source
機能を使う。 (info "auth")

このコミットメッセージは Sumibi を使って記載した。;-)

Signed-off-by: Yasushi SHOJI <yashi@spacecubics.com>
環境変数 OPENAI_API_KEYではなく、`~/.authinfo` にREADME.mdを書き換え。

Signed-off-by: Yasushi SHOJI <yashi@spacecubics.com>
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.

None yet

1 participant