Description
Implement the logic to read definition files (e.g., YAML), compile the rules in memory, and apply the early validations defined in the ADR. For now, the openedx-authz module will load its own definitions by pointing directly to its local path, setting the foundation for future extensibility.
Acceptance Criteria
- Create the
Loader function/class that receives a list of definition file paths.
- Implement early validation: detection of duplicate identifiers, unsupported scope types, and broken references.
- Define and implement error handling: specify whether the application fails on startup (
Fail Fast) or if the invalid file is skipped leaving a critical error log.
- The
openedx-authz module successfully loads its own roles/permissions by passing its static path to the Loader.
Proposed ADR: #421
Description
Implement the logic to read definition files (e.g., YAML), compile the rules in memory, and apply the early validations defined in the ADR. For now, the
openedx-authzmodule will load its own definitions by pointing directly to its local path, setting the foundation for future extensibility.Acceptance Criteria
Loaderfunction/class that receives a list of definition file paths.Fail Fast) or if the invalid file is skipped leaving a critical error log.openedx-authzmodule successfully loads its own roles/permissions by passing its static path to theLoader.Proposed ADR: #421