-
Notifications
You must be signed in to change notification settings - Fork 41.2k
Provide an env var that controls the user with which the launch script runs the app #16973
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
Provide an env var that controls the user with which the launch script runs the app #16973
Conversation
@wagnerluis1982 Please sign the Contributor License Agreement! Click here to manually synchronize the status of this Pull Request. See the FAQ for frequently asked questions. |
@wagnerluis1982 Thank you for signing the Contributor License Agreement! |
Adding some information, for clarity. This configuration is an environment variable used by the Say we put the executable jar in RUN_AS=wagner When we Side notes:
|
Hi, I don't think the errors on checks are caused by my changes, can someone confirm? |
Yes |
Hi, only checking, this new entry must be documented in https://docs.spring.io/spring-boot/docs/current/reference/html/deployment-install.html, right? |
Hmmm, seeing the doc I forgot that some config entries are also Gradle/Maven properties (used when the script is written). So, my question, these properties must be implemented with this PR or that must be another issue? |
Yes, please.
What new properties did you have in mind? As currently proposed the |
Ops, I miswrote in my previous comment, when I said "these new properties", I was meaning "this new property" ( |
In addtion, I have a suggestion here: to change the variable from Motivation: I think |
Hi, only passing to say I didn't have time last week to update the documentation, but I'm going to do soon. |
@wagnerluis1982 How are things going with an update to the docs? With regards to |
Sorry about that, my time became scarce and I couldn't get to do. I can come back to do next week.
For me it's okay. |
Sorry again for the delay, I'm coming back to this issue today and I see the tests are now using JUnit Jupiter. I will change my tests and write the documentation, I hope to finish tomorrow. |
76e52b9
to
23ed46d
Compare
Suggested by @wilkinsona in comment gh-16973#issuecomment-509919654
@wilkinsona I finish to rewrite the tests and write the documentation entry for the new property Now, I feel the section Securing an init.d Service should be rewritten to recommend the users to use the new property, but |
Hi, is there still any pending on this PR? |
None I am aware of @wagnerluis1982, we need to review the update you pushed a week ago and couldn't find time to do so yet. |
Fine, thanks, @snicoll 👍 |
Hi, I noticed the branch is in conflict again. In that case what do you prefer? Merge or rebase? Last conflict I did on my own a rebase, now I am not sure if was the right thing to do... |
@wagnerluis1982 Rebase is best, but we're happy to take that task on when we merge the PR. |
Thank you very much for making your first contribution to Spring Boot, @wagnerluis1982. The proposed changes have now been merged into master. |
Enhance the launch.script by adding
RUN_AS_USER
option, suitable when run as a service.Here, it's introduced a new way to make the service change user when starting. The old way, by relying on the jar file ownership is still supported.
Closes gh-16667