Skip to content

Investigate Namex API: whether any FFs or permissions are needed to restrict access #30709

Closed

Description

@severinbeauvais

Does Namex API need "permissions" or "FF" restrictions, similar to what was implemented in Business API, to restrict accesss?

  • to deny features that aren't released yet
  • to deny users that don't have permission

Specifically, we want to ensure that API users cannot call into Namex API to do things they shouldn't be allowed to do.

Activity

  1. added
    Entities Team
    on Sep 17, 2025
  2. added
    NameX
    Names Team
    on Sep 17, 2025
  3. eve-git commented on Sep 18, 2025

    @eve-git
    Collaborator

    @severinbeauvais to give us more details

  4. severinbeauvais commented on Sep 18, 2025

    @severinbeauvais
    CollaboratorAuthor

    Feature Flags

    Namerequest UI looks at several feature flags to determine whether the user is allowed to proceed to BCROS (or fallback to COLIN). For example:

    image.png

    However, Namex API doesn't care whether a NR is created for BCROS or COLIN, so these FFs don't matter to the API and I think they can be ignored.

    Permissions (aka Authorized Actions)

    Namerequest UI looks at several permissions to determine whether the user is allowed to perform some actions. For example:

    image.png

    (The above are the only 2 permissions checked, although they are checked in several places.)

    Similar, Namex API should deny these actions (eg, creating an AML NR) if the user does not have the subject permissions.

    For example, if (!user.permissions.include("AMALGAMATION_FILING") then return HTTP 403 (pseudo-code)

    Note that the db tables mapping whether a particular user (based on their bearer token) has particular permissions are in LEAR (Business API). Probably the easiest design is for Namex API to query Business API for the current user's permissions and then check them, but I leave the final design up to you.

    Ref: bcgov/lear#3565

    Update: As with FF, Namex API doesn't care where the user is directed (BCROS or COLIN). Namex API should create Amalgamation or Continuation In NRs regardless, so I think permissions can be ignored.

  5. severinbeauvais commented on Sep 18, 2025

    @severinbeauvais
    CollaboratorAuthor

    Note that Namex API protects its more vulnerable calls (eg, that only staff or Business API can do) by checking the auth token / API key. These tokens / keys are not available publicly. So, Namex API should already be protected from hackers or others who might try to call it to do unauthorized things.

    In summary, I think no work is needed for this ticket.

  6. changed the title [-]Namex API: investigate whether any FFs or permissions are needed to restrict access[/-] [+]Investigate Namex API: whether any FFs or permissions are needed to restrict access[/+] on Nov 20, 2025
  7. removed
    Entities Team
    on Jan 8, 2026
  8. self-assigned this
    on Jan 22, 2026
  9. davemck513 commented on Jun 12, 2026

    @davemck513
    Collaborator

    No action anticipated, closing.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

NameXNames Team

Type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions