Skip to content
This repository has been archived by the owner on Aug 21, 2021. It is now read-only.
This repository has been archived by the owner on Aug 21, 2021. It is now read-only.

Periodic synchronization with Crowd #20

Open
canardi opened this issue Sep 25, 2018 · 2 comments
Open

Periodic synchronization with Crowd #20

canardi opened this issue Sep 25, 2018 · 2 comments

Comments

@canardi
Copy link

canardi commented Sep 25, 2018

Dear all,

I'm opening a discussion in order to implement a new functionality on this plugin.
A periodic synchronization with CROWD configurable (parameter like every 1 hour).

From that moment, CROWD will be the only source to manage permissions.
We will use the "Developer Edition" of SonarQube, meaning that one project contains multiple branches.
This project is existing in the CROWD with a specific group, containing people having access to sonar.

The goal will be to sync SonarQube permissions/project every hour, analyzing if a new project is configured in the crowd and/or if new people were added/removed from the specific group.

What do you think about it ?

KR,
Dimitri

@flopma
Copy link

flopma commented Oct 1, 2018

After checking the code source, it looks like the cheapest way to solve this issue is to change the method org.sonar.server.authentication.UserIdentityAuthenticator#syncGroups to allow it to create missing groups in Sonarqube's DB. Of course the scope of the change is not anymore into the plugin, but more in Sonarqube itself.

@flopma
Copy link

flopma commented Oct 1, 2018

Pull request sent SonarSource/sonarqube#3182

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants