Skip to content

Core improvements#60

Merged
blocknotes merged 2 commits intomainfrom
core-improvements
Mar 25, 2026
Merged

Core improvements#60
blocknotes merged 2 commits intomainfrom
core-improvements

Conversation

@blocknotes
Copy link
Owner

Description

Core improvements

…arden settings

Consolidate to_class into BasicApp.authentication_plugin via Utils
include. Use Utils.humanize in Field.create_field instead of inline
logic. Extract repeated authorization checks in Router into a single
authorize! helper method. Guard Settings#load_settings against nil
authentication plugin and make it idempotent with @loaded flag so
repeated calls (e.g. per-request) are a no-op.
The session secret was regenerated with SecureRandom.hex(64) on every
boot, which invalidates all existing sessions on restart. Now reads
from ENV["TINY_ADMIN_SECRET"] with fallback to the random value, so
production deployments can maintain stable sessions across restarts.
@blocknotes blocknotes self-assigned this Mar 25, 2026
@blocknotes blocknotes marked this pull request as ready for review March 25, 2026 18:19
@blocknotes blocknotes merged commit 5b5f4f2 into main Mar 25, 2026
7 checks passed
@blocknotes blocknotes deleted the core-improvements branch March 25, 2026 18:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant