Skip to content
This repository has been archived by the owner on Apr 1, 2021. It is now read-only.

JWT secret key 透過其他外部變數設定 #75

Open
takidog opened this issue Dec 16, 2019 · 5 comments
Open

JWT secret key 透過其他外部變數設定 #75

takidog opened this issue Dec 16, 2019 · 5 comments
Assignees
Labels
enhancement New feature or request

Comments

@takidog
Copy link
Member

takidog commented Dec 16, 2019

如題

之後可能會有服務拆分或是有新的服務(選課評價)

目前�JWT secret key 只透過第一次產生,後續保存在redis

並不能從外部用其他方式指定

docker secrets
或是環境變數

@takidog takidog added the enhancement New feature or request label Dec 16, 2019
@takidog takidog self-assigned this Dec 16, 2019
@abc873693
Copy link
Member

我覺得需要個流程圖
不然我看不懂你的問題

@takidog
Copy link
Member Author

takidog commented Dec 17, 2019

我覺得需要個流程圖
不然我看不懂你的問題

不是api功能
現在key是自動產生的,我只是要讓他可以被指定
可以透過類似環境變數指定

@vn7n24fzkq
Copy link
Member

@takidog 你是說 config file 的感覺吧,不過我覺得多個服務的問題也許可以用 redis cluster 解決

@takidog
Copy link
Member Author

takidog commented Dec 17, 2019

@takidog 你是說 config file 的感覺吧,不過我覺得多個服務的問題也許可以用 redis cluster 解決

也是方法
但我還是希望多一個指定的方式

用env放key這類安全相關好像怪怪的
才提docker secrets

@abc873693
Copy link
Member

我覺得都可以
有用docker 可以試試docekr

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants