Skip to content

Docuseal: use real SECRET_KEY_BASE for db:migrate on update#15411

Merged
CrazyWolf13 merged 1 commit into
mainfrom
fix/docuseal-db-migrate-15408
Jun 26, 2026
Merged

Docuseal: use real SECRET_KEY_BASE for db:migrate on update#15411
CrazyWolf13 merged 1 commit into
mainfrom
fix/docuseal-db-migrate-15408

Conversation

@MickLesk

Copy link
Copy Markdown
Member

✍️ Description

SECRET_KEY_BASE_DUMMY forced rails to write tmp/local_secret.txt, which failed with EACCES during update and aborted db:migrate. Drop the dummy flag so the real SECRET_KEY_BASE from .env is used, and ensure tmp exists.

🔗 Related Issue

Fixes #15408

✅ Prerequisites (X in brackets)

  • Self-review completed – Code follows project standards.
  • Tested thoroughly – Changes work as expected.
  • No security risks – No hardcoded secrets, unnecessary privilege escalations, or permission issues.

🛠️ Type of Change (X in brackets)

  • 🐞 Bug fix – Resolves an issue without breaking functionality.
  • New feature – Adds new, non-breaking functionality.
  • 💥 Breaking change – Alters existing functionality in a way that may require updates.
  • 🆕 New script – A fully functional and tested script or script set.
  • 🌍 Website update – Changes to script metadata (PocketBase/website data).
  • 🔧 Refactoring / Code Cleanup – Improves readability or maintainability without changing functionality.
  • 📝 Documentation update – Changes to README, AppName.md, CONTRIBUTING.md, or other docs.

SECRET_KEY_BASE_DUMMY forced Rails to write tmp/local_secret.txt, which failed with EACCES during update and aborted db:migrate. Drop the dummy flag so the real SECRET_KEY_BASE from .env is used, and ensure tmp exists.
@MickLesk MickLesk requested a review from a team as a code owner June 26, 2026 19:12
@github-actions github-actions Bot added bugfix update script A change that updates a script labels Jun 26, 2026
@CrazyWolf13 CrazyWolf13 merged commit 4142c5c into main Jun 26, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bugfix update script A change that updates a script

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[DocuSeal] ✖️ in line 67: exit code 1 (General error / Operation not permitted): while executing command bundle exec rails db:migrate

3 participants