Skip to content

RBAC - 4#542

Merged
lbedner merged 1 commit intomainfrom
rbac-4
Mar 17, 2026
Merged

RBAC - 4#542
lbedner merged 1 commit intomainfrom
rbac-4

Conversation

@lbedner
Copy link
Owner

@lbedner lbedner commented Mar 17, 2026

No description provided.

Copilot AI review requested due to automatic review settings March 17, 2026 03:01
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adds an organization (“org”) auth level to the auth service, including CLI selection, template context flags, and database migration specs to support multi-tenant org + membership tables.

Changes:

  • Extend auth level options to include org (CLI interactive selection + bracket syntax parsing via AuthLevels.ALL).
  • Update template context derivations so org implies RBAC and exposes include_auth_org for templates.
  • Add an auth_org migration spec (organization + organization_member tables) and expand unit tests around the new behavior.

Reviewed changes

Copilot reviewed 11 out of 11 changed files in this pull request and generated 3 comments.

Show a summary per file
File Description
tests/core/test_template_generator.py Adds tests for auth[org] parsing and context flags (include_auth_org, include_auth_rbac).
tests/core/test_migration_generator.py Adds tests ensuring auth_org migration selection + validates org migration spec structure.
tests/core/test_auth_service_parser.py Adds parser tests for auth[org] (case-insensitive).
aegis/core/template_generator.py Sets include_auth_rbac for both rbac and org, and adds include_auth_org.
aegis/core/services.py Includes app/models/org.py in the auth service template file list.
aegis/core/migration_generator.py Introduces ORG_MIGRATION, registers auth_org, and adds selection logic keyed off include_auth_org.
aegis/constants.py Adds AuthLevels.ORG and includes it in AuthLevels.ALL.
aegis/cli/interactive.py Adds interactive selection choice for org-level authentication.

@lbedner lbedner merged commit b154fd6 into main Mar 17, 2026
7 checks passed
@lbedner lbedner deleted the rbac-4 branch March 17, 2026 03:22
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.

2 participants