Cherry-pick #20929 to 7.8: Clarify use for shared_credential_file#21083
Merged
kaiyan-sheng merged 1 commit intoelastic:7.8from Sep 15, 2020
kaiyan-sheng:backport_20929_7.8
Merged
Cherry-pick #20929 to 7.8: Clarify use for shared_credential_file#21083kaiyan-sheng merged 1 commit intoelastic:7.8from kaiyan-sheng:backport_20929_7.8
kaiyan-sheng merged 1 commit intoelastic:7.8from
kaiyan-sheng:backport_20929_7.8
Conversation
When starting beats as a service, the PID will be owned by the user that manages the service. This would be root in most cases. Users tend to run tests as non-root, running beats directly (./metricbeat) on the command line. Without the shared_credential_file path the beat checks for credentials under the user's home directory. When starting beats as a service, the home directory of the user managing the service (typically root) is different than what was being used in testing and development, which can be hard to figure out. (cherry picked from commit cbed0d6)
Contributor
|
Pinging @elastic/obs-docs (Team:Docs) |
Contributor
ChrsMark
approved these changes
Sep 15, 2020
leweafan
pushed a commit
to leweafan/beats
that referenced
this pull request
Apr 28, 2023
(cherry picked from commit f2c9616) Co-authored-by: Kostas Botsas <kostas.botsas@elastic.co>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Cherry-pick of PR #20929 to 7.8 branch. Original message:
When starting Beats as a service, the Beat's PID will be owned by the user that manages the service. This would be root in most cases.
Users tend to run tests as non-root, running beats directly (./metricbeat) on the command line. Without the shared_credential_file path the beat checks for credentials under the user's home directory.
As a service, the home directory of the user managing the service (typically root) tends to be different than that of the user in testing and development, which can be difficult to figure out.
What does this PR do?
Clarifies AWS module's credential lookup behavior and when to use shared_credential_file to avoid ambiguity.
Why is it important?
Helps users avoid credential lookup issues, especially deviations between environments where Beats run as standalone process vs service.