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

fix(core): set correct permissions for socket path when umask is set to 0027 #14084

Merged
merged 5 commits into from
Jan 9, 2025

Conversation

tzssangglass
Copy link
Member

@tzssangglass tzssangglass commented Jan 6, 2025

Summary

When umask is configured to 0027, the newly created kong_config.socket_path directory inherits permissions 750, which restricts access for worker processes. This commit ensures that the socket_path directory is explicitly set to permissions 755 using chmod 755, thereby preventing permission-related errors and allowing proper access for all necessary processes.

Checklist

  • The Pull Request has tests
  • A changelog file has been created under changelog/unreleased/kong or skip-changelog label added on PR if changelog is unnecessary. README.md
  • There is a user-facing docs PR against https://github.com/Kong/docs.konghq.com - PUT DOCS PR HERE

Issue reference

Fix: FTI-6298

…to `0027`

When umask is configured to `0027`, the newly created `kong_config.socket_path` directory inherits permissions `750`,
which restricts access for worker processes. This commit ensures that the `socket_path` directory is explicitly set
to permissions `755` using `chmod 755`, thereby preventing permission-related errors and allowing proper access for
all necessary processes.

Fix: [FTI-6298](https://konghq.atlassian.net/browse/FTI-6298)
Signed-off-by: tzssangglass <[email protected]>
Signed-off-by: tzssangglass <[email protected]>
@pull-request-size pull-request-size bot added size/S and removed size/XS labels Jan 8, 2025
Signed-off-by: tzssangglass <[email protected]>
Signed-off-by: tzssangglass <[email protected]>
@pull-request-size pull-request-size bot added size/XS and removed size/S labels Jan 9, 2025
@tzssangglass tzssangglass requested a review from ms2008 January 9, 2025 08:49
Signed-off-by: tzssangglass <[email protected]>
@ms2008 ms2008 merged commit f4d9c7f into master Jan 9, 2025
25 checks passed
@ms2008 ms2008 deleted the FTI-6298 branch January 9, 2025 09:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants