Skip to content

fix(rbac): fix membership constraint#2291

Merged
jiparis merged 1 commit into
chainloop-dev:mainfrom
jiparis:PFM-3404-duplicated
Jul 28, 2025
Merged

fix(rbac): fix membership constraint#2291
jiparis merged 1 commit into
chainloop-dev:mainfrom
jiparis:PFM-3404-duplicated

Conversation

@jiparis

@jiparis jiparis commented Jul 28, 2025

Copy link
Copy Markdown
Member

Those constraints were adding the role field to the list of unique fields, making the duplicity protection ineffective for different roles.

Removing role makes it unique (one only explicit membership, onle only inherited from the same parent)

Note that this fix is assuming previous database data is correct.

Signed-off-by: Jose I. Paris <jiparis@chainloop.dev>
@jiparis jiparis requested review from javirln, migmartri and tknura July 28, 2025 12:42
@jiparis jiparis merged commit d7a13c6 into chainloop-dev:main Jul 28, 2025
13 checks passed
@jiparis jiparis deleted the PFM-3404-duplicated branch July 28, 2025 19:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants