-
Notifications
You must be signed in to change notification settings - Fork 594
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(serviceAccount): Filter non-valid roles when converting to UserPe…
…rmission (#513) (#514) Roles can't be empty. This leads to unexpected behaviour. However, we were allowing creating empty roles like "" or " " on the pipeline triggersi (via API), which made service users to contain invalid roles and thus failing on every sync request that tries to map roles to accounts. This rendered FIAT unusable to get permissions and subsequently not allowing any authorization operation. This patch sanitizes the input on ServiceAccounts so we make sure that the roles considered are valid.
- Loading branch information
1 parent
47a6a00
commit c62d038
Showing
3 changed files
with
6 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters