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
Deprecate username/password in elastic-agent #29434
Changes from 1 commit
43d5d99
45e74c8
a65b066
33ea36b
d18269e
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,8 +5,11 @@ outputs: | |
default: | ||
type: elasticsearch | ||
hosts: [127.0.0.1:9200] | ||
username: elastic | ||
password: changeme | ||
api_key: "example-key" | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I'm a bit confused if this attribute should be There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. api_key is for the output, service_token is for what is passed to fleet-server. This is not the same thing, see other comments. |
||
# Note that basic auth is deprecated and will be removed in 8.0 | ||
# api_key should be used instead. | ||
# username: elastic | ||
# password: changeme | ||
|
||
inputs: | ||
- type: system/metrics | ||
|
@@ -74,6 +77,9 @@ inputs: | |
|
||
# # optional values | ||
# #protocol: "https" | ||
# #service_token: "example-token" | ||
# # Note that basic auth is deprecated and will be removed in 8.0 | ||
# # service_token should be used instead. | ||
# #username: "elastic" | ||
# #password: "changeme" | ||
# #path: "" | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -11,8 +11,11 @@ outputs: | |
default: | ||
type: elasticsearch | ||
hosts: [127.0.0.1:9200] | ||
username: elastic | ||
password: changeme | ||
api_key: "example-key" | ||
# Note that basic auth is deprecated and will be removed in 8.0 | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This does not apply to the general output. +1 on having the api_key here but username / password for the output part stay around AFAIK. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. ah, much simpler then. i'll just log it there. |
||
# api_key should be used instead. | ||
# username: elastic | ||
# password: changeme | ||
|
||
inputs: | ||
- type: system/metrics | ||
|
@@ -80,6 +83,9 @@ inputs: | |
|
||
# # optional values | ||
# #protocol: "https" | ||
# #service_token: "example-token" | ||
# # Note that basic auth is deprecated and will be removed in 8.0 | ||
# # service_token should be used instead. | ||
# #username: "elastic" | ||
# #password: "changeme" | ||
# #path: "" | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
username / password for fleet-server are deprecated. If we should deprecate username / password for Elastic Agent in a more general way for the output is another discussion.