安全问题:从文件中读取 secret key #1

Closed
opened 2022-04-06 17:30:35 +08:00 by heimoshuiyu · 2 comments
Owner
No description provided.
heimoshuiyu added this to the v1.2.0 milestone 2022-04-06 17:31:22 +08:00
Author
Owner

store := sessions.NewCookieStore([]byte(os.Getenv("SESSION_KEY")))

问题代码

https://git.yongyuancv.cn/heimoshuiyu/msw-open-music/src/commit/1655962e8587830b8b71db965278470cf2aac87a/pkg/api/api.go#L51 问题代码
Author
Owner

fixed 4fcd962cc9

fixed 4fcd962cc9f4d63e861dda2c5bb522a878fafebe
Sign in to join this conversation.
No Label
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: heimoshuiyu/msw-open-music#1
No description provided.