-
Notifications
You must be signed in to change notification settings - Fork 40.8k
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
(Since 2.7.18) bootBuildImage: /workspace directory is owned by the wrong user id... #38535
Comments
I believe this is due to #38477. You could explicitly configure the use of the older builder. Before doing so, you should be aware that the Paketo team consider it to be unsafe. This is why we took the unusual step of changing the default in a maintenance release. I think it's also worth noting that the buildpacks team do not recommend creating files in |
Actually we are currently also facing the problem with the UID, but not in /workspace but with EFS PersistendVolumeClaims in Amazon EKS (Kubernetes). Our EFS files always had the same user id 1000 as the old cnb where running processes. Now that seems to have changed to uid=1002 and access rights are now restricting our services to access those files. Is there a way to configure the UID the process will run with on those images, or what would your suggestion be to solve such issues? Old Spring-Boot Version: 2.7.9 |
That's a question for the buildpacks community. AFAIK, it's out of Spring Boot's control. |
For my Spring Boot Service I build a bootBuildImage with gradle.
With Spring Boot 2.7.18 the /workspace-directory inside the image is owned by User 1001, which is a not existing user id.
In 2.7.17 the /workspace directory was owned by cnb with user id 1000:
This causes issues with some file operations, for example logging, because the service is no longer allowed to create files in the /workspace directory.
The text was updated successfully, but these errors were encountered: