Restrict ACL association to the token accesses

Done

Description

The only way for someone to give access to another one, it's to have the 'auth.policy.#' access, wich will allow to update it's own policy or associate more access then allowed.

To avoid this scenario, wazo-auth should restrict accesses to the token used to create these accesses
It implies to cascade access from master-->admin-->user

ex:

  • master: #

  • admin: [confd.#, calld.#, phoned.# ....]

  • user: [<specific access>, ...]

Todo

  • handle negative access too

  • compare pattern against pattern (which are not currently supported)

  • migrate database to remove too permissive accesses

 

side note: the mechanic would be useful to create scoped refresh token too

Zendesk Ticket IDs

None

Activity

François Blackburn 
June 25, 2021 at 7:44 PM

We will finally get rid of admin that add user/external_api with # access !!!!

Details

Priority

Assignee

Reporter

Approvers

Pascal Cadotte

Fix versions

Sprint

Zendesk Support

Created February 10, 2021 at 8:35 PM
Updated October 26, 2021 at 1:31 PM
Resolved June 28, 2021 at 3:05 PM