You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Implement role and permission checks at the API Level (Phase 3) #29627
We have authentication/authorization tokens (e.g., JWT) in place for every API request. Only authenticated users (those with a valid token) can access APIs. We also have in place a matrix of "allowable actions" that restrict users from actions (filings) they are not allowed to do. However, these do not stop a user with a valid token from filing an allowed filing with invalid content -- ie, content that our UIs will prevent, but that could be put/posted to the API directly (using Postman or an alternate UI). For example, there are a number of amalgamation overrides that only staff can normally do, but which could be spoofed in a direct put/post to the Legal API.
This epic is for implementation of the next layer of protection - permission checks for content posted to an allowed API endpoint.
Acceptance Criteria:
Enforce fine-grained permissions in the API level.
Log all sensitive actions to help detect and investigate unauthorized behavior.
More info:
see allowable actions (which the API uses to prevent filings that aren't allowed/authorized)
see permissions (which the UI uses to show/hide or enable/disable actions according to account's role)
changed the title [-]Implement role and permission checks at the API Level[/-][+]Implement role and permission checks at the API Level (Phase 3)[/+]on Jul 17, 2025
Annual report (AR/BAR)
Change of Directors
Incorporation Application
Change of Address
Alteration (including company type)
Voluntary Dissolution
Restoration (Full, Limited, Conversion Limited to Full, Extend Limited)
Correction (data and empty)
Notice of Withdrawal
Court Order
Registrar's Notation
Put Back On
Registrar's Order
Admin Dissolution
Corrections statements directly on the Ledger (no data change)
Freeze/Unfreeze
Activity
[-]Implement role and permission checks at the API Level[/-][+]Implement role and permission checks at the API Level (Phase 3)[/+]8 remaining items
Rajandeep98 commentedon Nov 18, 2025
Flags :
enabled-deeper-permission-actionMerged PRs :
Firm Email and DBA Validation - bcgov/lear#3770
Permissions Common Error Method - bcgov/lear#3772
Comments Staff and Detail Add - bcgov/lear#3773
Alteration NIGS - bcgov/lear#3774
Certify Name Validation Removal - bcgov/lear#3807
Firm Email and DBA editing - bcgov/lear#3853
Rajandeep98 commentedon Nov 20, 2025
Priority Filings