Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SONAR-24186 improve file ownership #741

Merged
merged 2 commits into from
Jan 29, 2025

Conversation

jCOTINEAU
Copy link
Collaborator

@jCOTINEAU jCOTINEAU commented Jan 27, 2025

SONAR-24186

We identified that we were not covering all options for runAsUser and runAsGroup in kubernetes context.

By adding ownership of files to sonarqube user we are compatible with both those workflow:

the current openshift behavior which is anyUid and gid=0
More classic use case were people rely on UID of the image (1000 in our case) but with gid!=0

Those two workflow will work as permissions are assigned to both owner and group.

@jCOTINEAU jCOTINEAU changed the title SONAR-24186 improve file ownership DRAFT SONAR-24186 improve file ownership Jan 27, 2025
@jCOTINEAU jCOTINEAU force-pushed the feature/jc/SONAR-24186-improve-file-ownership branch from 6834c73 to 5b5dad3 Compare January 27, 2025 09:51
@jCOTINEAU jCOTINEAU force-pushed the feature/jc/SONAR-24186-improve-file-ownership branch from 5b5dad3 to ec4e518 Compare January 27, 2025 13:10
@jCOTINEAU jCOTINEAU requested a review from davividal January 27, 2025 13:13
@jCOTINEAU jCOTINEAU changed the title DRAFT SONAR-24186 improve file ownership SONAR-24186 improve file ownership Jan 27, 2025
Copy link
Collaborator

@davividal davividal left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@jCOTINEAU jCOTINEAU force-pushed the feature/jc/SONAR-24186-improve-file-ownership branch from f6d85ec to 17ddda2 Compare January 28, 2025 16:13
@jCOTINEAU jCOTINEAU force-pushed the feature/jc/SONAR-24186-improve-file-ownership branch from 17ddda2 to 89f8cdd Compare January 29, 2025 09:22
Copy link

@jCOTINEAU jCOTINEAU merged commit 7829d1c into master Jan 29, 2025
31 checks passed
@jCOTINEAU jCOTINEAU deleted the feature/jc/SONAR-24186-improve-file-ownership branch January 29, 2025 09:48
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