Skip to content

[UPDATE][neodb][1.0.6]Fix admin creation script, restore ModelBackend, and add NEODB_ADMIN_HANDLES - #3738

Merged
Terminus-Gitbot merged 1 commit into
beclab:mainfrom
Inverstar:feature/neodb-v1.0.6
Oct 5, 2026
Merged

Terminus-Gitbot merged 1 commit into
beclab:mainfrom
Inverstar:feature/neodb-v1.0.6

Conversation

@Inverstar

Copy link
Copy Markdown
Contributor

PR Title

[UPDATE][neodb][1.0.6]Fix admin creation script, restore ModelBackend, and add NEODB_ADMIN_HANDLES

App Title

NeoDB

Description

  • Fix Administrator Account Initialization: Replaced inline neodb-manage shell -c in the migration init-container with /neodb-venv/bin/python /neodb-patch/init_admin.py to prevent shell glob expansion and word-splitting bugs caused by unquoted $@ in the container's neodb-manage script.
  • Restore Django ModelBackend: Injected django.contrib.auth.backends.ModelBackend into AUTHENTICATION_BACKENDS via sitecustomize.py, enabling direct username and password login for administrators at /neodb-admin/.
  • Add NEODB_ADMIN_HANDLES Support: Exposed NEODB_ADMIN_HANDLES in OlaresManifest.yaml (envs) and hooked authentication to automatically promote specified handles (e.g. email:user@example.com or mastodon:user@domain) to superuser, staff, and Takahē admin on login.

Statement

  • I have tested this application to ensure it is compatible with the Olares OS version stated in the OlaresManifest.yaml

@Terminus-Gitbot

Copy link
Copy Markdown
Collaborator

Check passed, please wait for auto-merge.

@Terminus-Gitbot
Terminus-Gitbot merged commit 9cf85a4 into beclab:main Oct 5, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants