Skip to content

Task – RBAC AuthZ – Waffle flag - Automatic Migration Trigger #223

Closed

Description

@dwong2708

Once the migration scripts are completed, the next step is to integrate them with the course authorization flag so that migrations are triggered automatically when the flag is changed.

The behavior is defined as follows:

  • The migration scripts must always be executed with the --delete flag.
  • It is assumed that equivalent roles exist between the legacy authorization system and the AuthZ system.
  • The migration process will run synchronously when the flag is updated.
  • When the flag is enabled, roles are migrated from the legacy CourseAccessRole model to AuthZ role assignments.
  • When the flag is disabled, roles are migrated from AuthZ role assignments back to the legacy CourseAccessRole model.

This approach ensures that role assignments exist in only one authorization system at a time, which is required for the compatibility layer to function correctly and to avoid inconsistent authorization behavior.

Activity

  1. BryanttV commented on Apr 9, 2026

    @BryanttV
    Contributor

    ADR PR ready for review: #251

  2. moved this to In Progress in RBAC AuthZ Boardon Apr 9, 2026
  3. BryanttV commented on Apr 16, 2026

    @BryanttV
    Contributor

    Implementation PR ready for review: #259

  4. moved this from In Progress to Ready for review in RBAC AuthZ Boardon Apr 16, 2026
  5. moved this from Ready for review to Done in RBAC AuthZ Boardon Apr 22, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions