-
Notifications
You must be signed in to change notification settings - Fork 1
feat: Implement client-side password encryption #67
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
Changes from 22 commits
fa77c53
2d25b6b
e6c6e67
d3eb32d
dae88a6
3a2677c
cbd442c
ab1a825
3a0fb2a
8016911
ae29a54
93c7077
fad753b
944b4bd
c2783e5
3625ecb
a4037bb
78b18dc
8b824a2
110c8fe
ddeec90
701bc1d
7e75f8e
2962693
9c4d04f
79c00c6
51ac12d
dc1e122
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -51,16 +51,14 @@ ACCESS_TOKEN_EXPIRE_MINUTES=14400 | |
|
||
# First Superuser: Email address for the initial administrator account. | ||
[email protected] | ||
|
||
# First Superuser Password: Password for the initial administrator account. | ||
# Choose a strong password. | ||
# min_length=8 | ||
FIRST_SUPERUSER_PASSWORD='telepace' | ||
|
||
# First Superuser ID: Optional UUID for the initial administrator account. | ||
# If not set, a random UUID will be generated. | ||
# Example: e8ccbeed-f588-4b9a-95ca-000000000000 | ||
# FIRST_SUPERUSER_ID= | ||
# 用于密码加密和解密的对称密钥,必须是有效的 Fernet 密钥(32 字节的 URL 安全 base64 编码,末尾必须有 = 符号) | ||
# 生成方法: `python -c "from cryptography.fernet import Fernet; print(Fernet.generate_key().decode())"` | ||
APP_SYMMETRIC_ENCRYPTION_KEY='Buhzb09HgEg-4C7oUsZqykAH_-yfXEONu9sogno3a2s=' | ||
|
||
# -- Email (SMTP) Settings -- | ||
# Configuration for sending emails (e.g., password resets, notifications). | ||
|
Original file line number | Diff line number | Diff line change | ||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
@@ -115,7 +115,7 @@ jobs: | |||||||||||||||||
artifacts: "dist/*" | ||||||||||||||||||
generateReleaseNotes: true | ||||||||||||||||||
bodyFile: "CHANGELOG.md" | ||||||||||||||||||
token: ${{ secrets.BOT_GITHUB_TOKEN }} | ||||||||||||||||||
token: ${{ secrets.GITHUB_TOKEN }} | ||||||||||||||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Grant write permissions to GITHUB_TOKEN for release creation Apply this diff at the top of the workflow: name: Auto Release
+permissions:
+ contents: write # allow GITHUB_TOKEN to create and publish releases
on: 📝 Committable suggestion
Suggested change
🤖 Prompt for AI Agents
|
||||||||||||||||||
draft: false | ||||||||||||||||||
prerelease: ${{ contains(github.ref, '-rc') || contains(github.ref, '-beta') || contains(github.ref, '-alpha') }} | ||||||||||||||||||
|
||||||||||||||||||
|
Original file line number | Diff line number | Diff line change | ||||
---|---|---|---|---|---|---|
@@ -0,0 +1 @@ | ||||||
1. The text of the reply is in Chinese, but the code is in English | ||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. [nitpick] This rule file appears unintended for the codebase and mixes Chinese/English. Remove or relocate it to avoid confusion.
Suggested change
Copilot uses AI. Check for mistakes. Positive FeedbackNegative Feedback |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,6 @@ | ||
VITE_API_URL=http://localhost:8000 | ||
NODE_ENV=development | ||
NODE_ENV=development | ||
|
||
# This key needs to be a securely generated, preferably 32-byte (256-bit) random string, | ||
# often represented in base64. For Fernet, it must be a URL-safe base64-encoded 32-byte key. | ||
VITE_APP_SYMMETRIC_ENCRYPTION_KEY="your_strong_symmetric_encryption_key_here" |
Uh oh!
There was an error while loading. Please reload this page.