-
Notifications
You must be signed in to change notification settings - Fork 3.6k
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
feat(ui/dataLoaders): Use env var for telegraf config auth token #11693
Changes from all commits
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 |
---|---|---|
|
@@ -283,7 +283,7 @@ export const removePluginBundleWithPlugins = ( | |
dispatch(removeBundlePlugins(bundle)) | ||
} | ||
|
||
export const createOrUpdateTelegrafConfigAsync = (authToken: string) => async ( | ||
export const createOrUpdateTelegrafConfigAsync = () => async ( | ||
dispatch, | ||
getState: GetState | ||
) => { | ||
|
@@ -299,7 +299,7 @@ export const createOrUpdateTelegrafConfigAsync = (authToken: string) => async ( | |
type: TelegrafPluginOutputInfluxDBV2.TypeEnum.Output, | ||
config: { | ||
urls: ['http://127.0.0.1:9999'], | ||
token: authToken, | ||
token: '$INFLUX_TOKEN', | ||
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. So we won't store the exact token here anymore? Does that mean the auth token will need to be fetched separately for the 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. 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. Oh yes i do believe that will affect the Instructions Overlay in that way. Since we are not going to store that anymore, fetching it will be the only to get that value. |
||
organization: org, | ||
bucket, | ||
}, | ||
|
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.
Nice