mirror of
https://github.com/games-on-whales/wolfmanager.git
synced 2026-10-15 21:12:13 +00:00
[PR #31] [MERGED] Feature/auto generate nextauth secret #46
Labels
No labels
a11y
bug
enhancement
enhancement
good first issue
pull-request
question
refactor
security
shadcn
tech-debt
ui
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
games-on-whales/wolfmanager#46
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/games-on-whales/wolfmanager/pull/31
Author: @salty2011
Created: 6/14/2025
Status: ✅ Merged
Merged: 6/14/2025
Merged by: @salty2011
Base:
release/202506.003← Head:feature/auto-generate-nextauth-secret📝 Commits (3)
62fb3a9feat: implement automatic NEXTAUTH_SECRET and ENCRYPTION_KEY generation (#24)aef200dfeat: improve documentation structure and add security guides443f3a2refactor: standardize naming from wolf-ui/wolf-admin to WolfManager📊 Changes
30 files changed (+2657 additions, -155 deletions)
View changed files
📝
.dockerignore(+7 -1)📝
.env.example(+22 -0)📝
.gitignore(+7 -1)📝
README.md(+57 -3)📝
build/Dockerfile(+1 -0)📝
build/README.md(+47 -0)📝
build/docker-compose.production.yml(+4 -3)📝
build/docker-compose.yml(+4 -1)📝
build/docker-entrypoint.sh(+21 -0)📝
docs/README.md(+46 -31)📝
docs/development.md(+194 -1)➕
docs/guides/development.md(+552 -0)➕
docs/quick-start-auto-generation.md(+136 -0)➕
docs/security/auto-secret-generation.md(+217 -0)📝
docs/technical/database-architecture.md(+205 -68)📝
package.json(+1 -1)📝
src/app/api/debug/logs-test/route.ts(+2 -2)📝
src/app/api/logs/route.ts(+2 -2)📝
src/app/settings/logs/components/log-viewer.tsx(+1 -1)📝
src/instrumentation.ts(+4 -0)...and 10 more files
📄 Description
Summary
This PR introduces a feature that automatically generates a secure
NEXTAUTH_SECRETduring the application's initialization phase. This enhancement aims to streamline the setup process and bolster security by ensuring that a robust secret is always in place without manual intervention.Changes Introduced
NEXTAUTH_SECRETand generate one if absent..env.local, persisted to theconfigfolder, and symlinked into the correct runtime location.Rationale
Manually setting the
NEXTAUTH_SECRETcan be error-prone and may lead to security vulnerabilities if weak secrets are used. By automating this process, we ensure that every deployment has a strong, unique secret, enhancing the overall security posture of the application.Testing & Validation
NEXTAUTH_SECRET.Additional Notes
This feature is backward-compatible. If a
NEXTAUTH_SECRETis already defined in the environment, the auto-generation logic is bypassed, preserving existing configurations.🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.