Skip to content

fix(enhancement): ensure correct ownership check before setting permissions of profiles#3855

Merged
BYK merged 1 commit intogetsentry:masterfrom
LvckyAPI:master
Aug 6, 2025
Merged

fix(enhancement): ensure correct ownership check before setting permissions of profiles#3855
BYK merged 1 commit intogetsentry:masterfrom
LvckyAPI:master

Conversation

@LvckyAPI
Copy link
Contributor

@LvckyAPI LvckyAPI commented Aug 6, 2025

Fixes #3841

Check if the parent directory of /var/vroom/sentry-profiles is already owned by vroom:vroom.

  • If it is, do nothing.
  • If owner is incorrect, correct it

Legal Boilerplate

Look, I get it. The entity doing business as "Sentry" was incorporated in the State of Delaware in 2015 as Functional Software, Inc. and is gonna need some rights from me in order to utilize my contributions in this here PR. So here's the deal: I retain all rights, title and interest in and to my contributions, and by keeping this boilerplate intact I confirm that Sentry can use, modify, copy, and redistribute my contributions, under Sentry's choice of terms.

Copy link
Member

@BYK BYK left a comment

Choose a reason for hiding this comment

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

Nice & thanks!

@BYK BYK merged commit a36deff into getsentry:master Aug 6, 2025
9 checks passed
@LvckyAPI
Copy link
Contributor Author

LvckyAPI commented Aug 6, 2025

Nice & thanks!

You're welcome

@aminvakil
Copy link
Collaborator

This is an improvement alright, but do we have any idea why it took so long at the first place?

@LvckyAPI
Copy link
Contributor Author

LvckyAPI commented Aug 7, 2025

I guess there was something in the issue #3841? I don't know

@aminvakil
Copy link
Collaborator

I guess there was something in the issue #3841? I don't know

Yes, I've seen that, it was taking too long to exec chown which this PR is doing as well (in case it was parent directory was not owned by vroom:vroom)

Did this took too long because it was already owned by vroom:vroom ? This PR fixes this problem (if there is).

@github-actions github-actions bot locked and limited conversation to collaborators Aug 26, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

Archived in project

Development

Successfully merging this pull request may close these issues.

install.sh taking a really long time

4 participants